[root@zyj ~]# cd /tmp
[root@zyj tmp]# touch 1.txt
[root@zyj tmp]# echo 123 > 1.txt
[root@zyj tmp]# chmod o=rw 1.txt
[root@zyj ~]# passwd xiaohong
Changing password for user xiaohong.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
[root@zyj ~]# passwd xiaoming
Changing password for user xiaoming.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfull
[root@zyj ~]# setfacl -m u:xiaohong: rw / tmp/root.txt
[root@zyj ~]# setfacl -m u:xiaoming:r / tmp/root.txt
[root@zyj~]# ll /tmp/xiaoming.txt
- rw-r--r--. 1 xiaoming xiaoming 0 Jul 20 13:21 /tmp/xiaomin.txt
[root@zyj ~]# chown xiaohong:xiaohong /tmp/xiaoming.txt
[ root@zyj ~]# ll /tmp/xiaoming.txt
二
[root@zyj~]#groupadd group2
[root@zyj~]#[root@zyj~]#useradd xiaoxiao -g group2
[root@zyj~]#id xiaoxiao[root@zyj~]# passwd xiaoxiao
Changing password for user xiaoxiao.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
[root@z ~]# userdel -r xiaoxiao
[ro@zyj ~]# id xiaoxiao