1. Which of the following are always stored in the /etc/passwd file?
a. encrypted user passwords
b. user home directory locations
c. the default shell that each user uses
2. When you check the /etc/shadow file on your system, you notice that the date of the last password change is 12907. What does this number represent?
b. December 9th 2007
3. You currently use both /etc/passwd and /etc/shadow files to store user account information. What command can you use to consolidate this information into the /etc/passwd file only?
pwconv
4. Which of the following files could you edit to create groups and add members to those groups?
c. /etc/groups
5. Which of the following files are used to obtain default user account settings when you create a user with the useradd command?
a. /etc/login.defs
c.. /etc/default/useradd
6. You have a file called "Policies&Procedures.txt" that you wish to place in the home directories of all newly created user accounts. Where should you place these files?
/etc/default/useradd
7. What command can you use to add the user bob to your system, create a home directory for him, set his primary group to acctg, and give his account an expiry date of May 11, 2006?
useradd -m -g "acctg" -e 2006-05-11 bob
8. After creating the user in question 7, what must you do to allow the user to log in to the system?
create a password for that user.
9. What command can be used to change the UID of the user in Question 7 to 741?
usermod -u 741 bob
10.What two commands below can be used to create the group acctg and add the user bob to it?
b. groupadd acctg
c. groupmod -A bob acctg
11. Which of the following commands may be used to see the current user resource limits for your system?
a. ulimit -a
12. Which of the following fire permissions gives the group owner the ability to edit the file contents?
a.rw-rw-r-x
d.r--rw-r-x
13. Which of the following directory permissions gives the owner the ability to list the contents of a directory?
a. rwxr-x-r-x
b. rwxr--r-x
c. r-xrw-r-x
14. What command could you use to change the owner to bob and the group owner to acctg for the fire /etc/yearend?
chown bob.acctg /etc/yearend
15. What command could you use to change the permissions on the file /etc/yearend to rw-rw-r-- using octal notation?
chmod 661 /etc/yearend
16. What permissions does the system give to new files and directories by default prior to applying the umask?
b. files are 666 and directories are 777
17. What will the permissions be on a new directory if the umask is set to o27?
750
18. Which of the following commands will set the Sticky bit special permission on the directory /public?
a. chmod 1777 /public
19. You have enabled user and group quotas on the filesystem that is mounted to the /var directory. Which files contain the quota limits?
a. /var/aquota.group
b. /var/aquota.group
20. What command can you use to modify the grace period for quota soft limits?
edquota -t
21. Which of the following are journaling filesystems that can be created using the mkfs command?
d. JSF
22. How many partitions can be made on a single IDE hard disk using the fdisk program?
d. 64
23. Which option to the fsck command would you use to check all filesystems listed in /etc/fstab.
-a
24. What command would you use to check a ReiserFS filesystem for errors?
reiserfsck
25. You cannot unmount a filesystem that you had previously mounted to the /mnt directory. What command can show you which users are still using the /mnt directory?
mount
26. What command can you use to list the package in the RPM database that the /etc/hosts file belongs to?
rpm -qf /etc/hosts
27. You have downloaded the source code for a program that you wish to compile. Which command can you use in the source code directory to create a makefile?
b. make
28. What is the first area on your hard disk that typically contains a Linux boot loader?
a. MBR
29. Which of the following boot managers contain an interactive shell?
a. grub
30. You have modified the /etc/lilo.conf file, but your changes have not taken effect. What command must you run?
/sbin/lilo
Subscribe to:
Post Comments (Atom)
2 comments:
Hi. Good job! Hope you had a good spring break!
Relationships are eternal. The 'separation' is another chapter in the relationship. Often, letting go of the old form of the relationship becomes a lesson in pure love much deeper than any would have learned had the couple stayed together. See the link below for more info.
#chapter
www.matreyastudios.com
Post a Comment