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


Please Help Members By Posting Answers For Below Questions

What are the 4 kinds of sentences with examples?

769


What is bash history linux?

701


How do I run multiple commands in linux?

734


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.

1044


How many commands are there in linux?

747






What commands are used to see all jobs running in the hadoop cluster and kill a job in linux?

730


What are the basic commands in command prompt?

717


What is ulimit in linux?

757


Why bash is used in linux?

720


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?

690


What is the command to delete a file linux?

717


In order to improve your system’s security you decide to implement shadow passwords. What command should you use?

709


How remove all files in a directory linux?

676


How do I find the console in linux?

718


What is the use of ls command?

714