Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 4 : chmod 754 myfile / chmod 754 myfile

Advertisement

Detailed Solution

सही उत्तर chmod 754 myfile / chmod 754 myfile है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

Which command gives a file read-write-execute permission to the owner, read-execute to the group, and read-only to others? / कौन-सा कमांड किसी फाइल को स्वामी हेतु रीड-राइट-एक्जीक्यूट, समूह हेतु रीड-एक्जीक्यूट और अन्य हेतु केवल रीड अनुमति देता है?

1.
chmod 644 myfile / chmod 644 myfile
2.
chmod 755 myfile / chmod 755 myfile
3.
chmod 764 myfile / chmod 764 myfile
4.
chmod 754 myfile / chmod 754 myfile

Correct Answer: chmod 754 myfile / chmod 754 myfile

rwx = 4+2+1 = 7, r-x = 4+1 = 5, r-- = 4, so the octal mode is 754. 755 wrongly gives execute to others and 644 removes the owner's execute bit. / rwx=7, r-x=5, r--=4, अतः ऑक्टल मोड 754।

Downloaded from PrepSnap (prepsnap.in)