Permissions Flashcards
What does your user account determine?
Which directory (user home dir) you are put in when you connect.
And what permissions and access you have to files and directories.
A file must have what permission to execute that file directly?
x (execute) permission
what are the 3 levels of ownership when it comes to file permissions?
user, group, and other
what are the 3 permission access types set on files and directories?
read, write, and execute
Access levels are determined by what permissions?
the rwx (read, write, execute) permissions for the owner, group, and other.
what permissions are displayed here?
$ ls -lah vip_lounge
drwxr-xr-x 6 acmeair vip 204B Jul 14 15:24 .
d: It is a directory
rwx: Its user has read, write, and execute access.
r-x: Its group has read and execute access.
r-x: Other also has read and execute access.
The user named “acmeair” has been assigned to it.
The group called “vip” has been assigned to it.
Permissions are assigned to what?
files and directories—not users and groups.
what command allows you to set permissions?
chmod
what command displays what groups your user is part of?
groups
When changing the permissions of a file or directory. what state must you be in?
you either must be logged in as that file’s owner
or the root user,
or you must use the sudo command.
Which user and group are assigned to the /etc folder on your computer?
lrwxr-xr-x@ 1 root wheel 11 Jan 15 2019 /etc -> private/etc
root user
wheel group
Which user and group are assigned to the $HOME folder?
drwxr-xr-x@ 69 jsmith staff 2208 May 20 17:48 .
jsmith user
staff group
$ groups
bob travelers vip
$ ls -l vip_lounge
…
-r-xrwx— 1 bob acmeinc 0 Jul 21 17:57 laptop
What are bob’s permissions to the laptop file?
What are the permissions for the group acmeinc?
The user bob has read and execute permissions.
The group acmeinc has read, write, and execute permissions.