[Samba] logon script problem
Hi, I've a problem with logon script parameter: client doesn't run this script and i've no error in samba logs. I'm using samba 3.0.24 (etch) with windows XP SP2 client side. workstation was joined in domain and user login (using roaming profiles) is executed without errors. I used unix2dos tool to transform the script in dos way and if I run the script in widows with double click, it is executed without errors. Anyone can help me? I searched a lot but I get no infos about this problem. Thanks in advance, Fabio riporto la parte di interesse di smb.conf: [global] logon home = \\%L\%U\.profiles logon script = backup.bat max protocol = NT1 delete user script = /usr/sbin/smbldap-userdel %u passwd chat = *new*password* %n\n *new*password* %n\n *successfully* add user script = /usr/sbin/smbldap-useradd -m %u add user to group script = /usr/sbin/smbldap-groupmod -m %u %g ldap group suffix = ou=Groups syslog = 1 passdb backend = ldapsam:ldap://127.0.0.1 ldap delete dn = Yes load printers = no create mask = 0770 domain logons = yes logon path = \\%L\profiles\%U netbios name = pdc-server server signing = Auto guest account = nobody directory mask = 0770 unix charset = ISO8859-1 preferred master = yes set primary group script = /usr/sbin/smbldap-usermod -g %g %u printcap name = cups smb ports = 139 445 passwd program = /usr/local/sbin/smbldap-passwd %u workgroup = Oikos enable privileges = yes encrypt passwords = yes delete group script = /usr/sbin/smbldap-groupdel %g ldap user suffix = ou=People ldap admin dn = cn=admin,dc=duet,dc=it name resolve order = wins bcast ldap passwd sync = Yes add group script = /usr/sbin/smbldap-groupadd -p %g delete user from group script = /usr/sbin/smbldap-groupmod -x %u %g ldap ssl = No max log size = 1000 unix password sync = no obey pam restrictions = no socket options = TCP_NODELAY panic action = /usr/share/samba/panic-action %d restrict anonymous = no add machine script = /usr/sbin/smbldap-useradd -w %u dns proxy = no server string = %h server (Samba %v) logon drive = H: os level = 34 invalid users = root ldap suffix = dc=duet,dc=it printing = cups wins support = no map to guest = Bad User ldap machine suffix = ou=Computers security = user domain master = yes log file = /var/log/samba/log.%m [profiles] browseable = yes store dos attributes = yes directory mask = 0700 guest ok = no printable = no path = /shares/profiles read only = no create mask = 0600 [netlogon] comment = Network Logon Service path = /shares/netlogon browseable = no guest ok = yes read only = yes path = /shares/netlogon valid users = %U -- Dott. Fabio Marcone 2T srl Telefono+39 - 0871- 540154 Fax +39 - 0871- 571594 Email fabio.marcone(AT)duet.it Indirizzo Viale B. Croce 573 66013 Chieti Scalo (CH) GNU/Linux registered user #400424 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] logon script problem
Hi! Rune Tønnesen wrote: hi Fabio Can you browse the netlogon share from the client? set browseable = yes set available = yes yes as root try from a windows client \\servername\netlogon file://\\servername\netlogon I can't log as root on clients Fabio -- Dott. Fabio Marcone 2T srl Telefono+39 - 0871- 540154 Fax +39 - 0871- 571594 Email fabio.marcone(AT)duet.it Indirizzo Viale B. Croce 573 66013 Chieti Scalo (CH) GNU/Linux registered user #400424 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Logon script problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/12/2007 03:00 AM, Christophe Raluy escreveu: Hello, I've changed my Samba Server 2.2.7a on a Mandrake 9.1 (2.4.21) for a Samba server 3.0.20-3.1 (with samba-vscan-clamav-3.0.20-3.1) on a Mandrake 2006 (2.6.12). I've always used for the samba clients (WXP pro) the logon scripts created by make_logon_script. In this script, I used to use the commands listed below: net use K: \\PDC\share route add network mask mask gateway Now the command 'net use' always works fine but the route command returns an error message like (i translate from french, sorry :-) Route add has failed: network access denied Does anybody knows this problem ? Any policies that could limit the privileges of your users? Thanks for reply Best regards Chris Kind regards, - -- Felipe Augusto van de Wiel [EMAIL PROTECTED] Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFFq5N4Cj65ZxU4gPQRAjsBAJwJ2h+zWB7X5TQDTzW8yTHS/UAgQwCfbQDr 5icgV2oeptlfcu5P9ntkS1Q= =BF7/ -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Logon script problem
Hello, I've changed my Samba Server 2.2.7a on a Mandrake 9.1 (2.4.21) for a Samba server 3.0.20-3.1 (with samba-vscan-clamav-3.0.20-3.1) on a Mandrake 2006 (2.6.12). I've always used for the samba clients (WXP pro) the logon scripts created by make_logon_script. In this script, I used to use the commands listed below: net use K: \\PDC\share route add network mask mask gateway Now the command 'net use' always works fine but the route command returns an error message like (i translate from french, sorry :-) Route add has failed: network access denied Does anybody knows this problem ? Thanks for reply Best regards Chris -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Logon script problem
Hi i ,sometimes got trouble with auto home mapping and solved this with a logon script for this usersgroup with this parameters loginscript @echo off echo %USERNAME% REM expands to the inlogging user net use x: \\bdc\%USERNAME% /persistent:no REM will make sure that the users home is mounted to x: Perhaps this is a way to solve your problem Regards Jason Lieurance schrieb: Hello, I'm running samba 3.02 on freebsd 4.7. Client systems are WinXP Pro Srv Pk 1. Anyway, the logon script has issues, I added a pause statement to view it. It says: There are open files and/or incomplete directory searches pending on the connection to Z: The command completed successfully. Z:\NET USE H: /HOME The current directory is invalid. END. Where did Z: come from??? I never modified any path statements in the environment varibles on the XP systems. I figured it was because the novell client was installed at one time on a few systems and it had to do with that but it does the same thing on a system with fresh install of WinXP PRO. The weird thing is that with the novell client on one of the systems, if you check workstation only and login with your domain UN PW, it logs with the login script just fine. Any help would be greatly appreciated. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Logon script problem
Hello, I'm running samba 3.02 on freebsd 4.7. Client systems are WinXP Pro Srv Pk 1. Anyway, the logon script has issues, I added a pause statement to view it. It says: There are open files and/or incomplete directory searches pending on the connection to Z: The command completed successfully. Z:\NET USE H: /HOME The current directory is invalid. END. Where did Z: come from??? I never modified any path statements in the environment varibles on the XP systems. I figured it was because the novell client was installed at one time on a few systems and it had to do with that but it does the same thing on a system with fresh install of WinXP PRO. The weird thing is that with the novell client on one of the systems, if you check workstation only and login with your domain UN PW, it logs with the login script just fine. Any help would be greatly appreciated. -- Jason -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Logon script problem
Hello, Thanks for the reply. Yes, I have a line like that. It's a path problem as there is no Z: drive, I believe it needs to be C: to execute. Logon.bat: NET TIME \\COMPAQ /SET /YES NET USE * /D /Y NET USE H: /HOME NET USE M: \\COMPAQ\DRIVERS NET USE P: \\COMPAQ\PROGRAMS NET USE T: \\COMPAQ\TEMP NET USE V: \\COMPAQ\VIPER PAUSE I don't know what to do next. -- Jason - Original Message - From: Jason Lieurance [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 3:57 PM Subject: [Samba] Logon script problem Hello, I'm running samba 3.02 on freebsd 4.7. Client systems are WinXP Pro Srv Pk 1. Anyway, the logon script has issues, I added a pause statement to view it. It says: There are open files and/or incomplete directory searches pending on the connection to Z: The command completed successfully. Z:\NET USE H: /HOME The current directory is invalid. END. Where did Z: come from??? I never modified any path statements in the environment varibles on the XP systems. I figured it was because the novell client was installed at one time on a few systems and it had to do with that but it does the same thing on a system with fresh install of WinXP PRO. The weird thing is that with the novell client on one of the systems, if you check workstation only and login with your domain UN PW, it logs with the login script just fine. Any help would be greatly appreciated. -- Jason -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Logon script problem
Original Message Subject: Re: [Samba] Logon script problem From: Jason Lieurance [EMAIL PROTECTED] Date: Wed, June 30, 2004 7:28 am To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Hello, Thanks for the reply. Yes, I have a line like that. It's a path problem as there is no Z: drive, I believe it needs to be C: to execute. When a user logs onto a domain member machine a drive connection is automatically set up to the NETLOGON share. The drive letter used is the last letter available (usually Z:). This connection is mostly dropped on completion of logon. Files can be executed off any drive mapping that is made. What makes you believe otherwise? Cheers, John T. Logon.bat: NET TIME \\COMPAQ /SET /YES NET USE * /D /Y NET USE H: /HOME NET USE M: \\COMPAQ\DRIVERS NET USE P: \\COMPAQ\PROGRAMS NET USE T: \\COMPAQ\TEMP NET USE V: \\COMPAQ\VIPER PAUSE I don't know what to do next. -- Jason - Original Message - From: Jason Lieurance [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 3:57 PM Subject: [Samba] Logon script problem Hello, I'm running samba 3.02 on freebsd 4.7. Client systems are WinXP Pro Srv Pk 1. Anyway, the logon script has issues, I added a pause statement to view it. It says: There are open files and/or incomplete directory searches pending on the connection to Z: The command completed successfully. Z:\NET USE H: /HOME The current directory is invalid. END. Where did Z: come from??? I never modified any path statements in the environment varibles on the XP systems. I figured it was because the novell client was installed at one time on a few systems and it had to do with that but it does the same thing on a system with fresh install of WinXP PRO. The weird thing is that with the novell client on one of the systems, if you check workstation only and login with your domain UN PW, it logs with the login script just fine. Any help would be greatly appreciated. -- Jason -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Logon script problem
John H Terpstra said: When a user logs onto a domain member machine a drive connection is automatically set up to the NETLOGON share. The drive letter used is the last letter available (usually Z:). This connection is mostly dropped on completion of logon. Files can be executed off any drive mapping that is made. What makes you believe otherwise? I understand that, but I don't know why it says: Z:\NET USE H: /HOME The current directory is invalid. to every 'net use' line. But with the novell client installed, it works fine. Like I said, this is on a fresh installed of WinXP Pro with SRV PK 1 with admin access on the clients. Now, if I load the novell client(the server the samba server will replace), the logon script will work fine when checking 'workstation only' and setting the domain tab to 'my domain' and putting in my UN PW for the domain in the client login box. Doesn't make sense and log doesn't help Hello, I'm running samba 3.02 on freebsd 4.7. Client systems are WinXP Pro Srv Pk 1. Anyway, the logon script has issues, I added a pause statement to view it. It says: There are open files and/or incomplete directory searches pending on the connection to Z: The command completed successfully. Z:\NET USE H: /HOME The current directory is invalid. END. Where did Z: come from??? I never modified any path statements in the environment varibles on the XP systems. I figured it was because the novell client was installed at one time on a few systems and it had to do with that but it does the same thing on a system with fresh install of WinXP PRO. The weird thing is that with the novell client on one of the systems, if you check workstation only and login with your domain UN PW, it logs with the login script just fine. Any help would be greatly appreciated. -- Jason -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Logon script problem
Hello, I'm running samba 3.02 on freebsd 4.7. Client systems are WinXP Pro Srv Pk 1. Anyway, the logon script has issues, I added a pause statement to view it. It says: There are open files and/or incomplete directory searches pending on the connection to Z: The command completed successfully. Z:\NET USE H: /HOME The current directory is invalid. END. Where did Z: come from??? I never modified any path statements in the environment varibles on the XP systems. I figured it was because the novell client was installed at one time on a few systems and it had to do with that but it does the same thing on a system with fresh install of WinXP PRO. The weird thing is that with the novell client on one of the systems, if you check workstation only and login with your domain UN PW, it logs with the login script just fine. Any help would be greatly appreciated. -- Jason -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba