Jump to content

permission change through terminal


Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...