How can you change the owner or group of a file?
The chown command is used to change the owner of a file or directory. For instance, chown newowner filename would change the file's owner to "newowner". If you want to change both the owner and the group simultaneously, you will use a syntax like chown newowner:newgroup filename. For altering only the group, the chgrp command is used. As with most UNIX commands, care should be taken with these tools, ensuring that ownership is only granted to trusted users.
| Is This Answer Correct ? | 0 Yes | 0 No |
Where can I get the free download of Unix by Yeswant Kanetkar?
Write a command to find all of the files which have been accessed within the last 30 days.
5 Answers Google, IBM, Satyam,
why unix operating system provides more security than other operating systems?
how many internal commands is there in UNIX?
when we installing aix os the ssh installed default?
What's a command word?
How does the system know where one command ends and another begins?
Suppose 1000 processes are running on the system out of those if you have to show only certain process ids which command will you use?
What is the difference between AWK and SED commands? Plz give example and explain...
How do I use nslookup?
What is the functionality of a top command?
What is awk command used for?