Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I'm a complete newbie but i need some help.
I have a Debian file server (i have already installed samba) and i want to connect windows clients to it no problem i hear you cry!!! But i want to generate a login script for all users so they get a drives mapped to them when they login on the clients boxes. What would be an example of an login script, in which directory would i have to write the login script. I need help.Thanks, Kieren

Hi,
the login-script you are talking about is a
windows problem, isn't it? Mapping a drive
on windows is possible by rightclicking on the
network folder and select "Network drive" (or
something like that). Choose an drive letter
and mark the "reconnect after reboot" (again -
something like that message, It's been a while
ago since I did that ;-)Good luck,
Solo

put the logon-script to whatever you defined in your smb.conf, eg
in the [global] section of your smb.conf, define the name of your logon-script, eg
[global]
logon script = logon.batthen, in the [netlogon] section of your smb.conf, define the path to your logon script, eg.
[netlogon]
path = /usr/local/samba/netlogons/%U/%U will automagically been replaced by the Username of the logged in person.
if you got a user with an account name like
mh
the login script will be
/usr/local/samba/netlogons/mh/logon.bati hope that helps

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |