what is the UID and GID of root user? Can a normal user can
change the ownership of a file? what is the command to
change ownership of a file?
Answer Posted / debasis behera
The UID & GID of root is zero i.e 0, normal user can't
change the ownership of a file of others, he can change the
ownership of his own file. To change a ownership of a file
is -
chown username filename
Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What are the 4 kinds of sentences with examples?
What is bash history linux?
How do I run multiple commands in linux?
Write a command that will do the following: -look for all files in the current and subsequent directories with an extension c,v -strip the,v from the result (you can use sed command) -use the result and use a grep command to search for all occurrences of the word orange in the files.
How many commands are there in linux?
What commands are used to see all jobs running in the hadoop cluster and kill a job in linux?
What are the basic commands in command prompt?
What is ulimit in linux?
Why bash is used in linux?
You suspect that you have two commands with the same name as the command is not producing the expected results. What command can you use to determine thelocation of the command being run?
What is the command to delete a file linux?
In order to improve your system’s security you decide to implement shadow passwords. What command should you use?
How remove all files in a directory linux?
How do I find the console in linux?
What is the use of ls command?