Free LFCS Exam Braindumps (page: 18)

Page 17 of 66

Which of the following steps prevents a user from obtaining an interactive login session?

  1. Run the command chsh -s /bin/false with the user name.
  2. Set the UID for the user to 0.
  3. Remove the user from the group staff.
  4. Add the user to /etc/noaccess.
  5. Create a .nologin file in the user's home directory.

Answer(s): A



Which file contains a set of services and hosts that will be allowed to connect to the server by going through a TCP Wrapper program such as tcpd? (Specify the full name of the file, including path.)https://lh3.googleusercontent.com/-5cd- clmKnbk/AAAAAAAAAAI/AAAAAAAAADM/-SXesH19Ido/s46-c-k-no/photo.jpg

  1. /etc/hosts.allow

Answer(s): A



Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

  1. cat < myapp | cat > file1.log
  2. myapp 0>&1 | cat > file1.log
  3. myapp | cat > file1.log
  4. myapp | teefile1.log
  5. tee myapp file1.log

Answer(s): D



After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.)

  1. By creating an ACL redirection from the old to the new path of the data.
  2. By creating a hard link from the old to the new path of the data.
  3. By creating a symbolic link from the old to the new path of the data.
  4. By running the command touch on the old path.
  5. By mounting the new filesystem on the original path of the data.

Answer(s): C,E






Post your Comments and Discuss Linux Foundation LFCS exam with other Community members:

LFCS Discussions & Posts