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 / amit kumar ghosh

"The UID & GID of root user are 0".
No, a normal cannot change the ownership even if it is the
owner of that file.

That cmd to change ownership.
#chown owner:groupowner filename.

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

542


What is dos and its commands?

612


How do I find hostname in linux?

584


What is Data Command?

619


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.

848






Information technology is widely used in

1495


What does f mean linux?

539


What does chmod 644 do?

597


What are the basic dos commands?

554


What is tty in linux process?

520


Does cp overwrite?

571


What does top do in linux?

523


What is command example?

571


What is #!/ Bin sh?

559


What is clang format?

539