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', ...
- 07-23-2007 #1
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.
- 07-23-2007 #2Linux 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.
- 07-26-2007 #3
Thanks.
This is what it says now:
This is what it said before, when root couldn't log in, I think I remember correctly:Code:root:x:0:0:root:/root:/bin/bash
In the rest of /etc/passwd I replaced the many /bin/sh with /bin/bash.Code:root:x:0:0:root:/root:smegma
When root logged in got, immediately after the message of the day:Got rid of the Some by simply re-commenting a line that should have been commented in .bashrc.Code:-bash: Some: command not found
However the strange - remains in front of bash:
Here's how it behaves, before I got rid of the Some:
Is it possible to loose the -?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


Reply With Quote
