Finding the UID for samba users

Alexander Dalloz ad+lists at uni-x.org
Fri Aug 5 17:20:02 UTC 2005


Am Fr, den 05.08.2005 schrieb Paul Howarth um 19:06:

> > In order to properly secure the home folders, I need to chown them to
> > the UID of the individual user, and chgrp them to the domain users
> > group.  I know the GID for the domain users, so no problem there.  Is
> > there a way to find a list of the UID for all the users.  

> Try:
> 
> getent passwd username | cut -d: -f3
> 
> Substitute "username" with the username you're interested in.
> 
> Paul.

Or

awk -F":" ' { print "UID: "$3"   \tName: "$1 } ' /etc/passwd

to get a full list. Normally all user ids >=500 are mortal user accounts.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 19:17:58 up 17:21, 20 users, 0.16, 0.10, 0.08 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050805/04db5c7b/attachment-0001.sig>


More information about the fedora-list mailing list