NOTE: Each correct answer would give you 5 point.
- What do you type in the password field of /etc/passwd to prevent a user from accessing a system?
- Which system account sets permission on system processes?
- Which command do you use to enable shadowing?
- What is the command to determine when a user needs to change the password?
- Which command changes deepak’s home directory from its default location to /usr/local directory?
- Which command removes the admin group from the system?
- Which command do you use to create a new password for user “deepak“?
- Select the system account contained in /etc/passwd file that owns the executable files
- Which passwd command option sets the maximum number of days after a password expires before an account is locked?
- What does usermod -l deepak pradeep command do?
- In which file or directory are user’s folders created by default?
- You have created new shell scripts and placed these scripts in the /usr/local/bin directory. You want to now add this directory to the system path. Which command do you use to do this?
- Which command enables you to change the password to the finance group?
- Which configuration file contains the default values of environment variables for the Bourne Again shell (bash)?
- Suppose you want to change the name of the group from “oldstuff” to “newstuff“. Which command would you use?
- Which file stores user-specific values of environment variables for the Bourne Again shell (bash)?
- Which command adds user “deepak” to “admin” group?
- Which command do you use to copy and rename a compressed kernel image file to the /boot partition?
- What does double exclamation mark (!!) symbol in the password entry in /etc/passwd file indicate?
- Which command checks the consistency of group password files?
- When a user initiates bash shell, which user specific configuration file does the system read first?
- Why can only one group be active for a user at one time?
- Which passwd command option do you use to set max number of days that can pass before a password expires?
- Which unix command should you use to list only those processes that monitor the terminal ports for user login sessions?
- Which command is used to login and logout from any account on the terminal?
A comma (‘)
An asterisk (*)
An exclamation mark (!)
Two exclamation marks (!!)
usermod -d /usr/local deepak
usermod -g /usr/local deepak
usermod -l /usr/local deepak
usermod -a /usr/local deepak
groupdel -n admin
groupdel -o -g admin
groupmod -o delete admin
passwd -x deepak
Add deepak to the system
Change the login name of deepak to pradeep
Delete deepak’s account and replace with pradeep account
Move the files in pradeep’s home directory to deepak’s home directory
gpasswd -a finance
gpasswd -d finance
gpasswd -r finance
groupmod -n -g oldstuff newstuff
groupmod -n -o oldstuff newstuff
groupmod -n oldstuff newstuff
groupmod -n oldstuff newstuff
gpasswd +deepak admin
gpasswd -a deepak admin
groupadd +deepak admin
groupadd admin deepak
cat /usr/src/linux/arch/i386/bzImage /boot/vmlinuz-2.6.14p3
cp -p /usr/linux/arch/i386/bzImage /boot/vmlinuz-2.6.14p3
cp -p /usr/src/linux/arch/i386/bzImage /boot/vmlinuz-2.6.14p3
move /usr/src/linux/arch/i386/bzImage /boot/vmlinuz-2.6.14p3
An unsafe password has been set
No password has been set
There is an error in the passwod field
The user has been blocked from logging
A user cannot switch between groups
Groups determine user’s file permissions
Linux supports limited number of groups
User can be active for multiple groups at single time
ps -aux | grep getty
ps -aux | grep telnetd