-
目录权限.......
查看全部 -
权限数字,用。。。。。。。
查看全部 -
777 644 755
查看全部 -
文件权限的作用
查看全部 -
文件权限的设定
查看全部 -
-rw-r--r--
第一个符号是文件类型(常用: -:文件目录/d:目录/l:软连接文件)"rw-" "r--" "r--"
u所有者 g所属组 o其他人
r:读 w:写 x:执行
修改文件权限
chmod [选项] 模式 文件名
-R 递归(执行命令,修改文件及文件下的所有文件权限)chmod u+x 1.log
授权所有者(u)对1.log增加写的权限chmod g+w,o+w 2.log
授权所属组(g)和其他人(o)对2.log增加写的权限chmod g-w,o-w 2.log
取消所属组(g)和其他人(o)对2.log减去写的权限chmod g=rw,u=rw 2.log
直接授权所有者(u)和所属组(g)对2.log增加读写的权限chmod a=rw 2.log
授权所有者(u),所属组(g)和其他人(o)对2.log增加读写的权限
"a="是指所有人授权可用权限的数字表示
r ---- 4
w ---- 2
x ---- 1
例:rwxr-xr-x
7 5 5
即:chmod 755 2.log
授权对所有者(u)对2.log读写执行,所属组(g)对2.log读执行,其他人(o)对2.log读执行
常用: 777 644 755查看全部 -
TODO: UID??
su - 用户名??
vi /etc/profile
普通用户UID>500, root UID = 0
速成用户 su - user1???
查看全部 -
新创建文件的默认权限与上一级目录无关
默认无x权限,最大文件权限rw(4,2) 666
umask 022 -----w--w-,相减等于默认权限
查看全部 -
The options which apply to the gpasswd command are:
-a, --add user
Add the user to the named group.
-d, --delete user
Remove the user from the named group.
-r, --remove-password
Remove the password from the named group. Only group members will be allowed to use newgrp to join the named group.
-R, --restrict
Restrict the access to the named group. Only group members will be allowed to use newgrp to join the named group.
-A, --administrators user,...
Set the list of administrative users.
-M, --members user,...
Set the list of group members.
查看全部 -
change owner group chown 给某个用户赋予权限7,好的解决方案 chown 用户:所属组 文件名
查看全部 -
Whoami useradd passwd
查看全部 -
对目录有意义的权限是:0(无权限).5(rx).7(rwx)
查看全部 -
目录的x权限:可以进入目录 cd
查看全部 -
删除权限
目录——文件——数据 是从右到左所属的关系。
删除文件(所属目录)的权限须要对目录有w 权限。
文件名存储与对目录分配的空间中
查看全部 -
chmod命令 change mode
u=owner g=group o=other a=all
查看全部 -
TODO:软链接文件类型
查看全部 -
umask配置文件:普通用户UID:500,超级用户UID:0
查看全部 -
修改umask值
查看全部 -
目录的默认权限
查看全部 -
文件默认权限计算
文件最高默认权限为666,不能有执行(x)权限,666(-rw-rw-rw-) - umask(022)(-----w--w-) = 644(-rw-r--r--)(文件默认权限)
查看全部 -
文件的默认权限
查看全部 -
查看默认权限的命令
查看全部 -
文件默认权限课程大纲
查看全部 -
分配文件基本权限原则
查看全部
举报