Robert S
2004-10-04 10:50:10 UTC
I recently tried to add a new user to my system:
basement root # ls -la /etc/skel
total 20
drwxr-xr-x 3 root root 4096 Oct 4 20:32 .
drwxr-xr-x 73 root root 4096 Oct 4 20:44 ..
-rw-r--r-- 1 root root 232 Aug 1 13:33 .bash_profile
-rw-r--r-- 1 root root 812 Aug 1 13:33 .bashrc
drwx------ 7 root root 4096 Oct 4 20:30 .maildir
basement root # userdel test
userdel: user test does not exist
basement root # ls -la /etc/skel
total 20
drwxr-xr-x 3 root root 4096 Oct 4 20:32 .
drwxr-xr-x 73 root root 4096 Oct 4 20:44 ..
-rw-r--r-- 1 root root 232 Aug 1 13:33 .bash_profile
-rw-r--r-- 1 root root 812 Aug 1 13:33 .bashrc
drwx------ 7 root root 4096 Oct 4 20:30 .maildir
basement root # useradd test
basement root # ls /home/test
ls: /home/test: No such file or directory
basement root # cat /etc/default/useradd
# useradd defaults file
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
.. In other words, useradd is not creating the home directory. How do you
get it to create a home directory based on /etc/skel?
--
gentoo-***@gentoo.org mailing list
basement root # ls -la /etc/skel
total 20
drwxr-xr-x 3 root root 4096 Oct 4 20:32 .
drwxr-xr-x 73 root root 4096 Oct 4 20:44 ..
-rw-r--r-- 1 root root 232 Aug 1 13:33 .bash_profile
-rw-r--r-- 1 root root 812 Aug 1 13:33 .bashrc
drwx------ 7 root root 4096 Oct 4 20:30 .maildir
basement root # userdel test
userdel: user test does not exist
basement root # ls -la /etc/skel
total 20
drwxr-xr-x 3 root root 4096 Oct 4 20:32 .
drwxr-xr-x 73 root root 4096 Oct 4 20:44 ..
-rw-r--r-- 1 root root 232 Aug 1 13:33 .bash_profile
-rw-r--r-- 1 root root 812 Aug 1 13:33 .bashrc
drwx------ 7 root root 4096 Oct 4 20:30 .maildir
basement root # useradd test
basement root # ls /home/test
ls: /home/test: No such file or directory
basement root # cat /etc/default/useradd
# useradd defaults file
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
.. In other words, useradd is not creating the home directory. How do you
get it to create a home directory based on /etc/skel?
--
gentoo-***@gentoo.org mailing list