Re: Permission Problem
- From: Lew Pitcher <lpitcher@xxxxxxxxxxxx>
- Date: Mon, 17 Dec 2007 11:55:39 -0800 (PST)
On Dec 17, 1:58 pm, russbucket <russbuc...@xxxxxxx> wrote:
SuSE 10.2. 2.6.18.8-0.7-bigsmp #1 SMP
I have been trying to get my floppy drive to allow user to read/write it.
Only way to mount is as root, then user cannot read/write. Also have a new
scandisk usb cruzer 8.2 mb drive that has the same issues.
I know the mount command is limited to root. I am a member of the group
floppy and disk.
My present permissions for the floppy are: (Deinstalled the usb drive after
trying a ~/mnt/directory. It showed up but I could not read or write it. I
put an entry in FSTAB and when root mounted it it showed in mtab).
ls -l /dev/fd0
brw-rw----+ 1 root disk
ls -l /media
drwxr-xr-x 2 root root
FSTAB entry:
/dev/fd0 /media/floppy auto noauto,user,sync
0 0
Is there any actual document showing correct way to do this? I found several
on the web but they always fail at the point where they say to mount the
drive.
USB thumb drives and floppy disks are often formatted with a FAT
filesystem, which does not support Unix-like file permission bits. The
kernel (through the mount command options) fakes up some 'virtual'
permission bits for these files (including the . directory of the
filesystem). The root umask is applied to these permission bits, so if
root's umask is (for instance) 744 (rwxr--r--) then the files and
directories cannot be written to.
So, the trick is to set the umask to 000 as part of the mount options.
If you read the mount(8) and mount(2), you will find the additional
options umask=, dmask= and fmask=. Include these in your options
(noauto,user,sync,dmask=...,fmask=...) with the appropriate values
(dmask=0,fmask=0 will do in a pinch) and you should get past this
little problem.
I am new at the file permission stuff. my 10.2 floppy setup was working
until I had a disk failure and on reinstall the kde update (3.5.8, before I
had 3.5.5 installed) b was applied.
Your bigger issue is that you've messed up the automount process,
which would do all this for you. Luck be with you in straightening /
that/ out.
.
- References:
- Permission Problem
- From: russbucket
- Permission Problem
- Prev by Date: Re: Epson V500 scanner driver?
- Next by Date: SuSE 10.3 No Sound
- Previous by thread: Re: Permission Problem
- Next by thread: Re: Permission Problem
- Index(es):
Relevant Pages
|