External hard drive permissions

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Guest

External hard drive permissions

Postby Guest » Thu Sep 11, 2008 3:49 am

Hi everyone,

I've got a new external HDD and it mostly works well with Mint. I noticed however, that the various folders that I have copied as a manual back up to the drive all have their permissions set as "root". Why is this so?

Is there are command line solution to changing all the files in the folders to my user name rather than being owned by root in one of two easy steps rather than one by one? (chmod something or other????).

Regards
John

kirsch92
Level 2
Level 2
Posts: 83
Joined: Fri Jun 13, 2008 5:01 am

Re: External hard drive permissions

Postby kirsch92 » Thu Sep 11, 2008 4:17 am

use chown

Code: Select all

sudo chown -R user:group /file, directory or drive name

see http://www.ss64.com/bash/chown.html
an example:

Code: Select all

 sudo chown -R John:John /ExternalBackup


To change file permissions, then use chmod

Code: Select all

sudo chmod -R 755 /ExternalBackup

see http://www.ss64.com/bash/chmod.html for numbering permissions you need for read, write execute if 755 isn't what you are looking for.
the -R makes it recursive to all subfolders and files

jeremy
Shuttle SK43G XPC
Sapphire ATI x1550 AGP
or my shiny, new, cheap Compaq 762NR laptop

Guest

Re: External hard drive permissions

Postby Guest » Fri Sep 12, 2008 7:19 am

Thanks Jeremy, I 'll have a look and see what comes of it. I noticed on the forum and Ubuntu forum that this is a known problem. Hopefully it will be fixed in later releases.

Regards
John


Return to “Hardware Support”

Who is online

Users browsing this forum: Bing [Bot] and 8 guests