LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Well, i erased the nobody acount... (https://www.linuxquestions.org/questions/linux-software-2/well-i-erased-the-nobody-acount-362994/)

NCC-1701&NCC-1701-D 09-13-2005 12:29 PM

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)
philip@LINUXAKI:$logout

Debian "Woody" v3 Login
Username:root
Password:


(login successful)
LINUXAKI:# deluser nobody --with-home
Deleting nobody files
nobody deleted
LINUXAKI:#exit

Well,after that i didn't lost the user philip,but i've lost it's files and when i've logged in kde,the first time configuration wizard started.
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:

sundialsvcs 09-13-2005 01:00 PM

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.

Orkie 09-13-2005 02:11 PM

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.

vireshwali 09-14-2005 07:33 AM

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.

NCC-1701&NCC-1701-D 09-14-2005 10:16 AM

many thanks!

sundialsvcs 09-14-2005 02:13 PM

Quote:

Originally posted by NCC-1701&NCC-1701-D
Not even the Enterprise computer is like Linux!
Good morning, HAL...
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.