LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Allowing non-root to use mounted partition (https://www.linuxquestions.org/questions/linux-general-1/allowing-non-root-to-use-mounted-partition-104587/)

Sir Gawain 10-16-2003 03:16 AM

Allowing non-root to use mounted partition
 
Ok, I have my 120gb hdb1 mounted as /fat-d in slackwar 9.1 and root can access everything fine, but my user account cannot view anything. I tried editing the permissions, but that didn't seem to help.

This is kinda annoying as I have to run XMMS as root if I want to play music or If I want to get my website stuff.

septanla 10-16-2003 03:20 AM

edit fstab file, add option umask=0

Sir Gawain 10-16-2003 03:58 AM

/dev/hda6 swap swap defaults 0 0
/dev/hda7 / reiserfs defaults 1 1
/dev/hdb1 /fat-d vfat defaults 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

So where do I add umask=0?

iainr 10-16-2003 04:38 AM

/dev/hdb1 /fat-d vfat user,umask=0 1 0

Sir Gawain 10-16-2003 04:50 AM

Hmm... I can now see the base level directory (thank you), but cannot go into any of the folders for some reason. They show up as files and I cannot open them.

I can only get into the base dir using the gnome file manager (terminal and xfm give me permission errors still)

Skyline 10-16-2003 05:19 AM

You could always try:

/dev/hdb1 /fat-d vfat umask=000,defaults 0 0

Sir Gawain 10-16-2003 06:28 AM

Nope.

What seems to be happening, is that only gnome can look into /fat-d but it cannot open anything inside of it because it have no idea what the files are.

But it all works file if I log into gnome as root.

Rab22 10-16-2003 06:43 AM

Try adding "user" to it. Simliar to this:

/dev/hdb1 /mnt/fat-d vfat auto,user,umask=0 0 0

See if that helps ya out :)

fatgod 10-16-2003 09:37 AM

you can make all the files appear and behave as though they are owned by a specific user and group if you want to, and then make all files appear with certain permissions...

add to the options: gid=user,uid=root,fmask=640,dmask=750

I've got something like this on my samba shares that are mounted at boot, I reckon that these options will work for vfat too though.

Just something else for you to think about :)

Wynd 10-16-2003 09:57 AM

Try adding umask=0222 to the options.

For my options for my windows partition, i have: noauto,ro,umask=0222

noauto means don't mount it at boot time
ro means mount it as read only
umask=0222 means the default permissions are read and execute for everyone (it takes 777 minus the umask, which in this case is 555 which means read/execute permissions)

Edward78 10-16-2003 12:05 PM

Quote:

Originally posted by iainr
/dev/hdb1 /fat-d vfat user,umask=0 1 0
umask=0 0 0

Sir Gawain 10-16-2003 04:19 PM

Still trying but the closest I get is still just getting unreconizable files.

EDIT: I found out that I needed to change umask=0 to MY umask and it works fine now.


All times are GMT -5. The time now is 02:42 PM.