Koozali.org: home of the SME Server

Multiple Login scripts

Simon Meelich

Multiple Login scripts
« on: November 10, 2002, 02:50:59 PM »
Hi folks,

Got some problems with good old Samba. Perhaps you can help me:

I'd like to have a general login script for every user. So far no problem. Is it possible to have an additional login script which can be assigend to groups? I tried to add the following to smb.conf:

login script = %G.bat
login script = netlogin.bat

but I can't get both scripts to work, either one is working or the other.

Does anyone have clue?

Thanks!!


Simon

Bob Todd

Re: Multiple Login scripts
« Reply #1 on: November 10, 2002, 02:57:19 PM »
hmm in NT I'd have assigned individual scripts to the groups then had a common script for everyone. Last line of the individual script would run the common script ie for test user group script would be

net use m: "\servername\test$"
net use n: "\servername\test2$"
common.bat

save that as test.bat and assign it as the logon script for all members of the test group.
Then have a common.bat file containing say

net use u: /home

Which would simply gave all users drive U as their home directory as defined in the user manager. I assume you could use similiar technique with Samba but I'm fairly new to all this linux stuff and still to look closely at Samba.

Ray Mitchell

Re: Multiple Login scripts
« Reply #2 on: November 10, 2002, 03:12:18 PM »
Simon
Do a search here, say on login scripts or netlogon.bat. I'm sure there were previous posts about this, perhaps earlier this year
Regards
Ray Mitchell

Terry Brummell

Re: Multiple Login scripts
« Reply #3 on: November 10, 2002, 06:10:52 PM »
Search for "Kixtart", select all dates.  There has been lots of talk about it in the past.  I use it here for 9X and NT/2K boxes and it works quite well.  It's been so long since I set it up I've forgotten how to do it though.

Terry

Jochen Hoegerl

Re: Multiple Login scripts
« Reply #4 on: November 10, 2002, 07:57:15 PM »
> hmm in NT I'd have assigned individual scripts to the groups then had
> a common script for everyone. Last line of the individual script would run
> the common script ie for test user group script would be
>
> net use m: "\servername\test$"
> net use n: "\servername\test2$"
> common.bat

If you use NT Server this could be done with just one login script and using

ifmember.exe from the resource kit.

jochen

Graham

Re: Multiple Login scripts
« Reply #5 on: November 11, 2002, 12:58:47 AM »
Got this off these very forums and a rake of stuff about login scripts.

I havent used it my self so cant verify.

I also think there is an add in which lets you choose the group ?
I think its one of Dan Van Ray's

~~~~~~~~~~~~~~~~~~~~~~~~~
ingrp32.exe works for NT/2000.
ifmember.exe works for 9x.

Put both utilities in netlogon volume and create a script based on the one here:
http://www.franken.de/users/lisa/horshack/winnt/loginwithoutkixtart.html

Graham


Simon Meelich

Re: Multiple Login scripts
« Reply #7 on: November 11, 2002, 01:52:36 AM »
Thanks for all the advices; I'll see what I can do with them :-)

simon