Re: Permission Problem



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.
.



Relevant Pages

  • Re: Permission Problem
    ... I have been trying to get my floppy drive to allow user to read/write it. ... Only way to mount is as root, ... Devices as floppy and USB/firewire media is always mounted by root, ...
    (alt.os.linux.suse)
  • Re: Permission Problem
    ... I have been trying to get my floppy drive to allow user to read/write it. ... Only way to mount is as root, ... Devices as floppy and USB/firewire media is always mounted by root, ...
    (alt.os.linux.suse)
  • Re: A few newbie questions...
    ... a root password at the console. ... I need to edit my fstab to add a second HDD (D: ... What would the mount point be? ... the hard drives are devices starting with ad. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Write to floppy?
    ... root and trying to mount it with -w as root. ... Are you sure that the little tab on the floppy has not been set to read ... matt@mattspc /mnt $ touch usb/file ...
    (Ubuntu)
  • Re: [opensuse] Beginner: How do I mount a floppy disk? Summary
    ... That will mount the floppy ... Root -> mnt = empty ... command), Traeger2. ...
    (SuSE)