Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to access/read USB-HDD as normal user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
impz
n00b
n00b


Joined: 24 Feb 2005
Posts: 28
Location: Germany

PostPosted: Sat Apr 08, 2006 12:38 pm    Post subject: Unable to access/read USB-HDD as normal user Reply with quote

Hi

I have problems with accessing and reading files from my usb-harddrive as a normal user.
I can mount the harddrive, but I can not enter the files.

Quote:

cd /mnt/usbdrivea
bash: cd: /mnt/usbdrivea: Permission denied


When I am logged in as root everything works just fine, but not as a regular user.
I went through many threads, but couldn't find anything that would help me.


That's my /etc/fstab
Code:

/dev/hdb1      /boot      ext2      noauto,noatime   1 2
/dev/hdb3      /      reiserfs   noatime      0 1
/dev/hdb2      none      swap      sw      0 0
/dev/dvdrw      /mnt/dvdrw   auto      noauto,user   0 0
/dev/dvd1      /mnt/dvdrom   auto      noauto,user   0 0
#/dev/fd0      /mnt/floppy   auto      noauto      0 0
/dev/sda1      /mnt/usbdrivea   auto      noauto,user,exec   0 0
/dev/sda2      /mnt/usbdriveb   auto      noauto,user,exec   0 0

# NOTE: The next line is critical for boot!
proc         /proc      proc      defaults   0 0


My user is nenber in all of the neccessary groups and the folders (upon which the drives are mounted) have the neccessary rights enabled too
Code:

drwxrwxr-x  2 root users 48 Apr  9 18:36 usbdrivea
drwxrwxr-x  2 root users 48 Apr  6 00:07 usbdriveb


However after I mount the drives it looks like that
Code:

dr-x------  1 root root  45056 Apr  2 01:10 usbdrivea
dr-x------  1 root root  32768 Apr  2 22:20 usbdriveb


I have no idea what to do....

PS I dont know, if thats important, but the filesystem of the usb-harddrive is ntfs
_________________
Risk everything, or gain nothing.

[Geoffrey de Charny]
Back to top
View user's profile Send private message
bhun
n00b
n00b


Joined: 01 Dec 2002
Posts: 70

PostPosted: Sat Apr 08, 2006 1:43 pm    Post subject: Re: Unable to access/read USB-HDD as normal user Reply with quote

You could change your mount options to have all users from a group (using the gid option) to have r(ead) and e(x)ecute permissions on all files in the mount using the umask option.

Code:

/dev/sda2      /mnt/usbdriveb   auto      gid=users,umask=227,noauto,user,noexec   0 0


Check the man page for mount for more details.
Back to top
View user's profile Send private message
impz
n00b
n00b


Joined: 24 Feb 2005
Posts: 28
Location: Germany

PostPosted: Sat Apr 08, 2006 1:49 pm    Post subject: Reply with quote

that works.

thx
_________________
Risk everything, or gain nothing.

[Geoffrey de Charny]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum