Files and Directories in Linux: Permissions and User Management

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/32

flashcard set

Earn XP

Description and Tags

Vocabulary practice flashcards covering Linux users, groups, commands, file and directory permissions, octal/symbolic notation, umask, and the sticky bit.

33 Terms

1
New cards

Regular User

A standard Linux user account created for individuals who use the system, configured with limited permissions.

2
New cards

Root User (Superuser)

The most powerful account on a Linux system, possessing all rights to perform virtually any action, including user creation; generally assigned a UID of 00.

3
New cards

UID (User Identification)

A unique identifier assigned to each user account on a Linux operating system.

4
New cards

/etc/passwd

The system file in Linux that stores all user account information, including usernames and UIDs.

5
New cards

Group

A collection of users in Linux enabling permissions to be managed collectively at the group level rather than per individual user.

6
New cards

GID (Group Identification)

A unique identifier assigned to each distinct group on a Linux system.

7
New cards

/etc/group

The Linux system configuration file that stores all information concerning system groups, including group names and GIDs.

8
New cards

adduser

A Linux command used to add a new user to the system.

9
New cards

userdel

A Linux command used to delete a user account and its associated files.

10
New cards

addgroup

A Linux command used to create and add a new group to the system.

11
New cards

groups

A command that displays the groups to which a specified user belongs (syntax: groups [options] [users]).

12
New cards

id

A command that displays a user's numerical identifier (UID) alongside the group identifiers (GIDs) of the groups to which the user belongs.

13
New cards

Owner (User)

The permission category representing the individual account that owns the file or directory, which defaults to the user who created it.

14
New cards

Group (Permission Category)

The permission category assigned to members of the file or directory's owning group, which by default shares the same name as the owner.

15
New cards

Other Users (Other)

The permission category that encompasses all system users who are neither the object's owner nor members of its assigned group.

16
New cards

File Type Character

The leading character in a long directory listing (ls -l) designating object type: '-' for a regular file, 'd' for a directory, or 'l' for symbolic links.

17
New cards

Read Permission (r) on a File

The file permission granting the ability to view or read the data contents of a file (e.g., using the cat command).

18
New cards

Write Permission (w) on a File

The file permission granting the ability to alter or modify the contents of a file (e.g., using the vi editor).

19
New cards

Execute Permission (x) on a File

The file permission granting the ability to run the file as a program or script.

20
New cards

Read Permission (r) on a Directory

The directory permission allowing a user to read and list the contents within the directory (e.g., using the ls command).

21
New cards

Write Permission (w) on a Directory

The directory permission allowing modifications inside the directory, including creating, adding, deleting, or renaming files and subdirectories (e.g., using touch).

22
New cards

Execute Permission (x) on a Directory

The directory permission granting the ability to enter the directory (via cd) and execute commands against its contents.

23
New cards

Locked Directory

A condition where a directory lacks the execute (x) permission, rendering it impossible to access, create, delete, or rename files within it, even if read (r) and write (w) rights are granted.

24
New cards

chgrp

The command utilized to change the group ownership of a file or directory.

25
New cards

chown

The command utilized to change the user owner of a file or directory.

26
New cards

chmod

The 'change mode' command utilized to alter access rights and permissions for owner, group, and others.

27
New cards

Symbolic Method (chmod)

A method of modifying permissions using letter codes: targets ('u', 'g', 'o', 'a'), operators ('+', '-', '='), and permissions ('r', 'w', 'x').

28
New cards

Numeric Method (chmod)

An octal representation method of setting permissions where each right is assigned a base value: r has the value 44 (222^2 or binary 100), w has the value 22 (binary 010), and x has the value 11 (binary 001).

29
New cards

chmod -R

The recursive flag for chmod used to modify permissions recursively through a directory and all of its sub-content.

30
New cards

umask

A setting that specifies default permissions that should be removed or denied by default when new files or directories are created.

31
New cards

Default Base Permissions

The maximum initial rights before applying umask: files default to rw-rw-rw- (666666, never executable by default) and directories default to rwxrwxrwx (777777).

32
New cards

umask -S

The umask command option used to display the current mask in symbolic notation (e.g., u=rwx,g=rwx,o=rx).

33
New cards

Sticky Bit

A security permission represented by 't' in the other-execute position that protects shared directories, ensuring that only the file owner, directory owner, or superuser can delete or rename files.