OS515_Lecture_4 Flashcards
to view permissions from the command line use…?
ls -l
(r)ead…?
view the file
(w)rite…?
modify the file
e(x)ecute…?
use the file as a command.
chmod command is used to modify…?
file permissions.
The first argument to chmond uses a {ugoa}[+-=]{rwx} syntax to …?
describe how the permissions should be changed.
To change the owner of a file use…?
chown.
To change the group of a file use…?
chgrp
Who can chown or chgrp…?
only the root user can use chown, a user can chgrp a file if they are a member of the group they wish to change the file to.
Who can modify file ownerships and permissions…?
chmod - root and the file owner
chgrp - root and the file owner (only to subscribed groups)
chown - only root.
How do directories use permissions…?
regular file, uses (r)ead to view the file, (w)rite to modify the file, e(x)ecute to use the file as a command.
Directory, (r)ead to list directory contents, (w)rite add or remove files, and e(x)ecute to “search” for a known file within the directory.
The chmod command can use an…?
alternate octal syntax. (The octal syntax is often quicker and more exacting)
Linux creates files with a default mode of..?
666 (rw-rw-rw)
Linux creates directories with a default mode of…?
777 (rwxrwxrwx)
Every process possesses a “umask” parameter which…?
masks out certain of these default permissions.
In Read Hat Enterprise Linux, the default umask for standard users is…?
002
The bash shell’s umask is modified with the…?
umask command.