How do you change file permissions and ownership in Unix?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to find whether the system is 32 bit or 64 bit?

831


What is the use of tee command?

760


How do you grep a case insensitive?

734


What is the use of finger command?

822


Which command will print your home directory on screen?

788


Why is awk called awk?

768


What is the difference between awk and grep?

798


How do I open a port?

772


What do chgrp command do?

825


What is the command to find maximum memory taking process on the server?

884


Explain command to display different lines that are found when compare two files?

882


What is the use of awk command in unix?

764


What is a bash command?

826


How do I search for a file in unix command?

738


Which unix command to make a new directory?

797