当前位置:网站首页>Rhcsa 03 - Basic permissions for documents
Rhcsa 03 - Basic permissions for documents
2022-07-04 04:29:00 【Wangwanlin Ben】
Preface
Linux Of UGO The permissions model , It can meet daily permission requirements .
What is? UGO The permissions model ?
practice
step 1: Create user , And add users to the newly created group
[[email protected] ~]# groupadd students
[[email protected] ~]# groupadd profs
[[email protected] ~]# useradd linda -G students
useradd lisa -G students
[[email protected] ~]# useradd lisa -G students
useradd anouk -G profs
[[email protected] ~]# useradd anouk -G profs
useradd anna -G profs
[[email protected] ~]# useradd anna -G profs
[[email protected] ~]# step 2: Create two folders /data/students And /data/profs
[[email protected] ~]# mkdir -p /data/students /data/profs
[[email protected] ~]# ls -l /data
total 0
drwxr-xr-x. 2 root root 6 Jul 2 01:47 profs
drwxr-xr-x. 2 root root 6 Jul 2 01:47 studentsstep 3: The folder just created , Change the group to students, profs, Permission is 770
[[email protected] ~]# chgrp students /data/students
[[email protected] ~]# chgrp profs /data/profs
[[email protected] ~]# chmod 770 /data/{students,profs}
[[email protected] ~]# ls -l /data
total 0
drwxrwx---. 2 root profs 6 Jul 2 01:47 profs
drwxrwx---. 2 root students 6 Jul 2 01:47 studentsstep 4: verification :anna Success to /data/profs create a file ,anouk Cannot write owner as anna Permission is 644 The file of .
[[email protected] ~]# id anna
uid=1004(anna) gid=1006(anna) groups=1006(anna),1002(profs)
[[email protected] ~]# su anna -c "touch /data/profs/anna"
[[email protected] ~]# ls -l /data/profs/anna
-rw-r--r--. 1 anna anna 0 Jul 2 01:58 /data/profs/anna
[[email protected]92f238ca5 ~]# su anouk -c "echo anouk > /data/profs/anna"
bash: /data/profs/anna: Permission denied边栏推荐
- 96% of the collected traffic is prevented by bubble mart of cloud hosting
- Redis:有序集合zset类型数据操作命令
- Leader: who uses redis expired monitoring to close orders and get out of here!
- Pytest基础自学系列(一)
- RHCSA 01 - 创建分区与文件系统
- JS realizes the effect of text scrolling marquee
- Katalon uses script to query list size
- [microservice openfeign] @feignclient detailed explanation
- RHCSA 04 - 进程管理
- Boutique website navigation theme whole station source code WordPress template adaptive mobile terminal
猜你喜欢

How to view installed r packages in R language
![[csrf-01] basic principle and attack and defense of Cross Site Request Forgery vulnerability](/img/46/cb5a10ffe3fcdffb7da68dbaef5b1f.png)
[csrf-01] basic principle and attack and defense of Cross Site Request Forgery vulnerability

Leetcode skimming: binary tree 07 (maximum depth of binary tree)

Imitation of "game bird" source code, mobile game issue evaluation, open service, open test collection, game download website template

Main applications of TDK lambda power supply

Application scheme of Puyuan ds1000z series digital oscilloscope in communication principle experiment

EventBridge 在 SaaS 企业集成领域的探索与实践

ModStartBlog 现代化个人博客系统 v5.2.0 源码下载

2021 RSC | Drug–target affinity prediction using graph neural network and contact maps

DP83848+网线热拔插
随机推荐
Understand the principle of bytecode enhancement technology through the jvm-sandbox source code
Leetcode skimming: binary tree 07 (maximum depth of binary tree)
Keysight n9320b RF spectrum analyzer solves tire pressure monitoring scheme
How to add custom API objects in kubernetes (1)
Modstartblog modern personal blog system v5.2.0 source code download
leetcode:1314. 矩阵区域和【二维前缀和模板】
DP83848+网线热拔插
浅谈一篇优质的小红书文案需要具备什么
Flink learning 8: data consistency
(pointer) write a function to compare the size of strings by yourself, which is similar to StrCmp.
Configuration and hot update of nocturnal simulator in hbuildx
Lnk2038 detected a mismatch of "runtimelibrary": the value "md_dynamicrelease" does not match the value "mdd_dynamicdebug" (in main.obj)
Graduation project: design seckill e-commerce system
Unity draws the trajectory of pinball and billiards
Three years of graduation, half a year of distance | community essay solicitation
[Logitech] m720
“找工作不要太在意工资”,这是我听过最大的谎言
EIG在智利推出可再生能源平台Grupo Cerro
苹果CMS仿西瓜视频大气响应式视频模板源码
R语言中如何查看已安装的R包