Results 1 to 4 of 4
The chown command is used to change the user & the owner of a directory or file from root to the user so that the directory or file can be ...
- 09-01-2007 #1Just Joined!
- Join Date
- Aug 2007
- Posts
- 28
Opposite of chown
The chown command is used to change the user & the owner of a directory or file from root to the user so that the directory or file can be accessed or edited.
How do I revert the user & the owner back to root so that the directory or file no longer remains accessible or editable?
- 09-01-2007 #2forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,090
Use chown again to change it back.
Use su to obtain root permissions, and then type the following command:
Code:chown new-owner name-of-file-or-directory
oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 09-01-2007 #3forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,090
If you are interested in learning more about Linux commands, take a look at:
LinuxCommand.org: Learn the Linux command line. Write shell scripts.oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 09-02-2007 #4Just Joined!
- Join Date
- Aug 2007
- Posts
- 28
Thanks, Ozar, for the solution & the recommendation.
Regards,
Ron


Reply With Quote
