RHEL Linux - Red Hat System Administration 1 Exam
100% Accurate
-rw-rw-r-- bart simpson file1 Which of the following is correct about the above output?
A: simpson owns the file called file1 as the user.
B: The user bart can read, write and excecute
C: oters can read the contents of file1 but cant execute or write
D: group bart can read and write - ANSWER C: others can view the contents of file1, but
can't execute or write
One way to have regular users become sudoers is to edit the settings in the ______ file
A: /etc/sudoers
B: /etc/wheel
C: /etc/group
D: etc/passwd - ANSWER A: /etc/sudoers
chmod 770 produces what effect on a file?
A: -rwxrwx--- file
B: -rw-rw-rw- file
C: -rwxrw---- file
D: -rwx----- file - ANSWER A: -rwxrwx --- file
Which of these does the same as: chown :powerrangers mighty_morphin_file1
,A: chown powerrangers mighty_morphin_file1
B: chgrp powerrangers mighty_morphin_file1
C: chown powerrangers: mighty_morphin_file1
D: chmod powerrangers mighty_morphin_file1 - ANSWER B: chgrp powerrangers
mighty_morphin_file1
UID ____ is always assigned to the superuser account, root
A: 500
B: 1000
C: 1
D: 0 - ANSWER D: 0
The _____ command allows a user to be permitted to run a command as root, or as
another user
A: force
B: superuser
C: sudo
D: passwd - ANSWER C: sudo
Which special permission will allow a user to execute an executable file, command, as
the user, ownership of the file and not the user that executed the command?
A: setuid
B: setgid
C: stickybit
, D: none of the above - ANSWER A: setuid
If the root user wants to check if a user account is password protected the _____ file can
be utilized to check this
A: /etc/passwd
B: /etc/group
C: /etc/login.defs
D: /etc/shadow - ANSWER D: /etc/shadow
So, ______ permissions override ______ permissions, which override ______ permissions
A: others; group; user
B: group; others; user
C: user; group; others
D: user; others; group - ANSWER C: user; group; others
If you want to make a system group when using the groupadd command, what would the
option be?
A: -r
B: -g
C: -s
D: -d - ANSWER A: -r
If you wanted to change the user ownership of a directory named Rosters and all of its
contents to the user jim, which of the following is the correct command?
100% Accurate
-rw-rw-r-- bart simpson file1 Which of the following is correct about the above output?
A: simpson owns the file called file1 as the user.
B: The user bart can read, write and excecute
C: oters can read the contents of file1 but cant execute or write
D: group bart can read and write - ANSWER C: others can view the contents of file1, but
can't execute or write
One way to have regular users become sudoers is to edit the settings in the ______ file
A: /etc/sudoers
B: /etc/wheel
C: /etc/group
D: etc/passwd - ANSWER A: /etc/sudoers
chmod 770 produces what effect on a file?
A: -rwxrwx--- file
B: -rw-rw-rw- file
C: -rwxrw---- file
D: -rwx----- file - ANSWER A: -rwxrwx --- file
Which of these does the same as: chown :powerrangers mighty_morphin_file1
,A: chown powerrangers mighty_morphin_file1
B: chgrp powerrangers mighty_morphin_file1
C: chown powerrangers: mighty_morphin_file1
D: chmod powerrangers mighty_morphin_file1 - ANSWER B: chgrp powerrangers
mighty_morphin_file1
UID ____ is always assigned to the superuser account, root
A: 500
B: 1000
C: 1
D: 0 - ANSWER D: 0
The _____ command allows a user to be permitted to run a command as root, or as
another user
A: force
B: superuser
C: sudo
D: passwd - ANSWER C: sudo
Which special permission will allow a user to execute an executable file, command, as
the user, ownership of the file and not the user that executed the command?
A: setuid
B: setgid
C: stickybit
, D: none of the above - ANSWER A: setuid
If the root user wants to check if a user account is password protected the _____ file can
be utilized to check this
A: /etc/passwd
B: /etc/group
C: /etc/login.defs
D: /etc/shadow - ANSWER D: /etc/shadow
So, ______ permissions override ______ permissions, which override ______ permissions
A: others; group; user
B: group; others; user
C: user; group; others
D: user; others; group - ANSWER C: user; group; others
If you want to make a system group when using the groupadd command, what would the
option be?
A: -r
B: -g
C: -s
D: -d - ANSWER A: -r
If you wanted to change the user ownership of a directory named Rosters and all of its
contents to the user jim, which of the following is the correct command?