The mkdir command creates new directories with which of the following default permissions?

Study for the RHEL Linux - Red Hat System Administration Exam. Enhance your knowledge with flashcards and multiple-choice questions, complete with hints and explanations. Prepare for your certification!

The mkdir command in Linux is used to create new directories, and by default, it assigns certain permissions to these directories based on the system's umask settings. When a directory is created without any specific permission settings, it typically inherits the permissions defined by the system, allowing full access.

The correct understanding of the default permissions assigned by the mkdir command is that it typically allows read, write, and execute permissions for the owner, the group, and others. This means that the default setting permits any user on the system to enter the directory and make modifications (if they have write permissions).

In most Linux systems, the default for mkdir would be 755 (rwxr-xr-x), meaning that the owner can read, write, and execute, while the group and others can read and execute but not write. This is an important aspect of directory permissions that ensures a new directory is usable without requiring additional permissions to be set immediately.

Understanding the behavior of the umask (which can modify these defaults) is also crucial, as it can restrict permissions further than the default setting of 777 (rwxrwxrwx). However, when not affected by a stricter umask, mkdir creates directories with full permissions for the owner while ensuring

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy