Red Hat Bugzilla – Bug 469158
base directory option (--base-dir) not recognized
Last modified: 2010-03-30 04:13:27 EDT
Current RHEL-5.3 version of adduser does not recognize base directory option (--base-dir).
# mkdir /home/servers
# adduser -b /home/servers/ baad
Usage: useradd [options] LOGIN
-b, --base-dir BASE_DIR base directory for the new user account
# echo $?
# userdel baad
userdel: user baad does not exist
# rpm -qf `which adduser`
Successfully create home directory and add new user ...
This works in F9, but does not work in RHEL-5 since GOLD. Also, does not work in RHEL-4.7.
Behaviour in F9:
# mkdir -p /home/server/misc/
# adduser -b /home/server/misc/ test
# ls -dla /home/server/misc/test/
drwx------ 4 test test 4096 2008-10-31 18:33 /home/server/misc/test/
# rpm -q shadow-utils
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.