How do you change file permissions and ownership in Unix?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I search a whole word in vim?

879


Explain how to use grep command to list find the records of a file containing 10 different strings?

800


Why is it called grep?

746


Write a command that will display files in the current directory, in a colored, long format.

919


Why is it called a shebang?

794


What is merge command in unix?

1138


What do chmod command do?

807


How do I run a bash script?

809


Which unix command to make a new directory?

797


What is awk command used for?

783


What does the md command do?

768


What does this command do? Cat food 1 > kitty

1232


What are file commands?

858


Enlist some filename manipulation commands in unix.

750


how to sort the content of the file based on numeric values

1504