[Pkg-shadow-devel] Bug#360179: passwd: useradd creates home
directories owned by root by default
Christian Perrier
bubulle at debian.org
Fri Mar 31 05:01:19 UTC 2006
Package: passwd
Severity: important
Quoting Dalibor Straka (dast at panelnet.cz):
> Hello,
>
> I've found sth weird what could be a bug or a bad ;-) feature
> useradd.c is missing one line in
> static void create_home (void)
> chown (user_home, user_id, user_gid);
>
> It creates a directory always owned by root. Is that what we want?
root at mykerinos:/home# useradd -m krabs
root at mykerinos:/home# ls -l
total 16
drwxr-xr-x 147 bubulle bubulle 12288 2006-03-31 06:51 bubulle
drwx------ 3 fetchmail root 38 2005-12-28 19:25 fetchmail
drwxr-xr-x 2 ftp nogroup 24 2005-09-16 19:59 ftp
drwxr-xr-x 2 root root 59 2006-03-31 06:56 krabs
drwxr-xr-x 2 patrick patrick 6 2006-01-21 19:20 patrick
drwxr-xr-x 2 spongebob spongebob 57 2006-01-25 06:45 spongebob
Never noticed that as I use Debian's adduser but this is pretty much
weird to me, yes.
Let's officially open a bug (this is what you'd better have done but
thanks anyway for reporting). I even give this an important severity.
Dalibor, I'll assign you as bug submitter, as soon as I'll receive the
bug number, if you don't mind
Nicolas, Tomasz? Advices? Please better wait for the official bug
number and answer to it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20060331/e9e68352/attachment-0001.pgp
More information about the Pkg-shadow-devel
mailing list