Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
user permission on second hard drive..
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
corntoegoblin
n00b
n00b


Joined: 17 Apr 2010
Posts: 1

PostPosted: Sat Apr 17, 2010 10:58 am    Post subject: user permission on second hard drive.. Reply with quote

Hi

i managed to get through the compilation of the kernel and am loving gentoo. i have a problem though. i have a 32GB SSD at /dev/sba with all my boot stuff. that hard drive is fine m problem is with the second 640 GB drive which is for media. im trying to get it to mount as a normal user at the location /media as shown in fstab:

Code:

/dev/sda1               /boot           ext2            defaults,noatime        1 2
/dev/sda2               none            swap            sw                      0 0
/dev/sda3               /               ext3            noatime                 0 1
/dev/sdb1               /media          ext3            noatime,user,rw         0 1

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0


the partition gets mounted on boot but i can only read the contents of it not write. im completely stuck on this any help would be appreciated.

thanks
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10722
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Apr 17, 2010 11:09 am    Post subject: Reply with quote

Are you having access issues with a normal user or with the root user or with both? As root user could you post the output of
Code:
ls -ld /media

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23059

PostPosted: Sat Apr 17, 2010 4:38 pm    Post subject: Reply with quote

It seems a little odd to make a drive auto,user. Is the media drive removable? If not, there is little point in making it mountable by unprivileged users. Your problem may be that you misunderstood the meaning of the user mount option. In short, that option entitles non-privileged users to ask the system to mount that filesystem at the specified location. It does not entitle them to any particular permissions on the resulting filesystem once it is mounted. See man mount for full details.
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 512
Location: San Diego, California USA

PostPosted: Sat Apr 17, 2010 5:52 pm    Post subject: Reply with quote

With the ext3 filesystem, you're going about this all wrong. Don't mark the partition "user". There's no reason for it. Mount the partition at boot. If you want to write to the drive as user "bob", then create a directory /media/bob owned by user bob. Then bob will be able to write to the drive all he wants. You don't need access to the root directory.
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