mounting fatx partition as another user

Ask questions regarding Gentoox, Gentoo and Linux in general in these forums and we'll do our best to help you!
Post Reply
pyro-x
Newbie
Posts: 2
Joined: Sun Sep 14, 2003 8:26 am
Location: Spain

mounting fatx partition as another user

Post by pyro-x »

Hi all

It seems that /mnt/fatx/f partition is mounted as root and with too much restrictive permisions, i've been trying to mount my "F:" partition: /dev/hda55 as other user and with less restrictive permisions, but i always end with the same:

Code: Select all

box root # ls /mnt/fatx -l
total 33
drwxr-xr-x    2 root     root           48 Mar 30 00:59 c
drwxr-xr-x    9 root     root        16384 Jan  1  1970 e
drwxr--r--    7 root     root        16384 Jan  1  1970 f
It seems uid,gid, and *mask options doesn't work for fatx!, at least in my box. Anyone have experienced with this strange behaviour?, perhaps it is not implemented in fatx driver.


Many thanx in advance
Pyro-X
scoobydu
Linux Expert
Posts: 107
Joined: Mon Aug 11, 2003 6:08 pm

Post by scoobydu »

I asked the same here, but without much success ...

viewtopic.php?t=108&highlight=fatx+user

Maybe the new pro version with allow this native access to the 'f' drive.

scooby
bikr
Novice
Posts: 46
Joined: Mon Aug 11, 2003 5:11 pm
Contact:

Post by bikr »

The new fatX drivers are included with the new version, however , I'm not sure if this fixes that issue as I do not have an F: to test.. --Bikr
unngh
Newbie
Posts: 1
Joined: Wed Sep 14, 2005 6:54 pm

Partial work around

Post by unngh »

I used autofs to implement a partial work around for this problem.

Since the fatx driver did not seem to allow changing permissions, I used a combination of Samba and autofs. Essentially, I share the f:/amule folder with Samba, then I mount the samba folder to /home/p2p/amule with the desired permissions.

In general, the steps to follow are:

1. config samba to share f:\amule
2. emerge autofs [autofs gives on demand file system mounting]
3. config autofs [I used this http://www.greenfly.org/tips/autofs.html as my starting point

The line I use in my "auto.misc" file looks something like this:

amule -fstype=smbfs,username=p2p,password=xxx,uid=106,gid=0,fmask=770,dmask=770 ://xbox/amule

Hope this can help someone.
Post Reply