mounting windows shares
Mitch Anderson
pluglist at plug.org
Wed May 28 23:52:53 MDT 2003
> I tried using the fmask of 664 and the dmask of 775 but it didn't work.
> So I changed the dmask to 777 and it worked. Is it going to be
> dangerous for me to have it set to 777?
No... it is windows your mounting to... setting to this value is forcing
you to write to the drive as the "everyone" and/or "guest" user on the
windows box(This is assuming you have NTFS... other wise..., since there
are no permissions on a fat filesystem... hence the 777 works and will
be the best option). If you have a group setup on the linux box as the
same name as the one on the windows box, add in gid=group and that
"should" work with the masks set to 664 and 775...
>
> Also, my fstab gets loaded before my computer brings up eth 0 so I have
> to manually do a mount -a to re-read my fstab once I've logged in to
> mount the windows share. What file could I put the command in to get it
> mounted automatically while booting but after eth 0 has been brought up?
>
> Thanks,
>
> Steve
>
>
>
> On Fri, 2003-05-23 at 16:24, Mitch Anderson wrote:
> > fmask is file mask... or the permissions to place on a file being
> > created, and dmask is directory mask.
> >
> > On Fri, 2003-05-23 at 11:12, Steve Roundy wrote:
> > > What exactly is "fmask" and "dmask"? Thanks for the help btw, I'll try
> > > this out...
> > >
> > >
> > > On Fri, 2003-05-23 at 10:51, Mitch Anderson wrote:
> > > > I believe both user and rw need to be in the options for the mount.
> > > >
> > > > //kb/html /mnt/www2 smbfs
> > > > user,owner,username=user,password=password,gid=apache,fmask=664,dmask=775,rw 0 0
> > > >
> > >
> > >
> > > .===================================.
> > > | This has been a P.L.U.G. mailing. |
> > > | Don't Fear the Penguin. |
> > > `==================================='
>
> .===================================.
> | This has been a P.L.U.G. mailing. |
> | Don't Fear the Penguin. |
> `==================================='
--
Mitch Anderson <mitcha at xmission.com>
More information about the PLUG
mailing list