当前位置:网站首页>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 (40) -- short and long term memory network (LSTM)
- Exercise 7-8 converting strings to decimal integers (15 points)
- Some summaries of the third anniversary of joining Ping An in China
- Exercise 8-7 string sorting (20 points)
- 有老师知道 继承RichSourceFunction自定义读mysql怎么做增量吗?
- How can Huawei online match improve the success rate of player matching
- Exercise 7-3 store the numbers in the array in reverse order (20 points)
- Debug:==42==ERROR: AddressSanitizer: heap-buffer-overflow on address
- Latex insert picture, insert formula
- 基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 1
猜你喜欢
uniapp 处理过去时间对比现在时间的时间差 如刚刚、几分钟前,几小时前,几个月前
华为联机对战如何提升玩家匹配成功几率
libmysqlclient. so. 20: cannot open shared object file: No such file or directory
A little feeling
Baidu R & D suffered Waterloo on three sides: I was stunned by the interviewer's set of combination punches on the spot
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 2
5g/4g wireless networking scheme for brand chain stores
【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
Machine learning -- neural network (IV): BP neural network
Reasons and solutions for the 8-hour difference in mongodb data date display
随机推荐
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
MongoDB数据日期显示相差8小时 原因和解决方案
What are the advantages of automation?
Service developers publish services based on EDAs
Golang defer
Latex arranges single column table pictures in double column format articles
leetcode1229. Schedule the meeting
libmysqlclient. so. 20: cannot open shared object file: No such file or directory
Vanishing numbers
Exercise 8-10 output student grades (20 points)
uniapp 小于1000 按原数字显示 超过1000 数字换算成10w+ 1.3k+ 显示
今日睡眠质量记录78分
技术管理进阶——如何设计并跟进不同层级同学的绩效
Ruby时间格式转换strftime毫秒匹配格式
Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}
leetcode1-3
什么是 DevSecOps?2022 年的定义、流程、框架和最佳实践
Velodyne configuration command
On Multus CNI
【Day1】 deep-learning-basics