On Thursday 22 November 2007, dexter wrote:
> Mick pisze:
> > Thanks Stroller,
> >
> > On Thursday 22 November 2007, Stroller wrote:
> >> On 22 Nov 2007, at 08:43, Mick wrote:
> >>> ...
> >>
> >> My experience is that stuff like this is not completely-obvious-to-
> >> newcomers in Samba, and I wouldn't rely on it working just like you
> >> might expect.
> >
> > Hmm, I know what you mean!  :)
> >
> >> You might consider posting on the Samba mailing lists,
> >> which are quite busy.
> >
> > Thanks, I'll look into it.
> >
> >>> The Windows file manager still displays the
> >>> (Linux) user home directory and a file called printers.  Is there a
> >>> way of
> >>> removing these two items from the Windows client view?
> >>
> >> The easy way to do this is to remove the [homes] & [printers]
> >> sections of your smb.conf (NOT smb.cfg, on my system), but of course
> >> that also prevents access to them.
> >
> > Is there a way to do this selectively for different users?  Some cannot
> > be trusted to even look after their own linux home directories and
> > leaving them visible will give rise to unnecessary queries.
>
> I remember that there is an option to include selective config files
> based on conditions - it's been some time since my last samba
> installation (a complex one) but it looked something like this
>
> include /etc/samba/<hostname>.cfg
>
> It's just of the to of my head, but You should get the idea, in the
> example above, if a host with certain <hostname> was connecting to samba
> server, a specific file was included.
> Unfortunatelly I don't remeber exact syntax, and tons of other things -
> I just suggest looking in this direction

Thank you all, I have most of it working now.  Commenting out [homes] made the 
users' home directories disappear.  The funny thing is that although I have 
commented out [printers], it is still visible in Windows Explorer.
-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to