How do you change file permissions and ownership in Unix?

Answers were Sorted based on User's Feedback



How do you change file permissions and ownership in Unix?..

Answer / hr@tgksolutions.com

• Changing Permissions: Use the chmod command to change file permissions. For example, chmod 755 filename sets the permissions to read, write, and execute for the owner, and read and execute for the group and others.
• Changing Ownership: Use the chown command to change the ownership of a file. For example, chown user:group filename changes the owner to user and the group to group.

Is This Answer Correct ?    0 Yes 0 No

How do you change file permissions and ownership in Unix?..

Answer / nashiinformaticssolutions

• Changing Permissions: Use the chmod command to change file permissions. For example, chmod 755 filename sets the permissions to read, write, and execute for the owner, and read and execute for the group and others.
• Changing Ownership: Use the chown command to change the ownership of a file. For example, chown user:group filename changes the owner to user and the group to group.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

What's a command word?

0 Answers  


Which command is used to kill the last background job?

0 Answers  


How do you move a process which is running background to foreground?

9 Answers  


Explain ‘library functions’ with respect to unix commands?

0 Answers  


How to copy multiple files and directories into some other directory?

4 Answers  






What is “chmod” command?

0 Answers  


how unix kernel distinguishes between a normal file and device file ?

7 Answers   Google, IBM, McAfee, Vodafone,


What do know about tee command and its usage?

0 Answers  


What are some command words?

0 Answers  


How to setup sudo, only can use for particular date & time only ( for solaris10 )

1 Answers   ups,


Who wrote grep?

0 Answers  


How i'll delete a particular line from the file? Please give answer as soon as possible. Thanks in advance.

12 Answers   IBM,


Categories