You are not logged in.
Pages: 1
According to the man page, I can use -b, --base-dir BASE_DIR as option to useradd. But this doesn't work:
> useradd -b /home -m test
[Here useradd prints the usage rules, saying thereby that the command was incorrectly formed]
Where is the mistake?
Thanks.
Offline
I think the '/home' is what causing your problem. Take it out probably.
Offline
I can't use -b without path, so '/home' or something else is necessary. I changed '/home' to a custom dir, but it didn't help:
> sudo mkdir /tst
> sudo useradd -b /tst -m test
[ the same output ]
Offline
Try it without the -b function so just. I believe it takes /home/*USERNAME* as default.
useradd -m test
Offline
Works fine without -b. I think this option can't be used in usual mode when adding an user (it is a bug in the man page). The only place for -b is on pair with -D:
useradd -D -b /some/dir
Offline
Pages: 1