组账户管理
组账户管理
[root@localhost home]# groupadd public(组名)
[Anolis@localhost /]$ groups Anolis/groups 查看用户属于那个组的/
[root@localhost home]# cat /etc/group | tail -5 /查看组信息/
[root@localhost home]# groupmod -g 1111 public /修改组UUID/
[root@localhost home]# groupdel 组名 /删除组/
[root@localhost home]# gpasswd -a Anolis public /*把 Anolis 添加到public组 gpasswd -a (添加) 用户名 组名 ;gpasswd -d(剔除) */
基本权限管理
基本权限管理
一、
[root@localhost Anolis]# ls -l test.txt /查看文件信息/
- rw- r-- r-- 1 root (所有者) root(组) 0 6月 5 08:16 test.txt /rw- (user ‘u’) , r-- (group 'g ') r–(other ‘o’ 其他) ;r代表(读),w(写,修改),x(执行) /
/第一个位置代表文件类型 -(普通类型),l(连接类型),d:表示目录(directory&