Re: [vox-tech] New Account Can't Access Windows Partition

2004-12-20 Thread Mark K. Kim
On Sun, 19 Dec 2004, Robert G. Scofield wrote:
[snip]
 Yes, thank you Bill.  Here's the Ken Bloom creation:

 /dev/hda1/mnt/windows vfat
 defaults,uid=1000,fmask=177,dmask=077

 Remember, I don't know what any of this means after the vfat entry.
[snip]

Change the stuff after vfat to:

  defaults,uid=1000,gid=win,fmask=117,dmask=007

(Add a gid entry, and modify fmask/dmask fields).  This will allow any
user in the group win to read/write to/from the /mnt/windows directory.
Explanation: The gid sets the group that /mnt/windows will be mounted
in; fmask sets the `chmod` of all the files within /mnt/windows; and the
dmask sets the `chmod` of all the directories within /mnt/windows.

But to do this, you first need to create a group named win:

  addgroup win

then add bob and research to that group:

  adduser bob win
  adduser research win

I think I got the syntaxes right.

You can't simply `chmod` /mnt/windows or anything underneath because VFAT
has no concept of permissions, at least not to the fine detail that UNIX
has.  And you can't `chmod` /mnt/windows before mounting the partition
because the mounting point permission takes on the permission of what is
mounted on it after the mounting.  So to resolve this problem, you can set
the permission of *all* the files and *all* the directories of a VFAT
partition as you mount it, which is what we did above.

Questions? -- mail vox!

-Mark


-- 
Mark K. Kim
AIM: markus kimius
Homepage: http://www.cbreak.org/
Xanga: http://www.xanga.com/vindaci
Friendster: http://www.friendster.com/user.php?uid=13046
PGP key fingerprint: 7324 BACA 53AD E504 A76E  5167 6822 94F0 F298 5DCE
PGP key available on the homepage
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech


Re: [vox-tech] New Account Can't Access Windows Partition

2004-12-20 Thread Robert G. Scofield
On Monday 20 December 2004 00:26, Mark K. Kim wrote:

Thanks to Bill, Swaine, and Mark.  I've got it working.  

There were only two hitches.

 Change the stuff after vfat to:

   defaults,uid=1000,gid=win,fmask=117,dmask=007

The first hitch is that fmask had to be set to 107.



   addgroup win

The second hitch was that my system did not recognize the addgroup command.  
It didn't even recognize the command when it was executed like this 
/sbin/addgroup

So I just went into SuSE's YAST.  All you do is create a new group and then 
put a check mark into the boxes next to the users you want to make part of 
the group.  So it was easy.

But the bottom line is that the win group now has read-write access to 
Windows.

So thanks again.

Bob
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech