Computing.Net > Forums > Linux > Samba - login script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Samba - login script

Reply to Message Icon

Name: Monkfish
Date: April 17, 2002 at 07:37:11 Pacific
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: Solo
Date: April 17, 2002 at 16:29:50 Pacific
Reply:

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


0

Response Number 2
Name: bunduk
Date: April 18, 2002 at 07:39:47 Pacific
Reply:

did u manage to login to samba domain?


0

Response Number 3
Name: Mordred
Date: April 24, 2002 at 03:26:24 Pacific
Reply:

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.bat

then, 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.bat

i hope that helps


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Samba - login script

Linux login scripts www.computing.net/answers/linux/linux-login-scripts/22586.html

Novell Login Script - map Linux server www.computing.net/answers/linux/novell-login-script-map-linux-server/4197.html

Writing a login script in unix www.computing.net/answers/linux/writing-a-login-script-in-unix/18953.html