Linux user configuration
新建用户配置:/etc/default/useradd
新建用户的隐藏文件在:/etc/skel
migration user:
1. migrate files: /etc/passwd, /etc/shadow, /etc/group, /etc/gshadow;
2. migrate folder: /home
3. migrate mail: /var/mail
normal user account get root privilege
1. root grant privilege
root account: use command "visudo" to modify /etc.sudoers file
normal account: sudo <command>
2. change to root account to execute command
3. change the privilege of command such as ifconfig
chmod u+s <command>
After this, user can execute the command
umask
config file /etc/bashrc
Default
root umask 022--> file 666 - 022 = 644; folder 777-022 = 755
other user umask 002 --> file 666 - 002 = 664; folder 777 - 002 = 775
Comments
Post a Comment