201-400 無料問題集「Lpi LPIC-2 Exam 201, Part 1 of 2, version 4.0」
The following shell script is run by cron on a regular basis:
x=$(find /home -name .rhost 2>/dev/null)
for i in $x; do
$y=$(echo $I | cut -d/ -f3);z="$z $y"
rm $I;done
echo "Notice: $z" | mail [email protected]
Which best defines the action of this script?
x=$(find /home -name .rhost 2>/dev/null)
for i in $x; do
$y=$(echo $I | cut -d/ -f3);z="$z $y"
rm $I;done
echo "Notice: $z" | mail [email protected]
Which best defines the action of this script?
正解:D
解答を投票する
You want to export a local file system /data, and permit read-write access for all users on hostA. In addition, the root account on hostA should be allowed root level access. All other hosts are to have read-only access. Which of the following /etc/exports lines would you use?
正解:B
解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
CORRECT TEXT
Consider the following /etc/fstab file:
/dev/hda1swapswapdefaults00
/dev/hda2/ext2defaults11
/dev/hda3/homeext2defaults12
None/procprocdefaults00
/dev/fd0/media/floppyvfatuser,noauto00
What command can an ordinary (non-root) user use to mount a floppy disk in this system? (Please enter the command with all parameters and/or options)
Consider the following /etc/fstab file:
/dev/hda1swapswapdefaults00
/dev/hda2/ext2defaults11
/dev/hda3/homeext2defaults12
None/procprocdefaults00
/dev/fd0/media/floppyvfatuser,noauto00
What command can an ordinary (non-root) user use to mount a floppy disk in this system? (Please enter the command with all parameters and/or options)
正解:
mount /media/floppy
Explanation: See the output that mount option of /dev/fd0 is user that means ordinary user can mount the filesystem. To disallow to normal users to mount use the nouser option. The mount point for /dev/fd0 is specified /media/floppy so can directly mount the floppy device just using :
mount /media/floppy
Explanation: See the output that mount option of /dev/fd0 is user that means ordinary user can mount the filesystem. To disallow to normal users to mount use the nouser option. The mount point for /dev/fd0 is specified /media/floppy so can directly mount the floppy device just using :
mount /media/floppy
CORRECT TEXT
Which file tells GRUB the paths of the filesystem partitions in both Linux format and in the
GRUB syntax? (Specify the file name only with no path information)
Which file tells GRUB the paths of the filesystem partitions in both Linux format and in the
GRUB syntax? (Specify the file name only with no path information)
正解:
device.map