May 30, 2024, 5:43 a.m.
step1:make sure you are switched in root user
su root
step2: switching to /folder
cd /
step3: creating a common folder
mkdir myproject
step4:create new users.if you have skip to step5
useradd user1 useradd user2 useradd user3
step5:create a new group
groupadd developers
step6:add users to developers group
usermod -aG developers user1 usermod -aG developers user2
step7:change groupname for myproject folder
chown :developers myproject
step8:change file permission for myproject folder
chmod 770 myproject
step9:switch to user user1
su user1 cd /
step10:create new file in myproject folder
touch /myproject/demofile