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?
A comma (')
An asterisk (*)
An exclamation mark (!)
Two exclamation marks (!!)
- Which system account sets permission on system processes?
adm
bin
daemon
root
- Which command do you use to enable shadowing?
finger
passwd
pwconv
pwunconv
- What is the command to determine when a user needs to change the password?
chage -E
chage -l
chage -m
chage -W
- Which command changes deepak's home directory from its default location to /usr/local directory?
usermod -d /usr/local deepak
usermod -g /usr/local deepak
usermod -l /usr/local deepak
usermod -a /usr/local deepak
- Which command removes the admin group from the system?
groupdel -n admin
groupdel -o -g admin
groupmod -o delete admin
groupdel admin
- Which command do you use to create a new password for user "deepak"?
passwd deepak
password deepak
pswd deepak
passwd -x deepak
- Select the system account contained in /etc/passwd file that owns the executable files
adm
bin
daemon
root
- Which passwd command option sets the maximum number of days after a password expires before an account is locked?
i
l
n
w
- What does usermod -l deepak pradeep command do?
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
- In which file or directory are user's folders created by default?
/etc/passwd
/etc/group
/home
/etc/skel
- 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?
HOME=/usr/local/bin
PATH=$PATH:/usr/local/bin
SHELL=$SHELL:/usr/local/bin
ENV=$ENV:/usr/local/bin
- Which command enables you to change the password to the finance group?
gpasswd -a finance
gpasswd -d finance
gpasswd -r finance
gpasswd finance
- Which configuration file contains the default values of environment variables for the Bourne Again shell (bash)?
~/.bash_logout
~/.bash_profile
/etc/bashrc
/etc/profile
- Suppose you want to change the name of the group from "oldstuff" to "newstuff". Which command would you use?
groupmod -n -g oldstuff newstuff
groupmod -n -o oldstuff newstuff
groupmod -n oldstuff newstuff
groupmod -n oldstuff newstuff
- Which file stores user-specific values of environment variables for the Bourne Again shell (bash)?
.bash_logout
.bash_profile
.bashrc
.bash_history
- Which command adds user "deepak" to "admin" group?
gpasswd +deepak admin
gpasswd -a deepak admin
groupadd +deepak admin
groupadd admin deepak
- Which command do you use to copy and rename a compressed kernel image file to the /boot partition?
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
- What does double exclamation mark (!!) symbol in the password entry in /etc/passwd file indicate?
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
- Which command checks the consistency of group password files?
grpck
gpconv
passwd
pwck
- When a user initiates bash shell, which user specific configuration file does the system read first?
~/.bash_logout
~/.bash_profile
~/.bashrc
/etc/profile
- Why can only one group be active for a user at one time?
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
- Which passwd command option do you use to set max number of days that can pass before a password expires?
-n
-u
-w
-x
- Which unix command should you use to list only those processes that monitor the terminal ports for user login sessions?
finger
ps -aux | grep getty
ps -aux | grep telnetd
who
- Which command is used to login and logout from any account on the terminal?
su
sudo
log_out
logme
