[Samba] Setting home path to a dir within a users Linux home dir

John H Terpstra jht at samba.org
Wed Jul 7 21:26:09 GMT 2004


Easy:

In your smb.conf the following will do the trick:


[homes]
        comment = Home Directories
        path = /home/users/%U/WinHome
        valid users = %S
        read only = No
        browseable = No

That is what I use on my network. Stops Windows user abuse from ever finding 
the root of their home directory.

- John T.

On Wednesday 07 July 2004 14:51, Jason Boles wrote:
> >From windows, you can map share sub-directories as drive letters.
>
> for example -
> \\server\username\WinHome gets mapped as H:\
>
> A lay user (the kind who would delete their linux configuration files)
> would not likely remap the drive letter to just \\server\username -
> though nothing prevents them, security-wise, from doing so.
>
> As for some other trick on the samba server, you'll have to wait for a
> reply from someone else on the list....
>
> -Jason
>
> On Wed, 07 Jul 2004 16:40:56 -0400, Michael Lueck
>
> <mlueck at lueckdatasystems.com> wrote:
> > Is there a trick to append an additional directory level onto the defauly
> > behavior of a [homes] share looking in /etc/passwd to find the users
> > Linux home dir? It would offer a bit of protection if Windows clients
> > ended up in say the WinHome directory within their Linux home directory
> > when logging in from Windows so they are not tempted to tamper with their
> > desktop settings files for Linux from Windows.
> >
> > Maybe there is a bit of magic someone knows, a variable to include or
> > something?
> >
> > --
> > Michael Lueck
> > Lueck Data Systems
> >
> > Remove the upper case letters NOSPAM to contact me directly.
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  http://lists.samba.org/mailman/listinfo/samba

-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
OpenLDAP by Example, ISBN: 0131488732
Other books in production.


More information about the samba mailing list