NEW INTERVIEW QUESTIONS.COM
OPERATING SYSTEMS INTERVIEW QUESTIONS
UNIX INTERVIEW QUESTIONS DETAILS
NewInterviewQuestions.com - Home for World's Largest Interview Questions Website.
A D V E R T I S E M E N T
Question |
What is the unix command used for giving or changing the permissions for files and folders?
|
Answer
|
chmod command is used to change file permissionsyntax : chmod category operation permission filenamewhere category may be u = user ,g = group,o = others,a = alloperation may be '+' = assign permission,'-' = remove permission,'=' = exact permissionpermission may be r=read,w=write,x=executeEg: $chmod a+x file1 (give execute permission of file1 to all)
chmod 777 is used to give all permissions to individual, group and everyone. The first 7 is for individual, 2nd for group and 3rd for everyone.
read - 4
write - 2
execute - 1
sum of the digits is used to give permission.
Answered By: nidhi Date: 1/30/2008
© NewInterviewQuestions.com
|
If you have the better answer, than send it to us. We will display your answer after the approval.
Rate the above answer. Help us to know about the answer.
Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.
|