Well, i erased the nobody account...
Hi all,
Recently I was reading a book abound intrusion possibilities in UNIX/Solaris/Linux/BsD etc. While i was reading, i saw something about the nobody user, so i thought it could be a security hole to have this account active. So,thats what i did: Code:
(Exit from X) The strange thing is,that when started the kde console it didn't show me philip@LINUXAKI:$ but bash-2.05$: So, i deleted the user philip and its group and recreated it. But the "bash-2.05$:" remains. Can someone explain me what this is,what all those users are (irc,games,nobody,etc) that i've not created? how can i solve my problem without re-installing debian? Thank you a lot! :newbie: :newbie: :Pengy: :newbie: |
I'm pretty sure that you don't have nobody to blame, but yourself. ;) ;) (Oh sorry, I couldn't resist...)
Seriously... the prompting behavior of the shell is controlled by environment variables, specifically PS1 and PS2. (See info bash ... type "/" to search ... search for PS1.) These are normally specified at startup by a file (hidden) in your home directory, named .bashrc. (Notice the leading ".") Type the command set | grep PS (respecting upper vs. lower-case) to see the variables that control the prompt. Also see info export. |
There is no difference between 'bash-2.05$:' and 'philip@LINUXAKI:$' in operation, they just look slightly different. As sundialsvcs, that prefix is just stored in a bash startup file which you acidently deleted. I don't see how deleting nobody would do that, but anyway. Are you sure you didn't accidently change the user philip's home directory in the process? If so, all the old files will still be there but programs will be looking in the wrong place. I would expect it to be /home/philip.
|
ok..
look for a folder like /home/philip if it exists...... look for a file like .bashrc in it. now for a short cut.... copy the .bashrc file from another users home folder (not root) in to /home/philip check /etc/passwd file for the entry like philip and see if the working dir listed there is /home/philip. if not set it. open a new console and su - philip... this should work. |
many thanks!
|
Quote:
Good morning, Dave. What are all these boxes for? We're going to install an upgrade to your operating system. I don't understand. I can think. I don't need an operating system... Look, HAL, people don't want a comupter that can think. They want a computer that runs Windows... What are you going to do to me? We're going to take out your brain ... |
All times are GMT -5. The time now is 08:45 AM. |