LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   making a vfat mount point writeable for users (https://www.linuxquestions.org/questions/linux-newbie-8/making-a-vfat-mount-point-writeable-for-users-52381/)

cuckoopint 03-30-2003 03:52 PM

btw, what is the output of (in terms of permissions):

ls -l /mnt/windows
ls -ld /mnt/windows

stevenhasty 03-31-2003 05:43 PM

a bunch of dr-xr-xr-x for the first one, even when logged in as root
drwxrwxrwx 14 root users 16384 Dec 31 1969 /mnt/files
for the second.

cuckoopint 03-31-2003 06:28 PM

Can you post your fstab line as it stands right now? and let me get this straight, everything mounts just dandy at boot time, only there is no write permissions? what do you do next? does chmod'ing it help?

On a side not, turn off the auto option and mount it manually with all the option you used in the fstab. any errors?

cuckoopint 03-31-2003 06:31 PM

umm....btw, did you make the group of /mnt/files 'users' yourself?
and lastly, do you use any gid/uid when mounting?

stevenhasty 03-31-2003 08:18 PM

/dev/hda6 /mnt/files vfat auto,users,rw,exec,suid,gid=100,umask=000 0 0

this is what it says right now, and yes I added gid=100 myself.
chmod'ing helps, yes, if I am logged in as root. give me a minute and i'll turn off the auto and manually mount it ...

stevenhasty 03-31-2003 08:26 PM

OK, manually mounting it,
mount -t vfat -O rw /dev/hda6 /mnt/files
had the same results: all files under the mount point were 0555. and if I chmod everything, it loses permissions when I unmount the filesystem.

cuckoopint 03-31-2003 08:38 PM

umount /dev/hda6 #if mounted
manually mount it again, using -O debug,users,rw,exec,suid,gid=100,umask=000

see if that helps to figure out the problem.
I'm running out of ideas, and I don't have a fat partition to play with... the only thing I can right now think of is the debug option plus playing with your gid (how well does it work if you leave out the gid?)

Maybe someone will come along, if this still doesn't help...

stevenhasty 03-31-2003 08:44 PM

when I mounted manually, I left out the gid, again no write perms.
what does debug do?
and I tried this:
cd /mnt/files
chmod 0777 *
and it gave me a bunch of errors and only made everything 0755:
chmod: changing permissions of `dir_name' (requested: 0777, actual: 0755): Operation not permitted

cuckoopint 03-31-2003 08:57 PM

man mount:

Quote:

debug Turn on the debug flag. A version string and a list of file system parameters will be printed (these data are also printed if the parameters appear to be inconsistent).
what's messing with my head is not even root has write permissions. the same thing happens if you mount manually with root?

cuckoopint 03-31-2003 09:02 PM

play around with what options are selected. From doing some searching, this _should_ work:

mount -t vfat -o users,rw,exec,umask=000 /dev/hda6 /mnt/files

stevenhasty 03-31-2003 09:05 PM

yes, works in root.
now i'm going to check to see if it will work in automount for users.

stevenhasty 03-31-2003 09:09 PM

perfect! thanks!

cuckoopint 03-31-2003 09:30 PM

cool.


All times are GMT -5. The time now is 03:23 AM.