linux change 增加权限,Linux如何更改文件及文件夹权限(How does Linux change files and folder permissions).doc...

Linux如何更改文件及文件夹权限(How does Linux change files and folder permissions)

Linux如何更改文件及文件夹权限(How does Linux change files and folder permissions)

How does Linux change file and folder permissions? That's a good question. The setting of Linux file permissions is another highlight of the Linux operating system, which makes the Linux operating system more secure. Here's a detailed overview of how Linux changes file and folder permissions.

Let's first take a look at the file properties, enter in the shell environment: LS -l, you can view the current directory file. Such as:

Drwxr-xr-x 2, NSF users 102412-10, download the file backup at 17:37

Corresponding to:

File property, connection number, file owner, group file size, file modification time, file name

Here is R W readable, writable, X executable file attributes, which is divided into four sections, - 10 positions

Such as:

D RWX R-X R-X

The first character specifies the file type. In a common sense, a directory is also a file. If the first character is a horizontal line, it means that it is a non directory file. If it is D, it means a directory.

The second paragraph is the property of the file owner,

The third paragraph is the attribute of the file owned group,

The fourth paragraph is the property for other users,

If the above folder "access the download file backup" folder, said "download file backup" is a directory file folder; "download file backup" is the main read and write executable permissions; read and execute permission only and folder "download file backup" is the main group of users with other users; read and execute permissions.

After determining the access rights of a file, the user can use the Chmod command provided by the Linux system to reset the different access rights. You can also use the chown command to change the owner of a file or directory. A user group that changes a file or directory using the chgrp command.

Chmod command

Function: the Chmod command is very important for changing access to files or directories. Users use it to control access to files or directories

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值