[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: colord Warning during upgrade to wheezy



On Tue, Nov 26, 2013 at 3:55 PM, Reco <recoverym4n@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.


Reply to: