Se dau urmatoarele:
    -FreeBSD 5.3,
    -Samba 3.0.12,
Am reusit "manually creating machine trust accounts" de pe o statie cu XP SP2.
Crearea manuala a contului s-a facut prin:
#pw useradd -g workstation -c Win_XP -d /dev/null -s /bin/false -n netbios_pc$
#smbpasswd -a -m netbios_pc
Doresc acum acelasi lucru dar "on-the-fly".
Nu reusesc insa, mesajul pe care il primesc (pe statia windows) este "The following error occured attempting to join the domani. The user name could not be found".
Configuratie pt smb.conf arata astfel:

=========BEGIN=====================

# Global parameters
[global]
 ;basic server settings
 workgroup = orizont
 netbios name = freebsdsv
 server string = FreeBSD Samba PDC  running %v
 socket options = IPTOS_LOWDELAY TCP_NODELAY
 
 ;PDC and master browser settings
 os level = 64
 preferred master = Yes
 local master = Yes
 domain master = Yes
 domain logons = Yes
 
 ;security and logging settings
 security = user
 encrypt passwords = Yes
 log file = /var/log/%m.log
 log level = 5
 max log size = 100
 hosts allow = 127.0.0.1 192.168.0.
 
 ;user profiles and home directory
 logon home = \\%L\%U\.profile
 logon drive = H:
 logon path = \\%L\profiles\%U
 logon script = common.bat
 
 ;sync UNIX passwords
 unix password sync = Yes
 passwd program = /usr/bin/passwd %u
 smb passwd file = /usr/local/private/smbpasswd
 passdb backend = tdbsam
 passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *Enter*new*UNIX*password* %n\n *Retype*new*UNIX*password*  %n\n *passwd:*all*authentication*tokens*updated*successfully*
 add user script = /usr/sbin/useradd -g workstation -d /dev/null -s /bin/false -M %u

 ;others
 interfaces = 192.168.0.1/24
 ;min passwd length = 5
 obey pam restrictions = Yes
 pam password change = Yes
 password level = 5
 username level = 5
 name resolve order = host lmhosts wins bcast
 time server = Yes
 keepalive = 600
 ;domain admin group = @wheel
 wins support = Yes
 wins hook = add freebsdsv
 guest account = nobody
 admin users = root @wheel
 ;mangle case = Yes
 
 ;printing
 printcap name = /etc/printcap
 print command = lpr -r -P%p %s
 lpq command = lpq -P%p
 lprm command = lprm -P%p %j
 lppause command =
 lpresume command =
 use client driver = No
 show add printer wizard = Yes
 load printers = Yes
 printing = lprng
 
# ========Shares========
[homes]
 comment = Home Directories
 writeable = Yes
 create mask = 0775
 directory mask = 0775
 browseable = No

[netlogon]
 comment = Network Logon Service
 path = /usr/local/samba/lib/netlogon
 read > browseable = Yes
 write list = @wheel
 create mask = 0644
 directory mask = 0755

[profiles]
 path = /usr/local/samba/profiles
 writeable = Yes
 create mask = 0600
 directory mask = 0700
 profile acls = Yes
 browseable = No
 csc policy = disable

[printers]
 comment = All Printers from /etc/printcap
 path = /var/spool/samba
 printable = Yes
 writeable = No
 browseable = No

[tmp]
 comment = Temporary file space
 path = /tmp
 read > guest ok = Yes

[public]
 comment = Public Stuff
 path = /usr/local/samba/public
 read > guest ok = Yes
 browseable = Yes

[cdrom]
 comment = Freebsdsv CD-ROM
 path = /cdrom
======================END=======================

Ce ma intriga:
-in documentatii gasesc:
"add user script = /usr/sbin/useradd -g workstation -d /dev/null -s /bin/false -M %u",
sau
"add user script = /usr/sbin/useradd -g workstation -d /dev/null -s /bin/false %u",
sau
"add machine script = /usr/sbin/useradd -g workstation -d /dev/null -s /bin/false -M %u".

Pt crearea contului manual am folosit "pw useradd", iar in sit de mai sus este dat ca ex peste tot "useradd". De ce?
Totusi care este varianta corecta sau optiunile necesare?
Care este situatia la voi? Cum procedati?

Cu stima!


_______________________________________________________________
Connex scaneaza automat toate mesajele impotriva virusilor folosind Trend Micro VirusWall.
Connex automatically scans all messages for viruses using Trend Micro VirusWall.
_______________________________________________________________
Nota: Este posibil ca produsul Trend Micro VirusWall sa nu detecteze toti virusii noi sau toate variantele lor. Va rugam sa luati in considerare ca exista un risc de fiecare data cind deschideti fisiere atasate si ca MobiFon nu este responsabila pentru orice prejudiciu cauzat de decizia dvs.
Disclaimer: It is possible that the Trend Micro VirusWall product may not be able to detect all new viruses and variants. Please be aware that there is a risk involved whenever opening e-mail attachments to your computer and that MobiFon is not responsible for any damages caused by your decision to do so.

Raspunde prin e-mail lui