Create a new group family as a public group
groupadd family
Create two new users shuai hongyan password settings
useradd shaui
useradd hongyan< Br>
passwd shuai
passwd hongyan
Add these two users to these two groups
usermod -G family shuai
Usrmod -G family hongyan
Create a new directory in the current directory share
mkdir share
Assign the owning group of this directory to family
chown : Family share
Viewing the permissions of the share
ll -d share
Trying to use shuai can write
cd share
Touch shuai.a
ll shuai.a View the file whose group is still shuai
and then set it to setgid
chmod g+s share
We assign the owner of the directory to the family group
chown :family share
and set the w write permission for it to allow the users in the group to write to Build an environment
chmod g+w share
Without specifying setgid
Let shuai users go in and create a file to see the group
touch shuai.b
ll shuai.b
Let hongyan users go in and delete it
rm shuai.b
can be deleted < Br>
Then we build sticky bit permission for share
chmod o+t share
Switch to shuai user
We will find that although there is setgid already I can't delete the files that are hot.
Then set the gid and let them go to the settings file to see the group
and then delete it
Finally we set this file. Stickty bit
Then use the shuai user to delete the hongyan user's file and it will prompt an error.
Nginx has been widely used in production environments compared to Apaches high performance and high
Executing programs are called processes. When a program is stored in an executable file and is runni
You all know what an IP address is, right? They are assigned to devices on the network to represent
Use the ps and grep commands to find the zombie process #ps -A -ostat,ppid,pid,cmd | Grep -e ^[Zz]
Solve ssh automatic disconnection failure
Find files older than 10 days in Linux and delete them
How to remove the alarm sound of Linux
Linux screen window Chinese garbled problem
Configuration Notes on Strengthening Linux Operating System Security
Introduction to Linux operating system network configuration process under virtual machine
Explain the silent installation of Oracle under Linux
Several ways to run linux process background
VMware View4.5 Virtual Desktop Solution FAQ
How does the win7 system language change Chinese to Korean?
Linux LAMP service rpm package installation and configuration basic tutorial
See how to set the folder properties to the system folder
How to make the computer start after inserting your own USB flash drive
How to cancel the automatic connection of win7 wireless WIFI network?
How to solve the problem of stuck when Win7 login game selects the role
Starting Tips: How to limit computer performance with msconfig