Re: I can't see my user name in `pw group show wheel`
lveax wrote: > On 12/22/06, Matthew Seaman <[EMAIL PROTECTED]> wrote: >> The primary group is defined in /etc/master.passwd -- the gid >> number is put into the third field. Eg: consider the standard >> system user bin: >> >> happy-idiot-talk:~:% id bin >> uid=3(bin) gid=7(bin) groups=7(bin) >> happy-idiot-talk:~:% pw group show bin >> bin:*:7: >> happy-idiot-talk:~:% pw user show bin >> bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin >> ^ >> ^ >> >> No UIDs are listed as members of group bin in /etc/group, but the >> bin user has bin as their primary group deom the password file. > thank you > > but i find an exception? > > $ id root > uid=0(root) gid=0(wheel) groups=0(wheel), 5(operator) > > root's primary group is wheel and root is in the list? Yeah. The root account is special in many ways, and what you point out is just one visible manifestation of that. However I suspect this is of no deeper significance than historical inertia -- something that's been in BSD password and group files since the epoch or thereabouts. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. Flat 3 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW, UK signature.asc Description: OpenPGP digital signature
Re: I can't see my user name in `pw group show wheel`
On 12/22/06, Matthew Seaman <[EMAIL PROTECTED]> wrote: lveax wrote: > hey all. > > i found a problem just now. > i added this user(in wheel group)with sysinstall when i install freebsd. > > $ id > uid=1001(user) gid=0(wheel) groups=0(wheel), 5(operator), 69(network) > > $ pw group show wheel > wheel:*:0:root > > i can't see it in the wheel group users list? > > but when i add a new user with adduser,it will in the list. That's because you've made 'wheel' the primary group for that user, which is probably not exactly what you intended. The primary group is defined in /etc/master.passwd -- the gid number is put into the third field. Eg: consider the standard system user bin: happy-idiot-talk:~:% id bin uid=3(bin) gid=7(bin) groups=7(bin) happy-idiot-talk:~:% pw group show bin bin:*:7: happy-idiot-talk:~:% pw user show bin bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin ^ ^ No UIDs are listed as members of group bin in /etc/group, but the bin user has bin as their primary group deom the password file. adduser probably does the common trick of creating a user and a group of the same name -- in fact, pw(8) will also do precisely that unless you specify a primary group using the '-g' flag. Use the '-G' flag instead to specify other groups for the user to belong to. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW thank you but i find an exception? $ id root uid=0(root) gid=0(wheel) groups=0(wheel), 5(operator) root's primary group is wheel and root is in the list? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: I can't see my user name in `pw group show wheel`
lveax wrote: > hey all. > > i found a problem just now. > i added this user(in wheel group)with sysinstall when i install freebsd. > > $ id > uid=1001(user) gid=0(wheel) groups=0(wheel), 5(operator), 69(network) > > $ pw group show wheel > wheel:*:0:root > > i can't see it in the wheel group users list? > > but when i add a new user with adduser,it will in the list. That's because you've made 'wheel' the primary group for that user, which is probably not exactly what you intended. The primary group is defined in /etc/master.passwd -- the gid number is put into the third field. Eg: consider the standard system user bin: happy-idiot-talk:~:% id bin uid=3(bin) gid=7(bin) groups=7(bin) happy-idiot-talk:~:% pw group show bin bin:*:7: happy-idiot-talk:~:% pw user show bin bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin ^ ^ No UIDs are listed as members of group bin in /etc/group, but the bin user has bin as their primary group deom the password file. adduser probably does the common trick of creating a user and a group of the same name -- in fact, pw(8) will also do precisely that unless you specify a primary group using the '-g' flag. Use the '-G' flag instead to specify other groups for the user to belong to. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
I can't see my user name in `pw group show wheel`
hey all. i found a problem just now. i added this user(in wheel group)with sysinstall when i install freebsd. $ id uid=1001(user) gid=0(wheel) groups=0(wheel), 5(operator), 69(network) $ pw group show wheel wheel:*:0:root i can't see it in the wheel group users list? but when i add a new user with adduser,it will in the list. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"