linux文件权限查看及修改(实用)(View and modify Linux file permissions (practical))

linux文件权限查看及修改(实用)(View and modify Linux file permissions (practical))

Check the permissions of the Linux File: LS -l file name

Check the permissions of the Linux folder: the LS -ld folder name (where directory is located)

Modify file and folder permissions:

Sudo, Chmod - (representing type) * * * (owner) * * * (group user) * * * * (other users)

Commands that modify permissions frequently:

Sudo Chmod 600 * * * (only the owner has read and write permission)

Sudo Chmod 644 * * * (owner has read and write permissions, group users only read permissions)

Sudo Chmod 700 * * * (only the owner has read and write and execute permissions)

Sudo Chmod 666 * * * (everyone has the right to read and write)

Sudo Chmod 777 * * * (everyone has read and write and execute permissions)

Linux view and modify the file properties and permissions, 2009-12-24 17:27 just in the Ubuntu root directory, use the LS -l command, as follows:

1. drwxr-xr-x 2 root root 4096 2009-01-14 17:34 bin

2. drwxr-xr-x 3 root root 4096 2009-01-14 14:36 boot

3. drwxr-xr-x 12 root root 14080 2009-07-20 14:13 dev

4. lrwxrwxrwx 1 root root 11 2009-01-14 10:05 CDROM - > media/cdrom

Let's take a look at what these file attributes mean:

First row:

Drwxr-xr-x 2, root, root, 4096, 2009-01-14, 17:34 bin

Drwxr-xr-x 2, root, root, 4096, 2009-01-14, 17:34 bin

0123456789

File type code: [D] - [directory], [-] - files, [l] - links, [b] - can store peripherals, [C] - sequence devices.

File authority property [R] - readable, [w] - writable, [x] - executable.

0: is it a file or a directory, or is it a different type (here d: means a directory)?

123: the authority of the owner (where rwx: stands for the owner's ability to read, write, and execute)

456: express the user rights of the same group (here R-X represents the same group of users have readable, executable authority)

789: represents other user rights (where R-X stands for other users and has permission to read and execute)

Look at the fourth line:

4. lrwxrwxrwx 1 root root

LINUX修改权限modify,linux文件权限查看及修改(实用)(View and modify Linux file permissions (practical)).doc...相关推荐

  1. Linux 常用C函数说明-文件权限控制篇

    chdir(改变当前的工作(目录) 相关函数  getcwd,chroot 表头文件  #include<unistd.h> 定义函数  int chdir(const char * pa ...

  2. Linux 之用户管理与文件权限

    Linux 之用户管理与文件权限 一. 1.查看系统版本    uname       uname -a      uname -r      uname -m 2.特点 :              ...

  3. linux下的文件属性和文件权限

    linux系统下,一切都是文件,不管是硬件设备接口还是磁盘,都是有一个个的文件组成,称为包.在此,linux下磁盘分区是很重要的,可以看我之前写的关于linux分区.现在我们来看看文件的权限和属性,在 ...

  4. linux添加目录命令权限,linux chmod命令设置目录/文件权限详解

    首页 > Linux教程 > 常用命令 > chmod 文件权限 linux chmod命令设置目录/文件权限详解 linux中chmod命令用于改变系统文件或目录的访问权限,用数字 ...

  5. linux修改key文件夹,linux 中如何根据xml文件的key来修改value呢?

    源自:4-4 Linux中 grep命令 linux 中如何根据xml文件的key来修改value呢? 有个xml文件(server.xml)比如: .... 请问该如何获取加粗的   style=& ...

  6. linux下用chmod修改文件权限详解(文件权限与特殊权限)

    chmod 是一条在Unix系统中用于控制用户对文件的权限的命令(change mode单词前缀的组合)和函数.只有文件所有者和超级用户可以修改文件或目录的权限.可以使用绝对模式,符号模式指定文件的权 ...

  7. 【Linux入门指北】文件权限的修改与验证 实验篇

    文件权限的修改与验证 文章目录 文件权限的修改与验证 一.实验目的 二.实验内容 三.实验器材 四.实验步骤及结果 总结 一.实验目的 1.掌握文件和文件夹的基本操作: 2.懂得查看和识别文件的权限: ...

  8. linux特殊权限是e,linux下用chmod修改文件权限详解(文件权限与特殊权限)

    chmod是一条在Unix系统中用于控制用户对文件的权限的命令(changemode单词前缀的组合)和函数.只有文件所有者和超级用户可以修改文件或目录的权限.可以使用绝对模式,符号模式指定文件的权限. ...

  9. Linux中的用户及文件权限管理总结

    一.用户 1.查看用户:who am I 2.创建用户:sudo adduser <用户名> 在linux中,root权限拥有至高无上的权利,一般登录系统时都是以普通账户的身份登录的,要创 ...

最新文章

  1. elementui el-drawer去除自带黑色边框、允许滚动(亲测有效)
  2. commons-lang3:DateUtils
  3. NameError: name ‘c‘ is not defined--python报错问题
  4. 软件测试web和app,软件测试如何快速进阶?过来人科普Web与App测试5大区别!
  5. ToolStripContainer
  6. QT utf8编码转gb2312编码,互相转换的源代码
  7. 物联网核心技术射频识别技术,传感技术,网络通信技术、嵌入式系统技术和云计算的基本介绍
  8. java枚举类型学习笔记
  9. 谢烟客-----计算机基础
  10. 自建家居 Wiki 系统(BookStack 服务)
  11. 快鲸科技邀您一起合作,共同发展
  12. rk3399 typec鼠标及滑鼠问题
  13. java两张png图片合成_java将两张图片合成
  14. C语言 指针的解引用详解
  15. 信息论知识——基础梳理
  16. 数仓工具—Hive实战之UDF汉字首字母(22)
  17. 对话张建锋:阿里如何管理超大规模研发团队?| 钛媒体独家
  18. 负数的二进制与十进制转化
  19. 动态链接一:ELF文件格式
  20. 【计算机毕业设计】基于微信小程序的英语四六级助手系统

热门文章

  1. SAP License:SAP顾问是如何炼成的——SAP顾问的定义
  2. 年后复工,逾期升高,策略应该怎么调优
  3. 【Axure电商原型】电商APP高保真原型+移动端通用版电商app模板+用户中心+会员体系+内容推荐+社区体系+运营推广+订单流程+运营活动+订单管理+售后及服务+秒杀专区+特惠推荐+高保真移动端电商
  4. pyqt5-控件是否可用
  5. vue - (引入jq)
  6. 利用Python构建时间序列模型解决实际问题的正确姿势
  7. 为什么会有jQuery、Dojo、Ext、Prototype、YUI、Zepto这么多JS包?
  8. 微信为什么没有公众号导航
  9. 站在我个人的角度上来说。。。。。
  10. 【转载】印制板设计的流程及注意事项