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 |
Sorry to all Technical person for mistake of Question. Now i am post currect question Why copied file permission is changed in destination. When i give all permission i.e 777 to file and copy that to other location in destination the permission is 755. But if give permission 555 in destination that file permission is 555 and if give permission 444 to file after copy in destination the file permission is 444. These all are happening in normal user. How the umask value is calculate here really i am not understand. Please write the proper answer. Thanks in Advance
When the shell is reading the command line what is the difference between text enclosed between double quotes ( ” ) and text enclosed between signal quotes ( ’ )?
What are awk commands?
What Command will remove a Directory in UNIX?
What is the nmap command?
What is unix command line?
How to remove a crontab file?
What are the commands in UNIX to list the files in a Directory?
What is grep short for?
What is the difference between cat command and more command?
What do know about tee command and its usage?
Who command in unix operating system?