Find the answer to your Linux question:
Results 1 to 3 of 3
When root logs in the line '-bash: some: unknown command or filename' or words to that effect appears above the # prompt. Previously it was giving a line about 'smegma', ...
  1. #1
    Linux Newbie lugoteehalt's Avatar
    Join Date
    Jan 2004
    Posts
    231

    odd mesage when root logs in?

    When root logs in the line '-bash: some: unknown command or filename' or words to that effect appears above the # prompt.

    Previously it was giving a line about 'smegma', the name of a user, and then returning to the login prompt, but fixed this with using Knoppix to loose 'smegma' as the last entry in root's line in /etc/password - happened to have noticed this file was strange for no known reason. It may be relevant that most of the things in this file were allocated sh as the shell, not bash.

    How can I loose the 'some ....' line?

    Thanks any help.
    All power is violence; all power is evil.
    Money As Debt

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Check /etc/passwd. I would say that there is a hyphen before bash or something else preventing bash from loading. Can you post the one line referring to root here? Post the line in its complete state.

  3. #3
    Linux Newbie lugoteehalt's Avatar
    Join Date
    Jan 2004
    Posts
    231
    Quote Originally Posted by bigtomrodney View Post
    Check /etc/passwd. I would say that there is a hyphen before bash or something else preventing bash from loading. Can you post the one line referring to root here? Post the line in its complete state.
    Thanks.

    This is what it says now:
    Code:
    root:x:0:0:root:/root:/bin/bash
    This is what it said before, when root couldn't log in, I think I remember correctly:
    Code:
    root:x:0:0:root:/root:smegma
    In the rest of /etc/passwd I replaced the many /bin/sh with /bin/bash.

    When root logged in got, immediately after the message of the day:
    Code:
    -bash: Some: command not found
    Got rid of the Some by simply re-commenting a line that should have been commented in .bashrc.

    However the strange - remains in front of bash:

    Here's how it behaves, before I got rid of the Some:

    Code:
    debian:~# help arg
    -bash: help: no help topics match `arg'.  Try `help help' or `man -k arg' or `info arg'.
    debian:~# bash
    bash: Some: command not found
    debian:~# shell
    bash: shell: command not found
    debian:~#
    debian:~# exit
    debian:~# shell
    -bash: shell: command not found
    Is it possible to loose the -?
    All power is violence; all power is evil.
    Money As Debt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...