[Samba] append to path from login script?

Gary Dale garydale at torfree.net
Mon Aug 14 15:55:44 GMT 2006


B. Cook wrote:
> I'm wondering if there is a way to add a network share (either UNC or 
> mapped drive) to the path of a user when they login?
>
> for example have a directory \\smbserver\apps and put putty.exe in 
> there.. so that when I sit down at a machine I will always have putty 
> in the path..
>
> Is that possible?

The user's path is %path% in Windows. A command like:

SET path=%path%;\\smbserver\apps

should work.  Of course, if you have the share mapped to a drive letter, 
you should use that instead (shorter and gives an extra layer of 
redirection, in case you change the server).


More information about the samba mailing list