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 is free linux?

575


How do I check storage on linux?

527


How do I check my cpu speed?

523


What is linux load average?

595


What is FC command?

495






How to write the output of a command to a file?

576


What is the use of finger command in linux?

516


How do I permanently delete linux history?

533


How do I search bash history?

505


How does case sensitivity affect the way you use commands?

662


What is p in mkdir?

567


What is difference between free and available memory in linux?

513


Which of the commands will replace all occurrences of the word rate with the word speed in the file racing?

494


Is llvm a virtual machine?

567


What is the use of ls command?

493