[CentOS] Determine next UID number
m.roth at 5-cent.us
m.roth at 5-cent.usWed Oct 13 20:48:40 UTC 2010
- Previous message: [CentOS] Determine next UID number
- Next message: [CentOS] network interface question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Bowie Bailey wrote: > On 10/13/2010 4:22 PM, Terry Polzin wrote: >> On Wed, 2010-10-13 at 20:09 +0000, Joseph L. Casale wrote: >>>> Is there an equivalent in CentOS? >>> cat /etc/passwd |cut -d ":" -f 3 |sort -n NEXTUID=`expr $LASTUID + 1` >>> >>> ;) >> LASTUID=`cat /etc/passwd |grep -v nologin|cut -d ":" -f 3 |sort -n | >> tail -1`; NEXTUID=`expr $LASTUID + 1`; echo $NEXTUID > > That assumes the highest UID number has a login shell... And that there's not nobody with a UID of 65k mark
- Previous message: [CentOS] Determine next UID number
- Next message: [CentOS] network interface question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list