Shared Flashcard Set

Details

rhel 5 training guide ch 03
File and Directory Permissions
47
Computer Science
Professional
03/23/2010

Additional Computer Science Flashcards

 


 

Cards

Term
what are the permission classes
Definition
user group others
Term
what are the permission types
Definition
r, w, x, and -
Term
what is rwx-
Definition
read write execute and none (Access Denied)
Term
what are the permission modes used to change permissions
Definition
+ - =
add, revoke, and assign
Term
used to change permissions
Definition
chmod
Term
add execute permissions for the owner
Definition
chmod u+x filename
Term
add write permissions for the owner
Definition
chmod u+w filename
Term
add write permissions for group members and the public
Definition
chmod go+w filename
Term
remove write permissions for the public
Definition
chmod o-w filename
Term
assign read write and execute permissions to all three user categories
Definition
chmod a=rwx filename
Term
octal value for r,w,x
Definition
4,2,1
Term
Octal value 1
Definition
execute only
Term
octal value 2
Definition
write only
Term
octal value 0
Definition
no permissions
Term
octal value of 3
Definition
execute and write
Term
octal value of 4
Definition
read only
Term
octal value of 5
Definition
read and execute
Term
octal value of 6
Definition
read and write
Term
octal value of 7
Definition
read, write, and execute
Term
starting with -r--r--r-- add execute permissions for the file owner
Definition
chmod 544 filename
Term
starting with -r--r--r-- add all permissions for the file owner
Definition
chmod 744 filename
Term
starting with -rwxr--r-- add write permissions to the group and others
Definition
chmod 766 filename
Term
starting with -rwxrw-rw- revoke write permissions from the public
Definition
chmod 764 filename
Term
starting with -rwxrw-rw- revoke write permissions from the public
Definition
chmod 764 filename
Term
assign rwx to all three permission classes
Definition
chmod 777 filename
Term
before the umask is applied, what are the initial permissions
Definition
666 for files, 777 for directories
Term
show the umask information in the rwx form
Definition
umask -S
Term
change the umask permissions to give others no permissions and group read only
Definition
umask 027
Term
how are default file permissions determined when a file is created
Definition
the umask value
Term
find the default umask value
Definition
umask
Term
what does umask 022 mean
Definition
666 - 022 = 644
umask is subracted from initial permissions
Term
change the owner of file1 to user2
Definition
chown user2 file1
Term
change the group of file1 to group2
Definition
chgrp group2 file1
Term
change the user and group to user2 for file1
Definition
chown user2:user2 file1
Term
change the owner and group membership to user2 recursively
Definition
chown -R user2:user2 dir1
Term
setuid bit
Definition
allows a file to be run by others with the exact same permissions as the owner
Term
ll /bin/su what are the owner permissions
Definition
rws
Term
/bin/foo has -rwxr-xr-x add the setuid bit using octal notation
Definition
chmod 4755 /bin/foo
Term
/bin/foo needs the setuid bit set, set it without changing anything else
Definition
chmod u+s /bin/foo
Term
unset the setuid bit for /bin/foo
Definition
chmod u-s /bin/foo
Term
find all the files that have the setuid bit set
Definition
find / -perm 4000
Term
setgid bit
Definition
Sets the group id for all the files in a directory. Then all members of a group can share files in the directory
Term
the new /data1 directory has -rwxrwx--- permissions. Files in the directory are going to be shared. Set the permissions to share files in the directory
Definition
chmod 2770 /data1
Term
sticky bit
Definition
set on public directories so that only the owner can delete files and sub-directories
Term
set the sticky bit on public directory /tmp/data1
Definition
chmod 1777 /tmp/data1
Term
use symbolic notation to add the sticky bit to /tmp/tmpdata
Definition
chmod o+t /tmp/tmpdata
Term
find all the directories with the sticky bit set
Definition
find / -type d -perm 1000
Supporting users have an ad free experience!