LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2005, 12:29 PM   #1
NCC-1701&NCC-1701-D
Member
 
Registered: May 2005
Distribution: Debian Woody,Knoppix
Posts: 88

Rep: Reputation: 16
Unhappy 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!

Last edited by NCC-1701&NCC-1701-D; 09-13-2005 at 12:31 PM.
 
Old 09-13-2005, 01:00 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,356
Blog Entries: 4

Rep: Reputation: 3336Reputation: 3336Reputation: 3336Reputation: 3336Reputation: 3336Reputation: 3336Reputation: 3336Reputation: 3336Reputation: 3336Reputation: 3336Reputation: 3336
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.
 
Old 09-13-2005, 02:11 PM   #3
Orkie
Member
 
Registered: Mar 2005
Distribution: Breezy Badger
Posts: 248

Rep: Reputation: 30
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.
 
Old 09-14-2005, 07:33 AM   #4
vireshwali
Member
 
Registered: Sep 2005
Posts: 67

Rep: Reputation: 15
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.
 
Old 09-14-2005, 10:16 AM   #5
NCC-1701&NCC-1701-D
Member
 
Registered: May 2005
Distribution: Debian Woody,Knoppix
Posts: 88

Original Poster
Rep: Reputation: 16
many thanks!
 
Old 09-14-2005, 02:13 PM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,356
Blog Entries: 4

Rep: Reputation: 3336Reputation: 3336Reputation: 3336Reputation: 3336Reputation: 3336Reputation: 3336Reputation: 3336Reputation: 3336Reputation: 3336Reputation: 3336Reputation: 3336
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 ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
create a highly restricted acount pi_squared Linux - Newbie 1 11-22-2004 04:43 PM
dhcp to root works but not in user acount ? hos-v2 Linux - Wireless Networking 0 07-04-2004 10:02 AM
Using more than one acount in KMail 1.5.4 bitpicker Linux - Software 4 01-16-2004 04:26 AM
Samba and winbind acount problems hernandi Linux - Networking 0 10-24-2003 05:23 AM
what is it mean by shell acount? wincrk Linux - General 4 03-16-2003 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration