The three permissions available on posix file systems are read, write, and execute. The read permission allows the user to view the contents of a file or directory. The write permission allows the user to modify or delete a file or directory. The execute permission allows the user to run a file as a program or change into a directory. References:
Question 2
Which file lists each user's home directory and login shell?
Options:
A.
/etc/sysconfig/homedir
B.
/var/userenv
C.
/var/sysconf/userenv
D.
/var/9hare/userenv
E.
/etc/password
F.
/etc/passwd
Answer:
F
Explanation:
Explanation:
The file that lists each user’s home directory and login shell is /etc/passwd. This file contains information about each user account on the system, such as user name, password (or an x if using shadow passwords), UID, GID, full name or comment field, home directory path, login shell path, etc. Each line in this file corresponds to one user account and has seven fields separated by colons. References:
Question 3
You want ensure an ext3 filesystem is checked every 50 times it is mounted. Which command would you use?
Options:
A.
dumpe2fs
B.
mkfs
C.
fdisk -o
D.
tune2fs
Answer:
D
Explanation:
Explanation:
The command that is used to ensure an ext3 file system is checked every 50 times it is mounted is tune2fs. The tune2fs command can be used to adjust various parameters of an ext2, ext3, or ext4 file system. The -c option can be used to set the maximum number of mounts between two file system checks. For example, tune2fs -c 50 /dev/sda1 will set the check interval to 50 mounts for /dev/sda1. References: