-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Jan 15, 2003 at 05:40:20PM +0000, Rui Miguel Seabra wrote: > or, if you want only the 'normal' users: > > awk 'BEGIN {FS=":"} $3>=500 {print $1}' < /etc/passwd There are only two kinds of users on a Unix system: root, and not root. All users other than root are "normal" users, even if they exist only to run some service on the system. Using a UID < 500 for users which run system processes is a convention of Red Hat, which need not be adhered to, and relying on that convention could conceivably result in (a relatively small amount of) grief. Other distributions use 1000 as the UID to start adding "regular" users... Some Unix platforms (including some older Linux distributions, IIRC) simply use the next lowest unused UID (i.e. if the highest UID in use on the system is 56, then a new user added to the system will have UID 57, unless you specify otherwise). While it's true that on Red Hat systems, accounts with UIDs < 500 are set aside for "system" accounts, you should be aware that there's nothing particularly magical about either the number 500 or the accounts which use such UIDs. It is simply a convention that such UIDs are used for accounts which don't have a human user associated with them. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+JZ9pHEnASN++rQIRAiTVAJ9Wr+Jb+bFSMonjTRar4NbL//R8kQCguUSg JJwQ1UA4DVEFDVZuwXU517s= =0b3n -----END PGP SIGNATURE----- -- Psyche-list mailing list Psyche-list@redhat.com https://listman.redhat.com/mailman/listinfo/psyche-list