文件权限的管理。
 (1)创建目录 test ,进入 test 目录,创建普通文件 test . txt 。
  root @ localhost # mkdir / Test 
 [ root @ localhost ]# touch / Test / test . txt 
 (2)为 test . txt 设置权限,使得任何人对这个文件不能删除、重命名,不能写入、添加数据,不能创建硬链接。查看设
 [ root @ localhost ]# cd / Test 
 [ root @ localhost Test ]# chattr + i test . txt 
 (3)查看隐藏权限后,取消隐藏权限。
 [ root @ localhost Test ]#1sattr test . txt 
 - i 
  test . txt 
 [ root @ localhost Test ]# chattr - i test . txt 
 (4)为 test . txt 设置权限,使得任何人对这个文件只能增加数据,不能删除、修改数据。查看设置结果。
 [ root @ localhost Test ]# chattr + ta test . txt 
 (5)为/ root 目录设置权限,使得user02有 rwx 的权限,查看设置结果。
 [ root @ localhost Test 」# useradd user02
  root @ localhost Test ]# cd / root 
 [ root @ localhost ]# touch / root /user02
 [ root @ localhost ]# chmod 666/ root /uesr02
 [ root @ localhost ]# getfacl ,/ root 
  getfacl : Removing leading '/ from absolute path names 
 # file : root 
 # owner : root 
 # group : root 
  user :: rwx 
 user02:rwx
  group :: rwx 
  other :: rwx