Hello, I am having a little problem with executing logon scripts on Win95 clients, logging into Samba Netlogon service. When a user logges in, a MS-DOS prompt shows up and quicky disappears. Then I get "Please Wait While your logon script executes". It hangs at that point. A user has to hit cancel to start his win95 session. I have done the logon script in MS-DOS editor. I have the identical copy of the batch file on the Win95 machine. If, I run the logon.bat script in ms-dos prompt manually, it all executes successfully. My [netlogon] share looks like: [netlogon] comment = Samba Network Logon Service path = /usr/local/samba/netlogon browseable = no guest ok = no writeable = no In [global] I have: domain logons = yes logon script = LOGON.BAT therefor, the complete path of the LOGON.BAT is: /usr/local/samba/netlogon/LOGON.BAT The permission is: -rwxr-xr-x 1 root wheel 340 Feb 1 17:16 /usr/local/samba/netlogon/LOGON.BAT I am using Samba Version 1.9.18p2. Thanks in advance, Richard Furda rfurda@wgss.net
> I am having a little problem with executing logon scripts on Win95 clients, > logging into Samba Netlogon service.[stuff deleted]> My [netlogon] share looks like: > > [netlogon] > comment = Samba Network Logon Service > path = /usr/local/samba/netlogon > browseable = no > guest ok = no > writeable = noI suspect your problem is the 'browseable' setting. Try setting 'browseable = yes' and see if it works. I believe the Windows 95 logon script code checks to see if the share is accessible by trying to browse it, rather than trying to access it. -john. ...................................................................... . . .....John.D.Blair... mailto:jdblair@uab.edu phoneto:205.975.7123 . . frodo.tucc.uab.edu faxto:205.975.7129 . ..sys|net.admin.... . . the university computer center ..... ..... g.e.e.k.n.i.k...the.university.of.alabama.at.birmingham....
On Tue, 3 Feb 1998 samba@samba.anu.edu.au wrote:> [stuff deleted] > > > My [netlogon] share looks like: > > > > [netlogon] > > comment = Samba Network Logon Service > > path = /usr/local/samba/netlogon > > browseable = no > > guest ok = no > > writeable = no > > I suspect your problem is the 'browseable' setting. Try setting > 'browseable = yes' and see if it works. I believe the Windows 95 logon > script code checks to see if the share is accessible by trying to browse > it, rather than trying to access it. >I have a logon script declared for a domain of Win95. Here is my declaration for netlogon : [netlogon] comment = Samba Network Logon Service path = /home/netlogon case sensitive = no guest ok = yes locking = no write list = [snip snip] admin users = [snip snip] browseable = no note the two differences : case sensitive = no => I think you have to put this to ensure case sensiticity is not on. It may be your problem, because your login script name is upper case : LOGON.BAT parhaps you try to access it with a different case... locking = no => very usefull to permit the script to be accessible from more than one user at the same time. Perhaps it can do the trick of course, the need of those lines depends of your global settings, but try with those two lines... The browseable = no is not the problem : it is working for me so ... Hope this will help =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michel APPLAINCOURT | E-mail : michel.applaincourt@umh.ac.be Computer Sciences Assistant | Phone : 32 65 373498 Universite de Mons-Hainaut | Fax : 32 65 373318 [Sad...But True] =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Hi All (again), If there something special required to set up logon scripts under samba-1.9.18p2.? I don't seem to see anything even attempted to be executed when a user logs in. I created a netlogon resource like so: [netlogon] comment = Network Connection browseable = yes writeable = no path = /usr/local/samba/netlogon And I put a 'logon script = profile.bat' in the global section of the smb.conf file. profile.bat is rwxr--r-- and is owned by an id 'samba'. Profile.bat has a 'net time' in it as well as the execution of a local hard drive utility. Has anyone else got this to work? I've got Win95 and NT clients. Thanks in advance. Corey M. Wirun. ---------------------- "This, of course, is impossible..." - Hitchhiker's Guide to the Galaxy Corey M. Wirun, Senior Systems Engineer Comcept Canada (Calgary) cmwirun@comcept.com, cmwirun@cadvision.com ----------------------
> Hi All (again), > > If there something special required to set up logon scripts under > samba-1.9.18p2.? I don't seem to see anything even attempted > to be executed when a user logs in. > > I created a netlogon resource like so: > > [netlogon] > comment = Network Connection > browseable = yes > writeable = no > path = /usr/local/samba/netlogon > > And I put a 'logon script = profile.bat' in the global section of > the smb.conf file. profile.bat is rwxr--r-- and is owned by an id > 'samba'. >Do you have 'domain logons = yes' in the global section of smb.conf? If you need login scripts for NT clients you can either... - Place a batch file in the common startup group ( for All Users ). The samba server should accept guest access. For example here is the batch file on the local PC and login.bat is on a network share @echo off net use x: \\sambaguest\scripts /user:x x call x:\login.bat net use x: /d /yes and login.bat has whatever you want. OR.... - Get the BRANCH_NTDOM code via cvs and setup samba as an NT PDC :) j- -- ________________________________________________________________________ Gerald ( Jerry ) Carter Engineering Network Services Auburn University jerry@eng.auburn.edu eng.auburn.edu/users/cartegw "...a hundred billion castaways looking for a home." - Sting "Message in a Bottle" ( 1979 )
Hi, does the option 'logon script' requires anything special on the NT side to work? I've a logon script which keeps on getting ignored. I can't seem to find any error in the log files (not even with debug level 3). Does that file really needs to be relative to the netlogon path? If so, can it be on automounted directories? Does the file need to be executable or something? Any help would be appreciated. -- Franky Van Liedekerke, BSC System Support Webmaster Dep.: VA94 Tel.: 03/450 3277 mailto:liedekef@mcd.alcatel.be
Franky wrote :> does the option 'logon script' requires anything special on the NT > side to work? I've a logon script which keeps on getting ignored. > I can't seem to find any error in the log files (not even with debug > level 3). > Does that file really needs to be relative to the netlogon path? > If so, can it be on automounted directories? > Does the file need to be executable or something? > > Any help would be appreciated. > > -- > Franky Van Liedekerke, > BSC System Support > WebmasterIs your NT configured to use logon script? it is something to go with the registry (I don't know where to find it elsewhere in NT) In 95 it would be in : HKEY_LOCAL_MACHINE\Network\Logon\ProcessLoginScript (binary key) it should be set up to 01 your NT will search for a netlogon share and will try to find the file told by login script option in smb.conf. The file can be described by macro such as : %u.bat so it uses the name of the user, %m.bat so it uses the name of the machine (netbios name) connecting, ... Of course the file should be such that clients have execution rights (samba don't overwrite unix rights). hope this will help =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michel APPLAINCOURT | E-mail : michel.applaincourt@umh.ac.be Computer Sciences Assistant | Phone : 32 65 373498 Universite de Mons-Hainaut | Fax : 32 65 373318 [Sad...But True] =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
I volunteer at a school, where we recently installed Linux on a server, and we run SAMBA. I have a logon script, that makes use of the "net use" command in Windows to map the network drives when a user logs on. Here is what it looks like (from memory, I'm not at school now) net use h: \\SERVERNAME\**USERNAME** net use s: \\SERVERNAME\dropbox net use r: \\SERVERNAME\public_folder I can get the last two commands to work, but how can I get Windows to give me the username as a variable? I tried %U (which is the Linux variable), but what would I insert? Each user has their own home share that I want to map. Thank you! Paul in Minnesota
I believe the command you want to use is I believe the command you want to use is net use h: \\SERVERNAME\%USERNAME% The variable %username% is replaced by the user anem of the user logged in to the system. HTH Dan Smith Sr. System Analyst Pinnacle West Shared Services 623-393-5373 "If you can't get your work done in 24 hours a day, work nights" -----Original Message----- From: Paul Soulek [mailto:soulek@frontiernet.net] Sent: Friday, August 23, 2002 3:48 PM To: samba@lists.samba.org Subject: [Samba] Logon Script I volunteer at a school, where we recently installed Linux on a server, and we run SAMBA. I have a logon script, that makes use of the "net use" command in Windows to map the network drives when a user logs on. Here is what it looks like (from memory, I'm not at school now) net use h: \\SERVERNAME\**USERNAME** net use s: \\SERVERNAME\dropbox net use r: \\SERVERNAME\public_folder I can get the last two commands to work, but how can I get Windows to give me the username as a variable? I tried %U (which is the Linux variable), but what would I insert? Each user has their own home share that I want to map. Thank you! Paul in Minnesota -- To unsubscribe from this list go to the following URL and read the instructions: lists.samba.org/mailman/listinfo/samba
Create a share [netlogon] that your users only have read access to. The logon script = parameter will then be relative to the path designated in that share. For instance, if [netlogon] points to /usr/local/samba/netlogon and you have login script = %U.bat then /usr/local/samba/netlogon/fred.bat will be launched when the user fred authenticates. HTH Rick> I created script files for users and the machines to execute when the > machines connected or the users logged on to the server. I wasn't sure > where the files were suppose to go, so I put "logon script > <path>%U.bat" and "logon script = <path>%I.bat". Would that syntax work > and how do I test it? Do the files need to be executable? > > -- > Note: When you reply to this message, please include the mailing > list address and my email address in To: and/or Cc: with > any proper combination > > ********************************************************************* > Signed, > SoloCDM > -- > To unsubscribe from this list go to the following URL and read the > instructions: lists.samba.org/mailman/listinfo/samba