[Pkg-shadow-devel] user directory in non-existing path
Peter Vrabec
pvrabec at redhat.com
Thu Feb 2 12:55:01 UTC 2012
Hi all,
If "useradd -b /non-existing -m foo" creates a new user and path to user's
homedir contains non-existing directories, the command fails.
Is such a behavior OK? I'm not sure. Man page is saying
"
-b, --base-dir BASE_DIR
The default base directory for the system if -d HOME_DIR is not
specified. BASE_DIR is concatenated with the account name to define the home
directory. If the -m option is not used, BASE_DIR must exist.
...
-m, --create-home
Create the user's home directory if it does not exist. ....
"
My assumption would be that non-existing directory is created.
thnx. for clarification,
Peter
-----
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=782515
More information about the Pkg-shadow-devel
mailing list