Unixcloudtrainings
Unixcloudtrainigs privides IT trainings like: Linux administration, windows server 2016, Aws Cloud,
Learn DEVOPS in the cloud hands on.
Once upon the time, a combination of this simple command, options and arguments helped me solve an issue in my case I was facing while working on a project.
Basically, We wanted to create a folder 📂 to have people to work inside together in a collaborative manner without having to add any single user to the group of the other user to gain access to a file content. I think you’ve already guessed the type of O.S(Linux) I was working on: RHEL7. Many people might know this technique and some not. The whole idea 💡 was to create a common group for those user’s accounts and add them inside giving them READ WRITE and EXECUTE permission according to what we wanted them to perform. But if you’ve noticed well we did solved the problem yet because remember we needed to have them accessing each other folder/files without herculean efforts. So, the solution was to do this:
Assign the group ownership to the common group, add all the users to the common group and use this command “chmod g+s common_folder_name”.
As simple it is, this is called Setgid in the Linux system administration world because it will cause any file/directory created under a common folder to belong to a specific group avoiding us to add 1000s of users into a single group each time to have access to a specific file/directory content under that folder.
Now how do you give a permission to a specific user on a file/folder without assigning him/her to a specific group using ACL(Access Control List)?
What was your recent challenge at work?
07/05/2021
New session will start in September.
Click here to claim your Sponsored Listing.
Category
Contact the school
Telephone
Website
Address
Pittsburgh, Pennsylvania, Pennsylvanie, US
Pittsburgh, PA