RHEL5/6 Interview Questions : User Adminsitration
Other Learning Articles that you may like to read
Free Courses We Offer
Paid Training Courses we Offer
1. What command (and options) can be used to create a user named JSmith with the description “Jr Admin”?
1a. useradd –c “Jr Admin” JSmith
2. What is the format of the /etc/shadow file?
2a. The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
3. What command would you use to create a group? How about to add the user JSmith to the group?
3a. Use the groupadd command to create a group. You can then add user JSmith with the following: usermod –G <group name> JSmith
4. How do you run a command with elevated privileges?
4a. You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
5. Is it possible to share files among groups? What permissions would you set on the directory to accomplish file sharing if possible?
5a. Yes. You can use the setgid flag to create the appropriate permissions (chmod 2770).
6. If you want a specific action to take place when user01 logs in to the system, which file would you edit?
6a. You add your action to the end of the /home/user01/.bashrc file.
7. You can add files to a user’s home directory during creation. True or False?
7a. True. Place all files you want added to a user’s home directory in the /etc/skel directory.
8. By default, what is the path to a user’s home directory?
8a. A user’s home directory is created under the /home directory.
9. What is the benefit to using centralized authentication?
9a. By using centralized authentication, you don’t need to re-create or maintain multiple accounts across every system in your organization.
10. What commands can you use to add a client machine to an LDAP server?
10a. You can use the authconfig-tui command or the authconfig command.