Author Topic: samba doesn't working  (Read 1212 times)

lucasbrescia

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
samba doesn't working
« on: May 14, 2010, 02:46:42 pm »
Helo.

I have a problem with samba/netlogon, my script to load netlogon doesnt run,  see my script:

net use Z: /delete
net use Z: \\SERVER_MTZ\apps

Did I make anything wrong ?

-rwxrwxrwx 1 root        root        54 2010-05-06 10:59 logon.bat

In log doesnt  have  nothing about error.

smb.conf

[global]
 workgroup = SERVER_MTZ
 netbios name = server_mtz
 server string = Servidor Samba
 enable privileges = yes
 interfaces = lo,eth0
 bind interfaces only = Yes
 passdb backend = ldapsam:ldapi://%2fvar%2frun%2fslapd%2fldapi
 ntlm auth = YES
 lanman auth = YES
 ldap ssl = Off
 log level = 2
 syslog = 0
 log file = /var/log/samba/%m
 max log size = 50
 vfs objects = full_audit
 full_audit:success = connect opendir open disconnect unlink mkdir rmdir rename
 full_audit:failure = none
 smb ports = 137 138 139 445
 name resolve order = wins bcast hosts
 time server = Yes
 printcap name = CUPS
 wins support = no
 dns proxy = Yes
 ldap suffix = dc=vito,dc=netsol,dc=local
 ldap machine suffix = ou=Computers
 ldap user suffix =  ou=Users
 ldap group suffix =  ou=Groups
 ldap idmap suffix = ou=Idmap
 ldap admin dn = cn=ebox,dc=vito,dc=netsol,dc=local
 map acl inherit = Yes
 printing = cups

 encrypt passwords = Yes
 obey pam restrictions = No
 ldap passwd sync = Yes
 mangling method = hash2

 logon script = logon.bat
 logon drive = Y:
 logon home =
 logon path =
 domain logons = Yes
 os level = 65
 preferred master = Yes
 domain master = Yes
 security = user
 add user script = /usr/sbin/smbldap-useradd -m "%u"
 ldap delete dn = Yes
 add machine script = /usr/sbin/smbldap-useradd -w "%u"
 add group script = /usr/sbin/smbldap-groupadd -p "%g"
 add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
 delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
 set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"


[netlogon]
 comment = The domain logon service
 path = /home/samba/netlogon
 public = yes domain logons = Yes
 os level = 65
 preferred master = Yes
 domain master = Yes
 security = user
 add user script = /usr/sbin/smbldap-useradd -m "%u"
 ldap delete dn = Yes
 add machine script = /usr/sbin/smbldap-useradd -w "%u"
 add group script = /usr/sbin/smbldap-groupadd -p "%g"
 add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
 delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
 set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"


[netlogon]
 comment = The domain logon service
 path = /home/samba/netlogon
 public = yes
 writeable = yes
 browsable = yes

JuanjoA

  • Zen Monk
  • **
  • Posts: 79
  • Karma: +0/-0
    • View Profile
Re: samba doesn't working
« Reply #1 on: May 14, 2010, 03:07:39 pm »
If you use  'net use ...'  from the client, work?

JuanjoA

lucasbrescia

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: samba doesn't working
« Reply #2 on: May 14, 2010, 03:52:44 pm »
yes, if i run " net use g: \\MTZ\apps"  it's work.

JuanjoA

  • Zen Monk
  • **
  • Posts: 79
  • Karma: +0/-0
    • View Profile
Re: samba doesn't working
« Reply #3 on: May 14, 2010, 08:46:53 pm »
some info about logs?

Juanjo A.

JuanjoA

  • Zen Monk
  • **
  • Posts: 79
  • Karma: +0/-0
    • View Profile
Re: samba doesn't working
« Reply #4 on: May 17, 2010, 09:16:14 pm »
Is the script in dos format?

Juanjo A.