useradd creating 0662 homedir permission?

Warren Togami wtogami at redhat.com
Fri Apr 17 15:52:59 UTC 2009


On 04/17/2009 04:24 AM, Warren Togami wrote:
> [root at newcaprica home]# useradd test
> [root at newcaprica home]# ls -al
> total 20
> drwxr-xr-x. 5 root root 4096 2009-04-17 04:17 .
> drwxr-xr-x. 24 root root 4096 2009-04-16 22:38 ..
> drw-rw--w-. 4 test test 4096 2009-04-17 04:17 test
>
> /home/test is 0766. That can't possibly be correct?
>
> Attempting to login to this user is pretty broken.
>

I was up way too late... it is indeed 0662 which seems totally broken. 
umask looks right.

[root at newcaprica home]# umask
0022
[root at newcaprica home]# useradd test
[root at newcaprica home]# ls -ld test
drw-rw--w-. 4 test test 4096 2009-04-17 11:42 test

Turns out this is a broken shadow-utils that was reverted from rawhide.

shadow-utils-4.1.3-2.fc11.x86_64

Warren Togami
wtogami at redhat.com




More information about the devel mailing list