linux用户、组、权限等简单操作
1.groupadd student
useradd -g student -d /usr/local/stu1 -m stu1
echo “123456” | passwd stu1 --stdin
tail -1 /etc/shadow
useradd stu2
tail -1 /etc/shadow
echo “123456” | passwd stu2 --stdin
tail -1 /etc/shadow
cat /etc/group
3.
gpasswd -d stu2 student
cat /etc/passwd
cat /etc/shadow