Re: Write permission til alm. bruger på msdos part.

From: Phil Regnauld (none@regnauld--catpipe.net.lh.bsd-dk.dk)
Date: Sun 04 Nov 2001 - 23:29:39 CET


Date: Sun, 4 Nov 2001 23:29:39 +0100
From: Phil Regnauld <none@regnauld--catpipe.net.lh.bsd-dk.dk>
To: bsd-novice@BSD-Dk.dk
Subject: Re: Write permission til alm. bruger på msdos part.

Morten Gade Sørensen (bsd) writes:
> Hej!
>
> Hvilke options skal jeg mounte et msdos (fat32) filsystem med for at give
> alm. brugere skriverettigheder? - I Linux bruger jeg "user" optionen i
> /etc/fstab, men det vil FBSD ikke gå med til.

        Checke (man mount_msdos) -u, -g og -m optioner:

     -u uid Set the owner of the files in the file system to uid. The
             default owner is the owner of the directory on which the file
             system is being mounted.

     -g gid Set the group of the files in the file system to gid. The
             default group is the group of the directory on which the file
             system is being mounted.

     -m mask
             Specify the maximum file permissions for files in the file sys­
             tem. (For example, a mask of 755 specifies that, by default, the
             owner should have read, write, and execute permissions for files,
             but others should only have read and execute permissions. See
             chmod(1) for more information about octal file modes.) Only the
             nine low-order bits of mask are used. The default mask is taken
             from the directory on which the file system is being mounted.

        Ex:

        /dev/ad0s2 /mnt/dos msdos rw,-u=1001,-g=20

        Se også "sysctl -w vfs.usermount=1" for at tillade en almindelig bruger
        til at mounte/unmounte en filsystem (brugeren skal eje device + mountpoint).



This archive was generated by hypermail 2b30 : Wed 15 Nov 2006 - 18:25:06 CET