[Samba] NETLOGON scripts will not execute
Hi there, i have a samba PDC with a mix of w2l and XP clients connecting. FOr some reason the network logon scripts will not execute. I have made sure they are dos format, and the permissions are correct. yet I can;t get it to work! Here is my samba.conf: [global] workgroup = IHPR server string = Samba Server log file = /var/log/samba/%m.log max log size = 50 time server = Yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 add machine script = /usr/sbin/useradd -d /dev/null -g samba-clients -s /sbin/nologin $ logon drive = H: domain logons = Yes os level = 65 preferred master = Yes domain master = Yes dns proxy = No wins support = Yes ldap ssl = no hosts allow = 142.103.158. cups options = raw printcap name = /etc/printcap load printers = yes logon script = %U.cmd ANy ideas as to what might keep this from happening? If I run the same commands from the dos prompt - it works fine. d -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NETLOGON scripts will not execute
On Thursday 28 July 2005 04:39 pm, lists wrote: Here is my samba.conf smb.conf? You don't show a netlogon share. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NETLOGON scripts will not execute
lists wrote: Hi there, i have a samba PDC with a mix of w2l and XP clients connecting. FOr some reason the network logon scripts will not execute. I have made sure they are dos format, and the permissions are correct. yet I can;t get it to work! Here is my samba.conf: [global] workgroup = IHPR server string = Samba Server log file = /var/log/samba/%m.log max log size = 50 time server = Yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 add machine script = /usr/sbin/useradd -d /dev/null -g samba-clients -s /sbin/nologin $ logon drive = H: domain logons = Yes os level = 65 preferred master = Yes domain master = Yes dns proxy = No wins support = Yes ldap ssl = no hosts allow = 142.103.158. cups options = raw printcap name = /etc/printcap load printers = yes logon script = %U.cmd ANy ideas as to what might keep this from happening? If I run the same commands from the dos prompt - it works fine. d Have you put the scripts in the correct place? I believe they should be in the home directory of the users by default. So for user BIGJOHN, you should have the file BIGJOHN.cmd inside the /home/BIGJOHN directory. Scott -- Scott Mayo Technology Coordinator Bloomfield Schools PH: 573-568-5669 FA: 573-568-4565 Pager: 800-264-2535 X2549 Duct tape is like the force, it has a light side and a dark side and it holds the universe together. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Netlogon scripts
Hi List, maybe i missed a hint on google, but i didnt find a answer to following question: is it possible to cascade the logon scripts...? for example: there is a standard script for all client-pcs called: netlogon.bat and in addition there is for some client-pcs a additional script called by the %m switch in smb.conf kind regards Arno -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Netlogon scripts
Arno Seidel wrote: maybe i missed a hint on google, but i didn´t find a answer to following question: is it possible to cascade the logon scripts...? for example: there is a standard script for all client-pc´s called: netlogon.bat and in addition there is for some client-pc´s a additional script called by the %m switch in smb.conf No, but you can 'roll your own' ... There are several techniques you can use : 1) Use pre-exec to run a server based script and generate a per-user (or per machine) logon script at each logon. You then have access to everything the host (Linux/Unix) system knows about the user/machine. 2) Use the basic batch file commands to test for various things and call other batch files as required - search the archives for ifmember.exe which is useful for this. You then have every machine/user use a common logon.bat and take runtime decisions on what to do. 3) Use a client side scripting environment such as Kixtart and write much more complex scripts. Simon -- Simon Hobson MA MIEE, Technology Specialist Colony Gift Corporation Limited Lindal in Furness, Ulverston, Cumbria, LA12 0LD Tel 01229 461100, Fax 01229 461101 Registered in England No. 1499611 Regd. Office : 100 New Bridge Street, London, EC4V 6JA. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Netlogon scripts
Hi Arno, if you have a default.bat for all clients you can do the cascade to groups users or machine in this file itself i.e. for the client machine itself echo %COMPUTERNAME% call %COMPUTERNAME%.bat Regards Arno Seidel schrieb: Hi List, maybe i missed a hint on google, but i didnt find a answer to following question: is it possible to cascade the logon scripts...? for example: there is a standard script for all client-pcs called: netlogon.bat and in addition there is for some client-pcs a additional script called by the %m switch in smb.conf kind regards Arno -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Netlogon scripts
Hi Simon, thanks... for that hints... arno Simon Hobson schrieb: Arno Seidel wrote: maybe i missed a hint on google, but i didn´t find a answer to following question: is it possible to cascade the logon scripts...? for example: there is a standard script for all client-pc´s called: netlogon.bat and in addition there is for some client-pc´s a additional script called by the %m switch in smb.conf No, but you can 'roll your own' ... There are several techniques you can use : 1) Use pre-exec to run a server based script and generate a per-user (or per machine) logon script at each logon. You then have access to everything the host (Linux/Unix) system knows about the user/machine. 2) Use the basic batch file commands to test for various things and call other batch files as required - search the archives for ifmember.exe which is useful for this. You then have every machine/user use a common logon.bat and take runtime decisions on what to do. 3) Use a client side scripting environment such as Kixtart and write much more complex scripts. Simon -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Netlogon scripts
Hi Robert, thanks a lot for that this is what i searched. Arno Robert Schetterer schrieb: Hi Arno, if you have a default.bat for all clients you can do the cascade to groups users or machine in this file itself i.e. for the client machine itself echo %COMPUTERNAME% call %COMPUTERNAME%.bat Regards Arno Seidel schrieb: Hi List, maybe i missed a hint on google, but i didnt find a answer to following question: is it possible to cascade the logon scripts...? for example: there is a standard script for all client-pcs called: netlogon.bat and in addition there is for some client-pcs a additional script called by the %m switch in smb.conf kind regards Arno -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] netlogon scripts for machines / groups - possible?
Hello, I use Samba 3 as a PDC. When a user logs in, a user-specific script is executed for him/her, as stated in smb.conf: logon script = %U.bat This is handy when it comes to do some minor tweaks, but can become pain when one have to do bigger changes. Is it possible to execute also a machine script (for installing software etc.), and group script (users belonging to a certain group should have specific settings applied)? I was thinking of something like: logon script = %U.bat - now it's executed for a user machine logon script = %m.bat group logon script = %g.bat etc. Tomek -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] netlogon scripts for machines / groups - possible?
Tomasz Chmielewski wrote: Is it possible to execute also a machine script (for installing software etc.), and group script (users belonging to a certain group should have specific settings applied)? I was thinking of something like: logon script = %U.bat - now it's executed for a user machine logon script = %m.bat group logon script = %g.bat Hmmm. I don't know of any specific mechanisim to do this, but you might be able to do some of it with just the batch files. For example, in your %U.bat you could call another batch file with %COMPUTERNAME%.bat. I'm not sure how to solve the group problem, though. I'm not aware of a mechanisim to retrieve the users group from the command line. You may be able to do this by using visual basic logon scripts, but that's beyond my capabilities, sorry. HTH, --J(K) -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] netlogon scripts for machines / groups - possible?
Is it possible to execute also a machine script (for installing software etc.), and group script (users belonging to a certain group should have specific settings applied)? You can dynamically generate the script on the server if you're crafty with the prelogon parameters. I attach one to the profile share (since the client hits that before netlogon) and generate the script based on the user's group membership as returned by the groups username command on the server side. You can find my posting on it in the archives. The machine part could probably be done as well under my setup, since all you're doing is passing parameters to a perl script. Actually installing software could be a little dicey however, since you have to worry about user permissions and such, but you can always check if the user has admin privileges with ifmember or something similar. And then there's 3rd party tools, which I won't comment on out of ignorance on their operation. -- -- Paul GiengerOffice: 701-281-1884 Applied Engineering Inc. Systems Architect Fax:701-281-1322 URL: www.ae-solutions.com mailto: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] netlogon scripts for machines / groups - possible?
On Thursday 04 November 2004 10:57, Jason Balicki wrote: I'm not sure how to solve the group problem, though. I'm not aware of a mechanisim to retrieve the users group from the command line. You may be able to do this by using visual basic logon scripts, but that's beyond my capabilities, sorry. IFMEMBER.EXE from the Windows resource kit can do this. Easier and more flexible is the Kixtart scripting language. Find this at http://www.kixtart.org. I learned it in about 2 hours, basically. Misty HTH, --J(K) -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] netlogon scripts for machines / groups - possible?
Tomasz Chmielewski schrieb: Hello, I use Samba 3 as a PDC. When a user logs in, a user-specific script is executed for him/her, as stated in smb.conf: logon script = %U.bat This is handy when it comes to do some minor tweaks, but can become pain when one have to do bigger changes. Is it possible to execute also a machine script (for installing software etc.), and group script (users belonging to a certain group should have specific settings applied)? I was thinking of something like: logon script = %U.bat - now it's executed for a user machine logon script = %m.bat group logon script = %g.bat etc. Tomek hi, you can user ifmember.exe with a default.bat for groups, and parse the host name in default bat to to do other stuff this runs very nice and will give you the features you desire Regards -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] netlogon scripts
Spike Burkhardt schrieb: All, If I want to specify a logon script, does security need to be set to Domain? The issue is that we have authentication at the PDC/BDC so that our VPN users can map drives on their home PC's. Is there a different way to do a logon script other than setting the SECURITY = DOMAIN? I am running 2.2.8a (planning on 2.2.12) on Solaris 8. Thanks for your help. spike Hi, dint plan on version 2.2.8a use samba version tree 3, if samba is pdc security = user is right study samba faqs Regards -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] netlogon scripts
All, If I want to specify a logon script, does security need to be set to Domain? The issue is that we have authentication at the PDC/BDC so that our VPN users can map drives on their home PC's. Is there a different way to do a logon script other than setting the SECURITY = DOMAIN? I am running 2.2.8a (planning on 2.2.12) on Solaris 8. Thanks for your help. spike -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] netlogon scripts
way to do a logon script other than setting the SECURITY = DOMAIN? Actually you don't set domain to run login scripts at all. Rather, set your the following parameters like so along with whatever else you have:: [global] security = user logon script = something.bat logon path = \\%N\profiles\%u logon drive = H: logon home = \\%N\%u domain logons = Yes preferred master = Yes domain master = Yes [netlogon] path = /some/dir browseable = No Anything I've left out is either default or not important to the question at hand (or at least I think it isn't) -- Paul Gienger Office: 701-281-1884 Applied Engineering Inc. Information Systems Consultant Fax:701-281-1322 URL: www.ae-solutions.commailto: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba