LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 03-07-2008, 12:47 AM   #1
srihariv
LQ Newbie
 
Registered: Jan 2008
Posts: 19

Rep: Reputation: 0
Userdel command , Need explaination


hello,

I have the list of users in my /etc/passwd and i being a super admin feel that some of the users need has to be deleted from the list.
Let's say these are following list of users ,

root:$1$FEoFUC9F$QL.JdIPi7Vt7hTsn9htej/:0:0:root:/root:/bin/bash
bin:*:1:1:bin:/bin:/bin/sh
daemon:*:2:2:daemon:/usr/sbin:/bin/sh
sys:*:3:3:sys:/dev:/bin/sh
adm:*:4:4:adm:/var/adm:/bin/sh
lp:*:5:7:lp:/var/spool/lpd:/bin/sh
sync:*:6:8:sync:/bin:/bin/sync
shutdown:*:7:9:shutdown:/sbin:/sbin/shutdown
halt:*:8:10:halt:/sbin:/sbin/halt
mail:*:9:11:mail:/var/mail:/bin/sh
news:*:10:12:news:/var/spool/news:/bin/sh
uucp:*:11:13:uucp:/var/spool/uucp:/bin/sh
operator:*:12:0perator:/root:/bin/sh
games:*:13:60:games:/usr/games:/bin/sh
ftp:*:15:14:ftp:/var/ftp:/bin/sh
man:*:16:20:man:/var/cache/man:/bin/sh
www:*:17:18:www-data:/var/www:/bin/sh
sshd:*:18:19:sshd:/var/run/sshd:/bin/sh
proxy:*:19:21roxy:/bin:/bin/sh
telnetd:*:20:22roxy:/bin:/bin/sh
backup:*:34:34:backup:/var/backups:/bin/sh
ais:*:101:101:ais:/var/run/ais:/bin/sh
nobody:*:65534:65534:nobody:/nonexistent:/bin/sh

from the above list the only that seems valid to me is root, and i guess i can go and delete others...

So before me deleting those users, I just want to know what will be consequences for e.g if i userdel man , does that mean that man will not work...

Can someone explain me above the internals of adding users and deleting them, Is there a uid associated with it etc.. ?

Anyone please throw some light on this ???

~Srihari.
 
Old 03-07-2008, 01:25 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
Why do you want to delete any of those users? What problem are you trying to solve?

If you do a Google search using "/etc/passwd linux", you'll find several good links.
 
Old 03-07-2008, 02:11 AM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
These users are system users which are created for privilege separation. That way, if you run an apache server for example, it will run as user www instead of as root. You don't want to delete them.
 
Old 03-07-2008, 02:48 AM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
If I were you, I'd leave things as they are. Deleting those system users may result in some applications, services and daemons not working as expected. As for user management, take a look at this article.
 
Old 03-07-2008, 03:57 AM   #5
srihariv
LQ Newbie
 
Registered: Jan 2008
Posts: 19

Original Poster
Rep: Reputation: 0
@ all,

Thanks for all your inputs .. I guess each one of you gave me some idea how important these users are.. So going forward i now know what needs to be done with users.

Thanks once again..

~Srihari.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash: userdel: command not found dwdrumrboy Linux - Newbie 9 04-16-2005 12:47 PM
Squid process. need explaination! mrpc_cambodia Red Hat 5 10-11-2004 12:18 PM
removing users with userdel linuxtesting2 Linux - Newbie 1 09-15-2004 02:35 AM
userdel command... should I run it? The_Nerd Linux - Software 2 09-12-2004 09:31 PM
Explaination Of DNS Terms Joe_Astor Linux - Networking 7 04-11-2004 03:56 AM


All times are GMT -5. The time now is 11:38 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration