On Tue, Nov 26, 2013 at 3:55 PM, Reco <recovery...@gmail.com> wrote:
> On Tue, Nov 26, 2013 at 12:00:32PM +0000, Tom H wrote:
>>
>> I'm not an adduser user so that's why I checked the manpage for "-d".
>>
>> If your assumption that useradd short options should be understood
>> adduser, isn't this a bug?
>
> I don't know. But the behaviour of adduser and useradd is consistent in
> this regard:
>
> # userdel test
> # useradd -d /var/a/b/c test
> Creating mailbox file: File exists
> useradd: cannot create directory /var/a/b/c
> # userdel test
> # adduser -d /var/a/b/c test
> Creating mailbox file: File exists
> adduser: cannot create directory /var/a/b/c
>
> If that's a bug, it's sure a longstanding one - I've reproduced it on
> RHEL5 (which has userland from 2006).

When you use useradd, you need to add "-m" in order to create the homedir.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=SwCjwwyaiw=acbemvxdntfcxjj-orrxtyamio4r5u0...@mail.gmail.com

Reply via email to