LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 01-02-2008, 09:55 PM   #1
JoeC21
LQ Newbie
 
Registered: Nov 2005
Location: Ohio
Distribution: Arch, openSUSE 10.3
Posts: 25

Rep: Reputation: 15
Permission problems with external hard drive


I have an external hard drive that when I try to transfer files to it when logged in as a user it returns permission denied. I can open the files as a user fine but only transfer files to it as root.

I opened nautilus as root and tried to changed the permissions through there but they just revert back to the defaults a second later.

Anyone know how I can change the permissions to allow my user account to copy files to the drive? It's not a huge deal to open the folder as root but would be nice if I could just do it as a user.

Thanks

Last edited by JoeC21; 01-02-2008 at 09:56 PM.
 
Old 01-02-2008, 10:40 PM   #2
kzutter
Member
 
Registered: Nov 2007
Location: Carson City, NV USA
Distribution: Various, but always Debian based
Posts: 70

Rep: Reputation: 15
More Info needed

To help you on this, more information is needed.
We need to know:
  1. What file system is on the drive?
  2. How is it being mounted? Do you do it manually? Is it done automatically by gnome? Automatically at boot?
  3. What is it's mount point?
  4. What are the permissions of the mount point?

If you do not know any of the answers to the above questions, then type this in a command window and post the results.

Code:
$ mount
 
Old 01-03-2008, 12:06 AM   #3
JoeC21
LQ Newbie
 
Registered: Nov 2005
Location: Ohio
Distribution: Arch, openSUSE 10.3
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kzutter View Post
To help you on this, more information is needed.
We need to know:
  1. What file system is on the drive?
  2. How is it being mounted? Do you do it manually? Is it done automatically by gnome? Automatically at boot?
  3. What is it's mount point?
  4. What are the permissions of the mount point?

If you do not know any of the answers to the above questions, then type this in a command window and post the results.

Code:
$ mount
1. The file system is vfat or FAT32 if that is more specific
2. I mount it manually
3. /media/sdb1
4. I believe root can create and delete files while others can only access files. I get this by right clicking the sdb1 folder>properties>permissions. It thats not it, I'm not sure how to find out.

Running '$mount' returns...

Code:
/dev/sdb1 on /media/sdb1 type vfat (rw)
for this drive

Thanks
 
Old 01-03-2008, 03:50 AM   #4
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,464
Blog Entries: 3

Rep: Reputation: 183Reputation: 183
permision

Quote:
Originally Posted by JoeC21 View Post
I have an external hard drive that when I try to transfer files to it when logged in as a user it returns permission denied. I can open the files as a user fine but only transfer files to it as root.

I opened nautilus as root and tried to changed the permissions through there but they just revert back to the defaults a second later.

Anyone know how I can change the permissions to allow my user account to copy files to the drive? It's not a huge deal to open the folder as root but would be nice if I could just do it as a user.

Thanks
check your etc ftsb file
/dev/sda1 /mnt/usbdrive ext2 defaults 0 0
if somthing like that is there then in gui kde or gnome you can loggin in as root go to the /mnt/usbdrive right click it properties and set group to disk then in permissions click group and put it to can modify set to sub folders .. then go to your user manger and make sure the user that wants to use it has a check next to disk in groups.. thats the GUI way If you knew how to use the chown you would'nt be asking this. GUI on
 
Old 01-03-2008, 02:56 PM   #5
kzutter
Member
 
Registered: Nov 2007
Location: Carson City, NV USA
Distribution: Various, but always Debian based
Posts: 70

Rep: Reputation: 15
Quote:
Originally Posted by JoeC21 View Post
1. The file system is vfat or FAT32 if that is more specific
2. I mount it manually
3. /media/sdb1
4. I believe root can create and delete files while others can only access files. I ...
As root, unmount the drive
Code:
# umount /media/sdb1
Then change the permissions on /media/sdb1
Code:
# chmod 777 /media/sdb1
Then mount it manually using which ever command you usually do, or use
Code:
# mount /dev/sdb1 /media/sdb1
Then try it to see if your user can write files, if not, we will move onto the next step.
 
Old 01-06-2008, 02:30 PM   #6
JoeC21
LQ Newbie
 
Registered: Nov 2005
Location: Ohio
Distribution: Arch, openSUSE 10.3
Posts: 25

Original Poster
Rep: Reputation: 15
Sorry for the long delay in posting but after running 'chmod 777 /media/sdb1' I still am getting the error message saying "You do not have permission to write to this folder."
 
Old 01-06-2008, 05:25 PM   #7
zoranp
Member
 
Registered: Nov 2007
Location: Belgrade, RS
Distribution: Mandriva 2009.0 X86_64
Posts: 44

Rep: Reputation: 15
Add in your fstab line

/dev/sdb1 /media/sdb1 vfat noauto,user,uid=username,gid=group 0 0

Replace username with your username, and group with the name of your primary group (distribution dependent).

As ordinary user type

mount /media/sdb1
 
  


Reply

Tags
gnome, harddisk, permissions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Establishing write permission for an external hard drive in SUSE 10.3 Jason21 Linux - Newbie 7 10-26-2007 01:40 AM
External Hard Drive Write Permission Problem RazielX Linux - General 2 09-02-2007 09:45 AM
Problems with Lacie external hard drive deanw8 Linux - Hardware 1 04-05-2007 11:07 AM
External Hard Drive does not give me the permission to write erockallstar Linux - Newbie 22 01-29-2007 03:40 PM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM


All times are GMT -5. The time now is 06:00 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration