View previous topic :: View next topic |
Author |
Message |
corntoegoblin n00b
Joined: 17 Apr 2010 Posts: 1
|
Posted: Sat Apr 17, 2010 10:58 am Post subject: user permission on second hard drive.. |
|
|
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 |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10722 Location: Somewhere over Atlanta, Georgia
|
Posted: Sat Apr 17, 2010 11:09 am Post subject: |
|
|
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
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23059
|
Posted: Sat Apr 17, 2010 4:38 pm Post subject: |
|
|
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 |
|
|
gentoo_ram Guru
Joined: 25 Oct 2007 Posts: 512 Location: San Diego, California USA
|
Posted: Sat Apr 17, 2010 5:52 pm Post subject: |
|
|
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 |
|
|
|