Re: "adduser" and single-user groups
John writes: > Could someone point me in the direction of enlightenment with regard > to the value add of the "group per user" approach that adduser > uses? "man adduser"; about 60 lines in, there is a whole section titled "UNIQUE GROUPS". This is the document you want. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: "adduser" and single-user groups
On 27/01/10 19.05, John wrote: Could someone point me in the direction of enlightenment with regard to the value add of the "group per user" approach that adduser uses? Is that a FreeBSD thing, or a *BSD thing, or a unix-like-universe thing, or what? Many systems do this AFAIK. IIRC, the point is that you can set umask to 007 or 002 and your home directory with owner you, and group you will remain private or at least only writable by you. The umasks 007 or 002 are useful if you have some shared folder where you have multiple users with write access, say: drwxrwxr-x root:users /home/share With umask 002, when files are created in this directory by another user in the users group, all users in this group can edit that file, no need to modify permissions. BR, Erik -- Erik Nørgaard Ph: +34.666334818/+34.915211157 http://www.locolomo.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: "adduser" and single-user groups
Hi, John John wrote: > Could someone point me in the direction of enlightenment with regard > to the value add of the "group per user" approach that adduser > uses? Is that a FreeBSD thing, or a *BSD thing, or a unix-like-universe > thing, or what? > If I understand your question correctly, you are asking about the default group to which a user is added upon user creation. If not, please explain more on what you are asking. useradd(8) will automatically add a user to a group, named after the user, unless otherwise specified. This is the login group for the user, and the primary GID used when read/write access to files and directories is determined. This, of course, can be overridden with the '-g' flag, changing the default group, and additionally with '-G' to add to several groups. Regards, -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
"adduser" and single-user groups
Could someone point me in the direction of enlightenment with regard to the value add of the "group per user" approach that adduser uses? Is that a FreeBSD thing, or a *BSD thing, or a unix-like-universe thing, or what? Thanks! -- John Lind j...@starfire.mn.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"