Ch.9 Permissions Flashcards
What does ssh stand for, and what does it allow?
Secure Shell. Remote users can log in via ssh and operate the computer if it is attached to a network or the internet.
What does command id do
display user identity
what does command chmod do
change a file’s mode
what does command umask do
set the default file permissions
what does command su do
run a shall as another user
what does command sodu do
execute a command as another user
what does command chown do
change a file’s owner
what does command chgrp do
Change a file’s group ownership
what does command passwd do
change a user’s password
How are access rights to files and directories defined?
- read access 2. write access 3. execute access
using ls, what are the first 10 characters of the listing?
File attributes
What is the attribute for a regular file
-
What is the attribute for a directroy
d
what is the attribute for a symbolic link
1
what are the attribute for a character special file?
c
what is the attribute for a block special file
b
What does attribute r allow
Allows a file to be opened and read. Allows a directory’s contents to be listed if the execute attribute is also set.
What does attribute w allow?
Allows a file to be written to or truncated, however this attribute does not allow files to be renamed or deleted. The ability to delete or rename files is determined by directory attributes.
What does attribute x allow?
Allows a file to be treated as a program and executed. Program files written in scripting languages must also be set as readable to be executed.
-rwx——
A regular file that is readable, writable, and executable by the
file’s owner. No one else has any access.
-rw——-
A regular file that is readable and writable by the file’s owner.
No one else has any access.
-rw-r–r–
A regular file that is readable and writable by the file’s owner.
Members of the file’s owner group may read the file. The file is
world-readable
-rwxr-xr-x
A regular file that is readable, writable, and executable by the
file’s owner. The file may be read and executed by everybody
else.
-rw-rw—-
A regular file that is readable and writable by the file’s owner
and members of the file’s group owner only.
lrwxrwxrwx
A symbolic link. All symbolic links have “dummy”
permissions. The real permissions are kept with the actual file
pointed to by the symbolic link.
drwxrwx—
A directory. The owner and the members of the owner group
may enter the directory and create, rename and remove files
within the directory.
drwxr-x—
- A directory. The owner may enter the directory and create,
rename, and delete files within the directory. Members of the
owner group may enter the directory but cannot create, delete,
or rename files.
Who are the only entites that can change the mode of a file or directory?
file’s owner or superuser