当前位置:网站首页>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--
边栏推荐
- Use the data to tell you where is the most difficult province for the college entrance examination!
- 【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
- uniapp 小于1000 按原数字显示 超过1000 数字换算成10w+ 1.3k+ 显示
- What is devsecops? Definitions, processes, frameworks and best practices for 2022
- Dynamic address book
- 查看CSDN个人资源下载明细
- 【Day2】 convolutional-neural-networks
- MongoDB数据日期显示相差8小时 原因和解决方案
- Hands on deep learning (35) -- text preprocessing (NLP)
- Machine learning -- neural network (IV): BP neural network
猜你喜欢
Hands on deep learning (34) -- sequence model
Custom type: structure, enumeration, union
Fabric of kubernetes CNI plug-in
Architecture introduction
SQL replying to comments
Hands on deep learning (41) -- Deep recurrent neural network (deep RNN)
Delayed message center design
Application of safety monitoring in zhizhilu Denggan reservoir area
C语言指针经典面试题——第一弹
Reprint: summation formula of proportional series and its derivation process
随机推荐
Network disk installation
Dynamic address book
Summary of reasons for web side automation test failure
If the uniapp is less than 1000, it will be displayed according to the original number. If the number exceeds 1000, it will be converted into 10w+ 1.3k+ display
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
Hands on deep learning (44) -- seq2seq principle and Implementation
智慧路灯杆水库区安全监测应用
Service developers publish services based on EDAs
View CSDN personal resource download details
Hands on deep learning (36) -- language model and data set
Intelligent gateway helps improve industrial data acquisition and utilization
Use C to extract all text in PDF files (support.Net core)
Normal vector point cloud rotation
按键精灵跑商学习-商品数量、价格提醒、判断背包
Hands on deep learning (42) -- bi-directional recurrent neural network (BI RNN)
百度研发三面惨遭滑铁卢:面试官一套组合拳让我当场懵逼
Differences among opencv versions
leetcode1229. Schedule the meeting
【OpenCV 例程200篇】218. 多行倾斜文字水印
Architecture introduction