Michael Lueck
2004-Jul-07 20:41 UTC
[Samba] Setting home path to a dir within a users Linux home dir
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.
Paul Gienger
2004-Jul-07 20:48 UTC
[Samba] Setting home path to a dir within a users Linux home dir
How about if you come at it from this angle: Most settings files on linux/unix are .something. You could use the 'hide dotfiles' directive to not show the user those. Also, you could use the other hide files settings to get rid of the rest of the data. Michael Lueck 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? >-- Paul Gienger Office: 701-281-1884 Applied Engineering Inc. Cell: 701-306-6254 Information Systems Consultant Fax: 701-281-1322 URL: www.ae-solutions.com mailto:pgienger@ae-solutions.com
Dwight Tovey
2004-Jul-07 20:49 UTC
[Samba] Setting home path to a dir within a users Linux home
Michael Lueck said:> 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? >man smb.conf Read the section on "The Homes Section" Under '[homes]' in your smb.conf set path = %H/WinHome /dwight -- Dwight N. Tovey email: dwight@dtovey.net web: http://www.dtovey.net/~dwight ----------- I Suffer Occasional Delusions of Adequacy
Jason Boles
2004-Jul-07 20:51 UTC
[Samba] Setting home path to a dir within a users Linux home dir
>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@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 >