Reading 4
Execute for group and other users
Which permissions are granted with command chmod go+x
root
Who can transfer ownership of a file/directory from one user to another user?
rfile1 & rfile2
The system has four users that are assigned to the following groups: The consultant1 user is a member of the consultant1 and database1 groups. The operator1 user is a member of the operator1 and database1 groups. The contractor1 user is a member of the contractor1 and contractor3 groups. The operator2 user is a member of the operator2 and contractor3 groups. The . special directory contains four files with the following permissions: drwxrwxr-x. operator1 database1 . -rw-rw-r--. consultant1 consultant1 app1.log -rw-r--rw-. consultant1 database1 app2.log -rw-rw-r--. operator1 database1 db1.conf -rw-r-----. operator1 database1 db2.conf Which file(s) can be deleted by the operator1 user?
None of the files
The system has four users that are assigned to the following groups: The consultant1 user is a member of the consultant1 and database1 groups. The operator1 user is a member of the operator1 and database1 groups. The contractor1 user is a member of the contractor1 and contractor3 groups. The operator2 user is a member of the operator2 and contractor3 groups. The . special directory contains four files with the following permissions: drwxrwxr-x. operator1 database1 . -rw-rw-r--. consultant1 consultant1 app1.log -rw-r--rw-. consultant1 database1 app2.log -rw-rw-r--. operator1 database1 db1.conf -rw-r-----. operator1 database1 db2.conf Which file(s) can be deleted by the operator2 user?
lfile2
The system has four users that are assigned to the following groups: The consultant1 user is a member of the consultant1 and database1 groups. The operator1 user is a member of the operator1 and database1 groups. The contractor1 user is a member of the contractor1 and contractor3 groups. The operator2 user is a member of the operator2 and contractor3 groups. The . special directory contains four files with the following permissions: drwxrwxr-x. operator1 database1 . -rw-rw-r--. consultant1 consultant1 app1.log -rw-r--rw-. consultant1 database1 app2.log -rw-rw-r--. operator1 database1 db1.conf -rw-r-----. operator1 database1 db2.conf Which file(s) can be modified by the contractor1 user?
rfile2
The system has four users that are assigned to the following groups: The consultant1 user is a member of the consultant1 and database1 groups. The operator1 user is a member of the operator1 and database1 groups. The contractor1 user is a member of the contractor1 and contractor3 groups. The operator2 user is a member of the operator2 and contractor3 groups. The . special directory contains four files with the following permissions: drwxrwxr-x. operator1 database1 . -rw-rw-r--. consultant1 consultant1 app1.log -rw-r--rw-. consultant1 database1 app2.log -rw-rw-r--. operator1 database1 db1.conf -rw-r-----. operator1 database1 db2.conf Which file(s) cannot be read by the operator2 user?
ls -ld
What Linux commands displays permissions information of a directory?
1
What is the octal method number for setting execute permissions?
4
What is the octal method number for setting read permissions?
2
What is the octal method number for setting write permissions?
changes the owner of the /project directory to the developpers user
What is the purpose of the command chown :developpers /project?
Owner has read and execute data.txt, group doesn't have any permissions, and other users has read data.txt
What permissions are granted with the command chmod 504 data.txt?
Owner has read, write, execute. Group has execute. Other users have execute
When you see the permissions rwx--x--x associated with a file, what permissions aregranted?
&>/dev/null
Which answer discards all messages normally sent to the terminal?
2>/dev/null
Which answer displays output to a terminal and ignores all errors?
> file 2> /dev/null
Which answer saves output to a file and discards error messages?
&>file
Which answer sends both output and errors to a file, creating it or overwriting itscontents?
>> file 2>&1
Which answer sends output and errors to the same file ensuring existing file content ispreserved?
>file 2>file2
Which answer sends output to a file and sends errors to a different file?
| tee file
Which answer sends output to both the screen and a file at the same time?
lfile1
The system has four users that are assigned to the following groups: The consultant1 user is a member of the consultant1 and database1 groups. The operator1 user is a member of the operator1 and database1 groups. The contractor1 user is a member of the contractor1 and contractor3 groups. The operator2 user is a member of the operator2 and contractor3 groups. The . special directory contains four files with the following permissions: drwxrwxr-x. operator1 database1 . -rw-rw-r--. consultant1 consultant1 app1.log -rw-r--rw-. consultant1 database1 app2.log -rw-rw-r--. operator1 database1 db1.conf -rw-r-----. operator1 database1 db2.conf Which file(s) has a group ownership of consultant1?
rfile1
The system has four users that are assigned to the following groups: The consultant1 user is a member of the consultant1 and database1 groups. The operator1 user is a member of the operator1 and database1 groups. The contractor1 user is a member of the contractor1 and contractor3 groups. The operator2 user is a member of the operator2 and contractor3 groups. The . special directory contains four files with the following permissions: drwxrwxr-x. operator1 database1 . -rw-rw-r--. consultant1 consultant1 app1.log -rw-r--rw-. consultant1 database1 app2.log -rw-rw-r--. operator1 database1 db1.conf -rw-r-----. operator1 database1 db2.conf Which regular file(s) is owned by operator1 and readable by all users?
chmod
Which of the following commands enables you to set permissions on a directory after you create it?