当前位置:网站首页>Rhsca day 11 operation
Rhsca day 11 operation
2022-07-04 10:18:00 【Attiude】
Homework today :
1. create a file , And give authority 611( Two ways , A kind of guoa, A kind of nnn)
[[email protected] ~]# chmod 755 chom_dir
[[email protected] ~]# chmod u=rwx,go=rx chom_dir
2. Create directory , And give authority 755( Two ways , A kind of guoa, A kind of nnn)
[[email protected] ~]# chmod 611 chom_dir.txt
[[email protected] ~]# chmod u=rw,go=x chom_dir.txt
3. create a file , And modify the owner and group of the file to other users

4. Set up suid, Set for file suid( Two ways u+s and nnnn) The way
[[email protected] ~]# chmod u+s chom_test.txt
[[email protected] ~]# ll chom_test.txt
-rwSr--r--. 1 sarah sarah 0 11 month 26 00:00 chom_test.txt
[[email protected] ~]# chmod u+x chom_test.txt
[[email protected] ~]# ll chom_test.txt
-rwsr--r--. 1 sarah sarah 0 11 month 26 00:00 chom_test.txt
[[email protected] ~]# chmod 4774 chom_test.txt
[[email protected] ~]# ll chom_test.txt
-rwsrwxr--. 1 sarah sarah 0 11 month 26 00:00 chom_test.txt
5. Set up sgid, Set for file sgid( Two ways g+s and nnnn) The way
[[email protected] ~]# chmod g+x chmo_test2
[[email protected] ~]# chmod g+s chmo_test2
[[email protected] ~]# ls -dl chmo_test2/
drwxr-sr-x. 2 root root 6 11 month 26 00:29 chmo_test2/
6. Set up sbit, Set for directory sbit( Two ways o+t and nnnn) The way
[[email protected] ~]# touch chmo_test3
[[email protected] ~]# chmod o+x chmo_test3
[[email protected] ~]# chmod o+t chmo_test3
[[email protected] ~]# ll chmo_test3
-rw-r--r-t. 1 root root 0 11 month 26 00:42 chmo_test3
[[email protected] ~]# chmod 1645 chmo_test3
[[email protected] ~]# ll chmo_test3
-rw-r--r-t. 1 root root 0 11 month 26 00:42 chmo_test3
7. create a file , Query file acl
Set for file acl The user is testuser1 Permission is rwx
Set for file acl Of mask: Permission is r-x
[[email protected] ~]# useradd testuser1
[[email protected] ~]# touch acl_test01
[[email protected] ~]# getfacl acl_test01
# file: acl_test01
# owner: root
# group: root
user::rw-
group::r--
other::r--
[[email protected] ~]# setfacl -m u:testuser1:rwx acl_test01
[[email protected] ~]# getfacl acl_test01
# file: acl_test01
# owner: root
# group: root
user::rw-
user:testuser1:rwx
group::r--
mask::rwx
other::r--
[[email protected] ~]# setfacl -m m:r-x acl_test01
[[email protected] ~]# getfacl acl_test01
# file: acl_test01
# owner: root
# group: root
user::rw-
user:testuser1:rwx #effective:r-x
group::r--
mask::r-x
other::r--
边栏推荐
- Hands on deep learning (35) -- text preprocessing (NLP)
- Whether a person is reliable or not, closed loop is very important
- Vanishing numbers
- 对于程序员来说,伤害力度最大的话。。。
- 今日睡眠质量记录78分
- Servlet基本原理与常见API方法的应用
- 查看CSDN个人资源下载明细
- Work order management system OTRs
- Latex arranges single column table pictures in double column format articles
- Custom type: structure, enumeration, union
猜你喜欢

How can people not love the amazing design of XXL job

智慧路灯杆水库区安全监测应用

leetcode1-3

MongoDB数据日期显示相差8小时 原因和解决方案
![[FAQ] summary of common causes and solutions of Huawei account service error 907135701](/img/73/c4ee842475f05e2e67297fcac68779.png)
[FAQ] summary of common causes and solutions of Huawei account service error 907135701

Architecture introduction

Hands on deep learning (32) -- fully connected convolutional neural network FCN

Nuxt reports an error: render function or template not defined in component: anonymous

JDBC and MySQL database

Hands on deep learning (43) -- machine translation and its data construction
随机推荐
Service developers publish services based on EDAs
5g/4g wireless networking scheme for brand chain stores
Exercise 8-10 output student grades (20 points)
The future education examination system cannot answer questions, and there is no response after clicking on the options, and the answers will not be recorded
Kotlin 集合操作汇总
Kotlin:集合使用
Development guidance document of CMDB
What are the advantages of automation?
System.currentTimeMillis() 和 System.nanoTime() 哪个更快?别用错了!
查看CSDN个人资源下载明细
Latex insert picture, insert formula
Hands on deep learning (34) -- sequence model
xxl-job惊艳的设计,怎能叫人不爱
System. Currenttimemillis() and system Nanotime (), which is faster? Don't use it wrong!
智能网关助力提高工业数据采集和利用
Hands on deep learning (37) -- cyclic neural network
Pcl:: fromrosmsg alarm failed to find match for field 'intensity'
Hands on deep learning (35) -- text preprocessing (NLP)
Latex learning insertion number - list of filled dots, bars, numbers
Kotlin: collection use