I am having difficulty getting my logon scripts to started when I logon. My clients are Windows95, server is RedHat Linux 4.2, Samba 1.9.17alpha5. This is my smb.conf file: ; ******************************************************************* ; * ; * Samba config file for ; * Quinn P. Coldiron ; * ; ******************************************************************* ; ******************************************************************* ; *********************** Global server settings ******************** ; ******************************************************************* [global] workgroup = UNP comment = University of Nebraska Press Linux Server ; By setting security to user, the users must have a valid account ; on this Linux server. Other option is share, which is like ; Windows for Workgroups share level password protection. security = user ; These are the settings to make Linux become the PDC (Primary ; Domain Controller) for our network. domain master = yes preferred master = yes domain logons = yes wins support = yes ; Network logon scripts logon script = %u.bat ; logon path = \\%L\Profiles\%U ; ******************************************************************* ; *********************** Shared volume settings ******************** ; ******************************************************************* ; This is the netlogn share for domain logons [netlogon] comment = Samba Network Logon Service path = /usr/local/samba/lib/netlogon ; Case sensitivity breaks the logon script!!!! case sensitive = no comment = Samba Network Logon Service path = /usr/local/samba/lib/netlogon ; Case sensitivity breaks the logon script!!!! case sensitive = no guest ok = yes locking = no writeable = no browseable = yes ; ******************************************************************* ; ********************** Network user shares ************************ ; ******************************************************************* [homes] guest ok = no read only = no writeable = yes [userdata] comment = All user data that you have access to. path = /home writeable = yes printable = no Quinn P. Coldiron Information Systems Manager University of Nebraska Press quinn@up-intrepid.unl.edu
On Sat, 9 Aug 1997, Quinn P. Coldiron wrote:> I am having difficulty getting my logon scripts to started when I logon. My > clients are Windows95, server is RedHat Linux 4.2, Samba 1.9.17alpha5.read the DOMAIN.txt file.> This is my smb.conf file: > > ; ******************************************************************* > ; * > ; * Samba config file for > ; * Quinn P. Coldiron > ; * > ; ******************************************************************* > > ; ******************************************************************* > ; *********************** Global server settings ******************** > ; ******************************************************************* > > [global] > > workgroup = UNP > comment = University of Nebraska Press Linux Server > > ; By setting security to user, the users must have a valid account > ; on this Linux server. Other option is share, which is like > ; Windows for Workgroups share level password protection. > > security = user > > ; These are the settings to make Linux become the PDC (Primary > ; Domain Controller) for our network. > > domain master = yes > preferred master = yes > domain logons = yes > wins support = yeslooks ok.> ; Network logon scripts > logon script = %u.bat > ; logon path = \\%L\Profiles\%Uwhere's your Profiles share in this smb.conf file? i suggest that you do logon path = \\%L\%U\Profiles> ; ******************************************************************* > ; *********************** Shared volume settings ******************** > ; ******************************************************************* > > ; This is the netlogn share for domain logons > [netlogon] > comment = Samba Network Logon Service > path = /usr/local/samba/lib/netlogon > ; Case sensitivity breaks the logon script!!!! > case sensitive = nodoes it??? oh dear!> comment = Samba Network Logon Service > path = /usr/local/samba/lib/netlogon > ; Case sensitivity breaks the logon script!!!! > case sensitive = no > guest ok = yesno, don't have guest ok = yes for the netlogon share.> locking = no > writeable = nogood.> browseable = yeslooks fine, to me.> ; ******************************************************************* > ; ********************** Network user shares ************************ > ; ******************************************************************* > > [homes] > guest ok = no> read only = no > writeable = yesthese two do the same thing. why do you have both? ok, not a lot i can find at fault with your smb.conf file. read the DOMAINS.txt file for w95 configuration issues. luke
> It's not currently in there so I'll try to do it myself. (1.9.17p4 using > variables %U and %G (not %L)). > > My C is not so good. But if I can get it in and working well enough is > there a place I should post it to for anyone who might want this sort of > function in their logon scripts? >I would love that. Great idea! If you need some help let me know. j- ________________________________________________________________________ Gerald ( Jerry ) Carter Engineering Network Services Auburn University jerry@eng.auburn.edu http://www.eng.auburn.edu/users/cartegw "...a hundred billion castaways looking for a home." - Sting "Message in a Bottle" ( 1979 ) ________________________________________________________________________
Well, I finally solved my problem of not being able to run executables on a Win95 client from a samba share. At the DOS prompt, I had to issue... C:> net use X: \\SAMBASERVER\SHARE and then go through My_Computer to the X: drive. Evidently the executables were looking for data files that were not in the path. If I add this to a logon script, setting up this (and others) drive would be automated. I know that I can setup a logon script for each user by adding... logon script = %U.bat into smb.conf, where user1.bat might contain the following... net use X: \\SAMBASERVER\user1 net use P: \\SAMBASERVER\public that would setup the two drives X and P. However, this would mean I need to create a logon script for each user. Since only the home share would change for each user (user1 in the example), is there a way to setup one logon script for everyone that would automatically factor in the user's particular home share? Thanks, Carey =====================================================================<> Carey F. Cox, PhD | PHONE: (409) 880-8770 <> <> Assistant Professor | FAX: (409) 880-8121 <> <> Dept. of Mech. Eng. | EMAIL: carey@tabasco.lamar.edu <> <> Lamar University | WEB: N/A <> ======================================================================
Hello Rainer, The problem is in file format. You must to convert in DOS format (ux2dos), or edit it in a Windows environment and then copy to unix. And try again ! ------------------------------------------ Fernando Lanner Cardoso Cia. Zaffari Com. & Ind. Analista de Suporte/Inform?tica lanner@zaffari.com.br Porto Alegre - R.S. - Brasil ------------------------------------------
I posted a question the other day about logon scripts and had no reply.... Do any of you use them? My question is, I have a logon script setup to run when the useres logon. When they logon, the script never runs. Its not a user specific script its, for all users. attached is my smb.conf file -------------- next part -------------- A non-text attachment was scrubbed... Name: smb.conf Type: application/x-unknown-content-type-conf_auto_file Size: 11030 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/19991216/b07f00ef/smb.bin
On Fri, 17 Dec 1999 08:22:29 +1100, hai scritto:>I posted a question the other day about logon scripts and had no >reply.... >Do any of you use them? My question is, I have a logon script setup to >run when the useres logon. When they logon, the script never runs. Its >not a user specific script its, for all users. attached is my smb.conf >filelogon script = /b/logon/gerry.bat [netlogon] path = /b/logon browseable = No you want to use logon script = gerry.bat Then, provided that all other stuff is ok (permission, cr+lf, etc etc) the client will execute it. -- giulioo@pobox.com
I'm running Samba2.2.1 on Mandrake 8.1 with Win95/98/Win2K clients. It is not necessary for Win2K clients to log on to the Domain to access the network which means that the logon scripts are not always run. When the clients access machines via the network it prompts for a username and password and you carry on working. Our Anti-Virus is updated on the client side using logon scripts. I've configured Samba so that the scripts run per user and machine but it still doesn't force a Win2k client to run the script. I have to implement it on the server to ensure all the clients run the scripts. Is there a way that I can force Win2K clients to run the scripts..?? \\\'/// \\ ~ ~ // ( @ @ ) .----oOOo-----(_)-------------. | Michael Erasmus | | Systems Administrator | | Barloworld Optimus | | South Africa | | MichaelE@execulink.co.za | | www.optimusinventory.co.uk | '---------------------oOOo----' |__|__| || || ooO Ooo
Hi, You can make sure that the logon scripts are run by making your Win2k boxes log on to the domain (it works for me). If you really do not want your Win2k boxes to log on to the domain you can also trigger the execution of the logon script from the Win2k box side. To do that, do the following: - Start mmc (Microsoft Management Console) - check to see if you have the Group Policy snap-in installed - If Group Policy snap-in is NOT installed: - - Click File menu -> select "add/remove snap-in" - - Click "add" button - - In the list of "available standalone snap-ins" select the "Group Policy" - - Click "Add" - - Since you want to apply the (to be) options to the local machine leave the "group policy object set to "Local Computer" - - Click "Finish" - - Click "Close" (unless you want to add more snap-ins) - - Click "OK" - Now open "Local Computer Policy" - Open "User Configuration" - Open "Windows Settings" - select "Scripts (logon/logoff)" - In the right pane double-click on "logon" - Now specify the script to be run for EVERY (!!!) user after logon to THIS (!) windows machine... You can select every script (local and remote) -> so you can also select your normal logon script on the \\your-pdc\netlogon share.... Don't forget to apply your new settings :-) I think this solves your problem...;-) Sincerely, Martijn Tigchelaar. -----Original Message----- From: Michael Erasmus [mailto:MichaelE@execulink.co.za] Sent: Thursday, March 07, 2002 12:10 To: samba@lists.samba.org Subject: [Samba] Logon Scripts I'm running Samba2.2.1 on Mandrake 8.1 with Win95/98/Win2K clients. It is not necessary for Win2K clients to log on to the Domain to access the network which means that the logon scripts are not always run. When the clients access machines via the network it prompts for a username and password and you carry on working. Our Anti-Virus is updated on the client side using logon scripts. I've configured Samba so that the scripts run per user and machine but it still doesn't force a Win2k client to run the script. I have to implement it on the server to ensure all the clients run the scripts. Is there a way that I can force Win2K clients to run the scripts..?? \\\'/// \\ ~ ~ // ( @ @ ) .----oOOo-----(_)-------------. | Michael Erasmus | | Systems Administrator | | Barloworld Optimus | | South Africa | | MichaelE@execulink.co.za | | www.optimusinventory.co.uk | '---------------------oOOo----' |__|__| || || ooO Ooo -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
> Message: 21 > From: "Michael Erasmus" <MichaelE@execulink.co.za> > To: <samba@lists.samba.org> > Date: Thu, 7 Mar 2002 13:09:32 +0200 > Organization: EXECuLINK > Subject: [Samba] Logon Scripts > > I'm running Samba2.2.1 on Mandrake 8.1 with Win95/98/Win2K clients.Mandrake has supplied samba-2.2.2-3.4mdk or so in updates for 8.1 (supporting win2ksp2 and winxp domain members), you probably want to ensure the other software on your machine is up-to-date also.> > It is not necessary for Win2K clients to log on to the Domain to access > the network which means that the logon scripts are not always run. When > the clients access machines via the network it prompts for a username > and password and you carry on working. >The login scripts won't be run unless the client in logging into the domain. Your users won't be prompted for passwords then either (if all your machines are domain members), and you don't need to worry about local accounts ...> Our Anti-Virus is updated on the client side using logon scripts. I've > configured Samba so that the scripts run per user and machine but it > still doesn't force a Win2k client to run the script. > > I have to implement it on the server to ensure all the clients run the > scripts. > Is there a way that I can force Win2K clients to run the scripts..??When clients log into the domain, using : logon script = <path to batch file> in your smb.conf file. where <path to batch file> is relative to your netlogon share. You may want to investigate using ntlogon (in Mandrake contribs) for generating scripts on the fly per-user, per-os, per-group etc. -- |----------------Registered Linux User #182071-----------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x202 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/gpg.key
Hi, You can make sure that the logon scripts are run by making your Win2k boxes log on to the domain (it works for me). If you really do not want your Win2k boxes to log on to the domain you can also trigger the execution of the logon script from the Win2k box side. To do that, do the following: - Start mmc (Microsoft Management Console) - check to see if you have the Group Policy snap-in installed - If Group Policy snap-in is NOT installed: - - Click File menu -> select "add/remove snap-in" - - Click "add" button - - In the list of "available standalone snap-ins" select the "Group Policy" - - Click "Add" - - Since you want to apply the (to be) options to the local machine leave the "group policy object set to "Local Computer" - - Click "Finish" - - Click "Close" (unless you want to add more snap-ins) - - Click "OK" - Now open "Local Computer Policy" - Open "User Configuration" - Open "Windows Settings" - select "Scripts (logon/logoff)" - In the right pane double-click on "logon" - Now specify the script to be run for EVERY (!!!) user after logon to THIS (!) windows machine... You can select every script (local and remote) -> so you can also select your normal logon script on the \\your-pdc\netlogon share.... Don't forget to apply your new settings :-) I think this solves your problem...;-) Sincerely, Martijn Tigchelaar. -----Original Message----- From: Michael Erasmus [mailto:MichaelE@execulink.co.za] Sent: Thursday, March 07, 2002 12:10 To: samba@lists.samba.org Subject: [Samba] Logon Scripts I'm running Samba2.2.1 on Mandrake 8.1 with Win95/98/Win2K clients. It is not necessary for Win2K clients to log on to the Domain to access the network which means that the logon scripts are not always run. When the clients access machines via the network it prompts for a username and password and you carry on working. Our Anti-Virus is updated on the client side using logon scripts. I've configured Samba so that the scripts run per user and machine but it still doesn't force a Win2k client to run the script. I have to implement it on the server to ensure all the clients run the scripts. Is there a way that I can force Win2K clients to run the scripts..?? \\\'/// \\ ~ ~ // ( @ @ ) .----oOOo-----(_)-------------. | Michael Erasmus | | Systems Administrator | | Barloworld Optimus | | South Africa | | MichaelE@execulink.co.za | | www.optimusinventory.co.uk | '---------------------oOOo----' |__|__| || || ooO Ooo -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
We are currently experiencing problems with the Logon script using LDAP. 1. Where do you place the logon scripts? 2. Do they need to be case sensitive? 3. How exactly does the scriptPath ldap attribute work? We are setting the scriptPath to serve the users logon script based on the section they are in. -- Arthur H. Johnson II Senior Systems Engineer The Linux Box 206 S. Fifth Ave. Suite 150 Ann Arbor, MI 48104 tel. 734-761-4689 fax. 734-769-8938 pgr. 734-882-0323
Hi All, I have a samba pdc that uses login scripts to apply several registry changes. I tried the config.pol and ntconfig.pol and didn't ever seem to find that they were reliably applied. Here is my question. I am able to apply serveral changes for HKEY_CURRENT_USER. HKEY_LOCAL_MACHINE keys seem to be discarded. Is there a different way to apply these? If I run the script from the dos prompt after being logged in, the changes are accepted so it appears the script is not the problem. Thanks in advance, David