Shared Windows/Linux Drive Problems

Scott Henson scotth at csee.wvu.edu
Wed Jan 4 06:27:54 UTC 2006


Ryan Thompson wrote:

>I am having problems getting permissions to Read/Write/Execute on a
>shared partition.  I have access with Root but all my other users can
>only read/execute.  Tried a chmod 777 but that didn't work.  Can anyone
>help?
>
>
>  
>

>From 'man mount'

Mount options for fat
       (Note: fat is not a separate filesystem, but a common part of 
the  msdos,  umsdos
       and vfat filesystems.)

       blocksize=512 / blocksize=1024 / blocksize=2048
              Set blocksize (default 512).

       uid=value and gid=value
              Set  the  owner  and  group of all files.  (Default: the
uid and gid of the
              current process.)

       umask=value
              Set the umask (the bitmask of the permissions that are 
not  present).  The
              default  is the umask of the current process.  The value
is given in octal.

       dmask=value
              Set the umask applied to directories only.  The default is
the umask of the
              current process.  The value is given in octal.

       fmask=value
              Set  the  umask applied to regular files only.  The
default is the umask of
              the current process.  The value is given in octal.


So, what I would do is as follows.  In your /etc/fstab where you define
the file system to be mounted, put the following.

/dev/device /mnt/point default,gid=users 0 0

Of course you should fill in the relevant details.  The big one is
gid=users.  I would use 'users' if you trust all persons having an
account on your system.  Otherwise create a 'winshare' group and add the
people who are supposed to be able to access it to that group.  After
that remount the partition and everything should just work.  If not you
may need to use the umask option. 






More information about the ubuntu-users mailing list