External hard drive permissions

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read this

External hard drive permissions

Postby Guest on 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
Guest
 

Linux Mint is funded by ads and donations.
 

Re: External hard drive permissions

Postby kirsch92 on 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
kirsch92
Level 2
Level 2
 
Posts: 83
Joined: Fri Jun 13, 2008 5:01 am

Re: External hard drive permissions

Postby Guest on 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
Guest
 


Return to Hardware Support

Who is online

Users browsing this forum: Oni45 and 6 guests