solarian Posted August 31, 2005 Report Share Posted August 31, 2005 Hi! I need to change ownership through a terminal; have a drive hdc1 with "root" as owner I need to change it to "username". I know that can be done through Konqueror, but I need to do this from terminal. thanx! Quote Link to comment Share on other sites More sharing options...
ilia_kr Posted August 31, 2005 Report Share Posted August 31, 2005 Maybe you should try this: chmod XYZ /your_file See this for an example: chmod Quote Link to comment Share on other sites More sharing options...
scarecrow Posted August 31, 2005 Report Share Posted August 31, 2005 (edited) Midnight Commander will save you time and typing... :D And it can be used with X not running at all. Highlight the file, press F9, and then file/chmod Edited August 31, 2005 by scarecrow Quote Link to comment Share on other sites More sharing options...
solarian Posted August 31, 2005 Author Report Share Posted August 31, 2005 Thanks! I had totally forgotten about MC!! :/ Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted August 31, 2005 Report Share Posted August 31, 2005 I must be missing something here :unsure: For me, changing ownership is done with chown, not chmod... Yves. Quote Link to comment Share on other sites More sharing options...
scarecrow Posted August 31, 2005 Report Share Posted August 31, 2005 I must be missing something here :unsure:For me, changing ownership is done with chown, not chmod... Yves. <{POST_SNAPBACK}> You are right... I saw "chmod" in the previous post and repeated carelessly. Quote Link to comment Share on other sites More sharing options...
solarian Posted August 31, 2005 Author Report Share Posted August 31, 2005 Yea, I did it with chow Quote Link to comment Share on other sites More sharing options...
pmpatrick Posted September 1, 2005 Report Share Posted September 1, 2005 For future reference, the way to do it from the command line is: # chown -R username:usergroup <mount point of hdc1> The "-R" is for recursive, i.e. it will change the ownership of all the files and directories bellow the hdc1 mount point. The usergroup is usually the same as the username. And you should run the command with hdc1 mounted. Quote Link to comment Share on other sites More sharing options...
arctic Posted September 1, 2005 Report Share Posted September 1, 2005 Also, take a look at the chown man and help pages. It never hurts. :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.