Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Simon Meelich 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
-
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.
-
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
-
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
-
> 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
-
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
-
Google does it again !!!
http://gd.tuwien.ac.at/linux/e-smith/contrib/DanielvanRaay/SRPMS/
Mmm . . . wonder what they running :)))
http://uptime.netcraft.com/up/graph/?mode_u=off&mode_w=on&site=www.google.com&submit=Examine
-
Thanks for all the advices; I'll see what I can do with them :-)
simon