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

How do I remove a soft link in linux?

743


How do I find old commands in linux?

769


What does comm do and how to use it?

738


What command would you use to check how much memory is being used by linux?

741


How do you execute more than one command or program from a single command line entry?

743


How cp command works in linux?

718


Explain shift command of linux?

780


What is cpu in top command?

749


What is the command to check cpu speed in linux?

703


What does ls mean in linux?

780


How can we increase disk read performance in single command?

784


What is 9 in kill?

693


What is the difference between rmdir and rm r?

827


What would be the result of issuing the command cat phonenos?

682


Why do we use cmake?

716