andersonmagildo
(usa Suse)
Enviado em 21/09/2011 - 15:04h
Caros amigos,
para que fosse possível logar máquinas windows 7 em meu servidor ldap/samba verifiquei que era necessário atualizar a versao do meu samba.
Após atualizar meu samba da versão 3.0.24 para o 3.6.0, o seguinte erro começou a ocorrer ao iniciar o samba:
# /etc/init.d/smb start
Starting Samba SMB daemon startproc: Usage:
startproc [-f] [+/-<prio>] [-s] [-u uid] [-g gid] [-v] [-l log_file|-q] /full/path/to/program done
# /etc/init.d/smb status
Checking for Samba SMB daemon unused
Uso o SUSE Linux Enterprise Server 10.1
abaixo a configuração do meu smb.conf:
[global]
#workgroup = CPNLINUX
workgroup = CPN
netbios name = CPN-S24
server string = Suse Linux
security = user
guest account = nobody
log file = /var/log/samba/%m.log
#log file = /var/log/samba/samba.log
#passdb backend = ldapsam:ldap://localhost smbpasswd
max log size = 500
debug level = 3
os level = 99
time server = yes
local master = Yes
domain master = Yes
preferred master = Yes
domain logons = Yes
admin users = administrador root
logon script = %U.bat
logon path = %Lprofiles%U
hosts allow = 10.1.48. 127. 192.168.10. 10.1.49.
wins support = No
dns proxy = no
ldap passwd sync = yes
ldap delete dn = Yes
passdb backend = ldapsam:ldap://127.0.0.1/
ldap admin dn = cn=administrador,dc=cpn,dc=mb
ldap suffix = dc=cpn,dc=mb
ldap group suffix = ou=group
ldap user suffix = ou=people
ldap machine suffix = ou=machines
ldap idmap suffix = ou=Idmap
idmap backend = ldap:ldap://127.0.0.1
idmap uid = 1000-15000
idmap gid = 1000-15000
template shell = /bin/false
winbind use default domain = no
;smb passwd file=/etc/samba/smbpasswd
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n *Retype*new*password* %n
;#*passwd:*all*authentication*tokens*updated*successfully*
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
add machine script = /sbin/yast /usr/share/YaST2/data/add_machine.ycp %m$
set primary group script = /usr/local/sbin/smbldap-usermod -g "%g" "%u"
dos charset = UTF-8
unix charset = UTF-8
wins server = 10.1.48.16
usershare max shares = 100
#level2 oplocks = no
#client lanman auth = YES
#ntlm auth = YES
#lanman auth = YES
#client ntlmv2 auth = YES
#Level0 oplocks = no
#ntlm auth = YES
#lanman auth = YES
#client ntlmv0 auth = YES
# [homes]
# comment = Diretório Home
# browseable = no
# writable = yes
# create mask = 0700
# directory mask = 0700
# force user = %U
# [profiles]
# path = /home/profiles
# browseable = no
# writeable = yes
# force user = %U
# valid users = %U @"Domain Admins"
[netlogon]
path = /home/netlogon
browseable = no
guest ok = no
writeable = no
share modes = no
read only = Yes
comment = Network Logon Service
write list = root
[printers]
comment = Impressoras
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
# [publico]
#
# comment = Área Publica
# path = /publico
# browseable = yes
# create mask = 0777
# directory mask = 0777
# guest ok = yes
# writable = yes
# force user = %U
## Share disabled by YaST
# [sistema]
#
# comment = Área do Sistema da Empresa
# path = /sistema
# browseable = yes
# create mode = 0777
# directory mask = 0777
# guest ok = yes
# writable = yes
# force user = %U
# create mask = 0777
# read only = No
[restore21]
inherit acls = Yes
path = /home/restore_usr_03non/
read only = No
[usuarios]
comment = TESTE DO USUARIOS S24
inherit acls = Yes
path = /home/restore_usr_03non/
read only = No