[ale] Determining info about a user account [was: Re: USB Key FOB not unmountable by user]

Daniel Kahn Gillmor dkg at fifthhorseman.net
Fri Oct 19 13:09:53 EDT 2007


On Fri 2007-10-19 10:46:10 -0400, James P. Kinney III wrote:

> On Fri, 2007-10-19 at 10:31 -0400, James Sumners wrote:
>> Also, uid 1000 is usually root. Thus, root must unmount it.
>
> UID 0 is root. Most human users UID start above 500 or so but some
> systems start at 1000. check /etc/passwd for the username for UID 1000.

or just do:

 getent passwd 1000

which should work regardless of what kind of craziness you've got in
/etc/nsswitch.conf

/usr/bin/getent is packaged with any reasonable distribution of GNU's
libc6.

hth,

        --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 826 bytes
Desc: not available




More information about the Ale mailing list