There is one partition /dev/hda14 mounted on /data. The owner of /data is root user and root group. And Permission is full to owner user, read and execute to group member and no permission to others. Now you should give the full permission to user user1 without changing pervious permission.
A. We know that every files/directories are owned by certain user and group. And Permissions are defines to owner user, owner group and other. -rwxr-x--- ->
QUESTION : We should give the full permission to user user1 without changing the previous permission. ACL (Access Control List), in ext3 file system we can give permission to certain user and certain group without changing previous permission. But that partition should mount using acl option.
setfacl -m u:user1:rwx /data
Verify using: getfacl /data
B. We know that every files/directories are owned by certain user and group. And Permissions are defines to owner user, owner group and other. -rwxr-x--- ->Full permission to owner user, read and write to owner group and no permission to others. According to
QUESTION : We should give the full permission to user user1 without changing the previous permission. ACL (Access Control List), in ext3 file system we can give permission to certain user and certain group without changing previous permission. But that partition should mount using acl option. Follow the steps
vi /etc/fstab /dev/hda14 /data ext3 defaults,acl 0 1
Either Reboot or use: mount -o remount /data
setfacl -m u:user1:rwx /data
Verify using: getfacl /data
C. We know that every files/directories are owned by certain user and group. And Permissions are defines to owner user, owner group and other. -rwxr-x--- ->Full permission to owner user, read and write to owner group and no permission to others. According to
QUESTION : We should give the full permission to user user1 without changing the previous permission.
vi /etc/fstab /dev/hda14 /data ext3 defaults,acl 0 1
Either Reboot or use: mount -o remount /data
setfacl -m u:user1:rwx /data
Verify using: getfacl /data
正解:B
質問 2:
Your System is going to use as a Router for two networks. One Network is 192.168.0.0/24 and Another Network is 192.168.1.0/24. Both network's IP address has assigned. How will you forward the packets from one network to another network?
A. echo "1" >/proc/sys/net/ipv4/ip_forward
vi /etc/sysctl.conf net.ipv4.ip_forward = 1 If you want to use the Linux System as a Router to make communication between different networks, you need enable the IP forwarding. To enable on running session just set value 1 to /proc/sys/net/ipv4/ip_forward. As well as automatically turn on the IP forwarding features on next boot set on /etc/sysctl.conf file.
B. echo "1" >/proc/sys/net/ipv4/ip_forward
vi /etc/sysctl.conf net.ipv4.ip_forward = 2 If you want to use the Linux System as a Router to make communication between different networks, you need enable the IP forwarding. To enable on running session just set value 1 to /proc/sys/net/ipv2/ip_forward. As well as automatically turn on the IP forwarding features on next boot set on /etc/sysctl.conf file.
正解:A
質問 3:
One Package named zsh is dump on ftp://server1.example.com under /pub/updates directory and your FTP server is 192.168.0.254. Install the package zsh.
A. 1. rpm -ivh ftp://server1/example.com/pub/updates/zsh-* or
Login to ftp server : ftp ftp://server1.example.com using anonymous user.
Change the directory: cd pub and cd updates
Download the package: mget zsh-*
Quit from the ftp prompt : bye
Install the package
rpm -ivh zsh-*
Verify either package is installed or not : rpm -q zsh
B. 1. rpm -ivh ftp://server1/example.com/pub/updates/zsh-* or
Login to ftp server : ftp ftp://server1.example.com using anonymous user.
Change the directory: cd pub and cd updates
Download the package: mget zsh-*
Verify either package is installed or not : rpm -q zsh
正解:A
質問 4:
Make a swap partition having 100MB. Make Automatically Usable at System Boot Time.
A. 1. Use fdisk /dev/hda ->To create new partition.
Type n-> For New partition
It will ask for Logical or Primary Partitions. Press l for logical.
It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.
Type the Size: +100M You can Specify either Last cylinder of Size here.
Press P to verify the partitions lists and remember the partitions name. Default System ID is 83 that means Linux Native.
Type t to change the System ID of partition.
Type Partition Number
Type 82 that means Linux Swap.
Press w to write on partitions table.
Either Reboot or use partprobe command.
mkswap /dev/hda?-> To create Swap File system on partition.
swapon /dev/hda? ->To enable the Swap space from partition.
free -m-> Verify Either Swap is enabled or not.
vi /etc/fstab /dev/hda? swap swap defaults 0 0
Reboot the System and verify that swap is automatically enabled or not.
B. 1. Use fdisk /dev/hda ->To create new partition.
Type n-> For New partition
It will ask for Logical or Primary Partitions. Press l for logical.
It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.
Type the Size: +150M You can Specify either Last cylinder of Size here.
Press P to verify the partitions lists and remember the partitions name. Default System ID is 85 that means Linux Native.
Type t to change the System ID of partition.
Type Partition Number
Type 84 that means Linux Swap.
Press w to write on partitions table.
Either Reboot or use partprobe command.
mkswap /dev/hda?-> To create Swap File system on partition.
swapon /dev/hda? ->To enable the Swap space from partition.
free -m-> Verify Either Swap is enabled or not.
vi /etc/fstab /dev/hda? swap swap defaults 0 0
Reboot the System and verify that swap is automatically enabled or not.
正解:A
質問 5:
You are a System administrator. Using Log files very easy to monitor the system. Now there are 50 servers running as Mail, Web, Proxy, DNS services etc. You want to centralize the logs from all servers into on LOG Server. How will you configure the LOG Server to accept logs from remote host ?
A. By Default system accept the logs only generated from local host. To accept the Logfrom other host configure:
3. vi /etc/sysconfig/syslog
SYSLOGD_OPTIONS="-m 0 -r"
Where -m 0 disables 'MARK' messages. -r enables logging from remote machines
-x disables DNS lookups on messages recieved with -r
4. service syslog restart
B. By Default system accept the logs only generated from local host. To accept the Logfrom other host configure:
3. vi /etc/sysconfig/syslog
Where -m 0 disables 'MARK' messages. -r enables logging from remote machines
-x disables DNS lookups on messages recieved with -r
4. service syslog restart
正解:A
質問 6:
Install the dialog-*
A. QUESTIONs asking you to install the dialog package from the server. In your Lab FTP server as well as NFS server are configured. You can install either through FTP or NFS.
Just Login to server1.example.com through FTP: ftp server1.example.com
Enter to pub directory: cd pub
Logout from the FTP server: bye
Install the package: rpm -ivh dialog-*
Verify the package either installed or not: rpm -q dialog
B. QUESTIONs asking you to install the dialog package from the server. In your Lab FTP server as well as NFS server are configured. You can install either through FTP or NFS.
Just Login to server1.example.com through FTP: ftp server1.example.com
Enter to pub directory: cd pub
Enter to RedHat/RPMS: cd RedHat/RPMS
Download the Package: mget dialog-*
Logout from the FTP server: bye
Install the package: rpm -ivh dialog-*
Verify the package either installed or not: rpm -q dialog
正解:B
質問 7:
Who ever creates the files/directories on /storage group owner should be automatically should be the same group owner of /storage.
A. chmod g+s /storage
Verify using: ls -ld /storage Permission should be like: drwxrws--- 2 root sysusers 4096 Mar 16 18:08 /storage If SGID bit is set on directory then who every users creates the files on directory group owner automatically the owner of parent directory. To set the SGID bit: chmod g+s directory To Remove the SGID bit: chmod g-s directory
B. chmod g+s /storage
Verify using: ls -ld /storage Permission should be like: drwxrws--- 2 root sysusers 4096 Mar 16 19:08 /storage If SGID bit is set on directory then who every users creates the files on directory group owner automatically the owner of parent directory.
正解:A
質問 8:
Create the group named sysadmin.
A. 1. groupadd sysadmin groupadd command is used to create the group.
B. 1. groupadd sysadmin groupadd command is used to create the group and all group information is stored in /etc/group file.
正解:B
質問 9:
Create the user named jackie, curtin, david
A. useradd jackie
useradd curtin
useradd david useradd command is used to create the user.
B. useradd jackie
useradd curtin
useradd david useradd command is used to create the user. All user's information stores in /etc/passwd and user;s shadow password stores in /etc/shadow.
正解:B
小野** -
このRH202問題集の品質に非常に感謝しています。 RH033を購入して再度受験します