home directory - useradd ignores defaults in /etc/default/useradd - Ask Ubuntu
ftp migration. moving ftp server windows ubuntu, , rebuilding storage ftp on different server. i'm doing 1 time pass create 100 users, same password, home directories on mounted remote server. here's i'm running:
ls /media/oldftp | grep -ev '^[[:digit:]]{4}|^p[[:digit:]]{4}|^w[[:digit:]]{4}' | xargs -n1 -d'\n' useradd -m -g ftpusers -n -p [encryptedpassword]
this runs fine. it's supposed to, except home directory in standard location of /home/, instead of location defined in /etc/default/useradd file , useradd -d -b /media/ftpshare
. when run useradd -d
setting added previous command.
why useradd ignore these purported defaults?
Comments
Post a Comment