Control access to files-ch7 Flashcards
What does this command do $ ls -l file ?
shows detailed information about permissions and ownership
What’s the output of
$ ls -l file ?
-rw-rw-r–. 1 student student 0 Mar 8 17:36 file
What does this command do $ ls -ld /home ?
shows detailed information about a directory itself, and not its contents.
What’s the output of $ ls -ld /home ?
drwxr-xr-x. 5 root root 4096 Feb 31 22:00 /home
What type of file is l ?
symbolic link
What type of file is c ?
character device file
What type of file is b ?
block device file
What type of file is p ?
named pipe file
What type of file is s ?
local socket file
What’s chmod command used for ?
changes file and directory permissions from the command line
What does this command do “$ chmod go-rw document.pdf” ?
Remove read and write permission for group and other on the document.pdf file
$ chmod a+x myscript.sh
Add execute permission for everyone on the myscript.sh file
$ chown
change owner,change file ownership
Setting Special Permissions : setuid
u+s
Setting Special Permissions : setgid
g+s