On Tue, 21 Sep 2004 15:27:50 -0600, Travis Bullock <tbullock@avmax.ca>
wrote:> Thanks for the tip.
>
> A couple more issues. How do I query samba to see which version it is
> running?
if you installed from RPM - rpm -qa | grep samba
if you installed from source - locate samba (then it should tell you a bunch)
I think you can also look at log.smdb or log.nmdb
and I am sure I made this the hardest possible - there is probably
someting liek smb --version
>
> Also I understand the concept of chmod to reset permisssions on linux
> folders but if I were to execute such a command to a folder I intend to
> share with a Windows Domain, how do I specify Windows users and groups in
> the chmod command when those users and groups aren't really established
> within linux but merely queried from the PDC?
man chgrp
man chown
one of the two (or both) you can chown user.group FILENAME
and it handles both changes
if you getent passwd or getent group , doesnt it show all your NT users?
I did winbind once (way back when) and I believe set up properly,
linux sees the groups/users
>
> Thanks dude.
>
> Travis
>
>
>
> -----Original Message-----
> From: Chris McKeever [mailto:techjedi@gmail.com]
> Sent: Tuesday, September 21, 2004 3:12 PM
> To: Travis Bullock
> Subject: Re: [Samba] Folder Permissions
>
> On Tue, 21 Sep 2004 15:09:29 -0600, Travis Bullock
<tbullock@avmax.ca>
> wrote:
> > Hi,
> >
> > I have Samba up and running as well as winbind. I have ran some tests
to
> > confirm that yes indeed winbind is able to query the Windows NT 4.0
PDC
> for
> > user/group/password information.
> >
> > However I am having difficulty understanding how to set shares up in
samba
> > so that I can apply permissions to them using my Windows user
information
> > rather than creating each user on samba with the same password as
windows
> > etc etc. I thought winbind was supposed to eliminate this requirement
and
> > because the winbind daemon is able to successfully query the PDC I am
> > surprised that it has not.
> >
> > When I try and access the share from a Windows client I get an
"Access
> > Denied" error.
> >
> > I have read through the Official HOW-TO but am still stumped on how to
> > properly apply permissions to a samba share.
>
> first you need to set the LINUX permissions - I typically either make
> it readable by everyone (and then control access by smb.conf) or I set
> it to the correct user a/o group
>
> then you can control who can get into the shares VIA smb.conf
>
> what are your linux permissions on the folder?
>
> NOTE: I am using 2.2.8a - so your mileage may vary
>
> >
> > Please help.
> >
> > Cheers,
> >
> > Travis
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions: http://lists.samba.org/mailman/listinfo/samba
> >
>
>