When we use /usr/sbin/useradd to create a user, it's home directory may contain some default files or folders (it is hidden usually).
However, we may want to create a the home directory for user manually in certain situation, for example, use LDAP to manage user account:
# mkdir /home/someuser
# cp /etc/skel/.* /home/someuser
# chown -R somebody.users /home/someuser
# chmod 700 -R /home/someuser
No comments:
Post a Comment