Re: Finding the UID for samba users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux