Re: colord Warning during upgrade to wheezy
On Mon, Nov 25, 2013 at 8:48 AM, Reco <recoverym4n@gmail.com> wrote:
> On Mon, Nov 25, 2013 at 12:13:41AM -0700, Bob Proulx wrote:
>>
>> I just looked at that script. I agree that as written now that it is
>> expected behavior by that script. But I think the script is not
>> written well. It should create the user first. It is using adduser
>> to create the user. It should let it create the home directory. Then
>> the spurious message that is printed out during the installation would
>> be avoided. That would be much nicer.
>>
>> I don't have the time but I think it would be a good bug to fail
>> against the package. Because the message is truly a spurious one that
>> need not be there if the package were perfect.
>
> The adduser executable cannot make user's home directory if such
> directory is nested and upper-level directories aren't exist.
>
> Just tested this, and got:
>
> # adduser -d /var/a/b/c test
> adduser: cannot create directory /var/a/b/c
What does "-d" mean?
[root@lenovo15]# adduser --home /var/a/b/c test
Adding user `test' ...
Adding new group `test' (1001) ...
Adding new user `test' (1001) with group `test' ...
Creating home directory `/var/a/b/c' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for test
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n]
[root@lenovo15]#
Reply to: