MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following is default permission set for directories?
A
rw-rw-rw-
B
rwxrwxrwx
C
r-r-r-
D
rw-rw-rwx
Explanation: 

Detailed explanation-1: -The system default permission values are 777 ( rwxrwxrwx ) for folders and 666 ( rw-rw-rw-) for files. The default mask for a non-root user is 002, changing the folder permissions to 775 ( rwxrwxr-x ), and file permissions to 664 ( rw-rw-r–).

Detailed explanation-2: -Directory: Permission to read, but not search, contents. File: Permission to read or print contents. To run a shell script, you need both read and execute permission.

Detailed explanation-3: -(rwxrwxrwx) No restrictions on permissions. Anybody may do anything. Generally not a desirable setting. (rwxr-xr-x) The file’s owner may read, write, and execute the file.

Detailed explanation-4: -Hence the-rwxrwxrwx above indicates that user, group, and other have read, write and execute permissions for that file or in other words: the owner of the file, anyone in the file’s group, and everybody else has read, write, and execute permissions for that file).

Detailed explanation-5: -As you might remember, the default file permission value is 0644, and the default directory’s is 0755.

There is 1 question to complete.