You are not logged in.

#1 2009-01-18 23:02:55

bwh1969
Member
Registered: 2008-01-05
Posts: 151

mount point won't allow read/write for non-root user

Any ideas why this particular fstab line leads to root user only read/write for any disk referenced in my fstab?

Example:

UUID=496E-7B5E   /media/STORAGE   vfat   defaults 0   0

I have tried all variations of what "defaults" should be (rw,suid,dev,exec)

I had even added uid=0777, and no matter what options I add there, doing

sudo mount -a

or with the line in fstab commented out and

mount -t vfat -U 496E-7B5E /media/STORAGE -o defaults

causes the same issue.

Results in every filesystem there to be mounted as read only for me as a user, and I can only write to them as root. 


Weird

I have run

sudo chmod -v -R a+rwx /media/STORAGE

and similarly

sudo chmod -v -R 0777 /media/STORAGE

Both were tried on the directory as mounted and unmounted.  When mounted, the verbose output DOES NOT error out and shows property change of the files

Oddly, if no fstab reference is used, the disk shows up in the dolphin panel, and can be mounted in that manner and it is read write as a usual user. 

Using a Chakra-live installed with Unetbootin, so perhaps that is the issue... so

How is mounting through dolphin handled and what might I use at the command line to accomplish this same routine, as I only need one partition to mount read write when the system starts, so maybe I can add the command to rc.local

Last edited by bwh1969 (2009-01-18 23:04:59)

Offline

#2 2009-01-18 23:32:40

generic_
Member
From: Jacksonville,FL US
Registered: 2008-12-21
Posts: 182

Re: mount point won't allow read/write for non-root user

If you think the problem is in the can you put the whole fstab here it would be easier to see what is wrong. Are you sure your part of the storage group? Also specify your own flags don't use the defaults . Make sure you have both "users" and "user" in the flags and also have the "auto" flag. user allows and user to mount it but for some reason or another it may not work. the users flag lets people who are part of the group users. Im currently in a pretty similar situation so sorry if I was not if much help.


I'm just lost n00b!

Offline

#3 2009-01-19 13:32:58

bwh1969
Member
Registered: 2008-01-05
Posts: 151

Re: mount point won't allow read/write for non-root user

# fstab generated by gen_fstab
#<file system>   <dir>         <type>      <options>    <dump> <pass>

none            /dev/pts      devpts      defaults        0     0
none            /dev/shm      tmpfs       defaults        0     0

UUID=496E-7B5E /media/STORAGE vfat    defaults,user,users,rw,exec,uid=777,gid=777   0       0

/dev/sr0     /mnt/sr0_cd  auto     user,noauto,exec,unhide 0     0

# This would do for a floppy
#/dev/fd0        /mnt/floppy    vfat,ext2 rw,user,noauto    0     0
#    +   mkdir /mnt/floppy

# E.g. for USB storage:
#/dev/sdb1        /mnt/usb      auto      rw,user,noauto   0     0
#    +   mkdir /mnt/usb

Offline

#4 2009-01-19 13:52:33

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: mount point won't allow read/write for non-root user

As you can read in `man mount` uid= isn't supported by all filesystems. An easy work-around might be specifying (user) as a flag, and then mount as a user; that should work.

Offline

#5 2009-01-19 15:20:54

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: mount point won't allow read/write for non-root user

bwh1969 wrote:

.....
UUID=496E-7B5E /media/STORAGE vfat    defaults,user,users,rw,exec,uid=777,gid=777   0       0
....

That is not correct, looks like you are confused about what uid/gid and umask/dmask/fmask does.
You should read the mount man page again.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2009-01-19 22:35:06

bwh1969
Member
Registered: 2008-01-05
Posts: 151

Re: mount point won't allow read/write for non-root user

It was a frustrated brain fart and your reply made me go back to the manual page (again) so thanks:

This does not work:

UUID=496E-7B5E /media/STORAGE vfat    defaults   0       0

or

UUID=496E-7B5E /media/STORAGE vfat    rw,user,noauto   0       0

however, this does:

UUID=496E-7B5E /media/STORAGE vfat    rw,user,users,auto,exec,uid=500,gid=500  0       0

It has been a while since I visited the mount page, as usually "defaults" works.

Last edited by bwh1969 (2009-01-19 22:36:48)

Offline

Board footer

Powered by FluxBB