Patch for adduser: Create a system user
Charlie Brady
charlieb-busybox at e-smith.com
Tue Oct 30 21:09:10 UTC 2007
On Mon, 29 Oct 2007, Denys Vlasenko wrote:
> It also has "can select duplicate uid" bug fixed too:
>
> /* check for a free uid (and maybe gid) */
> while (getpwuid(p->pw_uid) || (!p->pw_gid && getgrgid(p->pw_uid)))
> p->pw_uid++;
>
> BTW, why are we setting setgid bit here?
>
> chmod(pw.pw_dir, 02755) /* set setgid bit on homedir */
>
> I vaguely remember that it means something for the creation of new files.
> Right?
New files will take the group from the directory, rather than the gid of
the creating process.
Google is still your friend:
http://www.google.com/search?q=setgid+directory+permissions
--
Charlie
More information about the busybox
mailing list