The system admin team at xFusionCorp Industries has streamlined access management by implementing group-based access control.
-
Create a group named nautilus_sftp_users across all App servers within the Stratos Datacenter.
-
Add the user jarod into the nautilus_sftp_users group on all App servers. If the user doesn't exist, create it as well.
- Log in to Each App Server:
ssh your_username@app_server_ip
- Create the Group:
sudo groupadd nautilus_sftp_users
- Check if the User Exists:
id jarod
- Create the User (if necessary):
sudo useradd jarod
- Add jarod to the Group:
sudo usermod -aG nautilus_sftp_users jarod
- Verify the User is in the Group:
groups jarod
- Command Explanation:
sudo: Execute the command with administrative privileges. groupadd: Create a new group. id: Check if the user exists and display user information. useradd: Add a new user. usermod: Modify a user account. -a: Append the user to the specified group without removing them from others. -G nautilus_sftp_users: Specify the group to which the user should be added. jarod: The username of the user being modified. groups: Display the groups a user belongs to.