« Отговор #4 -: Sep 19, 2006, 00:35 »
Пропуснах ако "гледаш" Smb от 98 трабва да имаш в секцията с share-рес
[IPC$]
path = /tmp
force user = root
force group = root
[homes]
comment = %u's Home Directories
valid users = %S
browseable = No
[printers]
comment = SMB Print Spool
path = /var/spool/samba
printable = Yes
browseable = No
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
locking = No
[profiles]
comment = Profile Share
path = /home/.%a/%U
profile acls = Yes
hide files = /desktop.ini/
98 търси задължително IPC$ и profiles (това и XP го иска), но в share модел за сигурност трабва само IPC$
Това е примере с ldap backet
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2006/07/11 16:17:32
[global]
unix charset = LOCALE
workgroup = CONDOR
server string = Condor samba server
interfaces = eth0, lo
bind interfaces only = Yes
security = DOMAIN
password server = kondor5
passdb backend = ldapsam:ldap://kondor5.condor.biz:389/
username map = /etc/samba/smbusers
log level = 10
syslog = 0
log file = /var/log/samba/%m
max log size = 50
smb ports = 139 445
name resolve order = wins bcast hosts
time server = Yes
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
printcap name = /etc/printcap
show add printer wizard = No
add user script = /usr/sbin/smbldap-useradd.pl -a -m '%u'
delete user script = /usr/sbin/smbldap-userdel.pl '%u'
add group script = /usr/sbin/smbldap-groupadd.pl -p '%g'
delete group script = /usr/sbin/smbldap-groupdel.pl '%g'
add user to group script = /usr/sbin/smbldap-groupmod.pl -m '%u' '%g'
delete user from group script = /usr/sbin/smbldap-groupmod.pl -x '%u' '%g'
set primary group script = /usr/sbin/smbldap-usermod.pl -g '%g' '%u'
add machine script = /usr/sbin/smbldap-useradd.pl -w '%m'
logon script = %m.bat
logon path = \\%N\.WinXP\%U
logon drive = Z:
logon home = \\%N\.Win95\%U
domain logons = Yes
os level = 65
domain master = Yes
wins proxy = Yes
wins support = Yes
ldap admin dn = cn=Manager,dc=condor,dc=biz
ldap group suffix = ou=Groups
ldap idmap suffix = ou=Idmap
ldap machine suffix = ou=Computers
ldap suffix = dc=condor,dc=biz
ldap ssl = no
ldap user suffix = ou=People
idmap backend = ldap:ldap://kondor5.condor.biz/
idmap uid = 10000-40000
idmap gid = 10000-40000
template shell = /bin/bash
winbind separator = /
winbind trusted domains only = Yes
admin users = "@Domain Admins"
read only = No
guest ok = Yes
map acl inherit = Yes
printing = cups
cups options = raw
print command = echo Print now to %p %s %U %J >> /var/tmp/print;lp -d '%p' %s -t '%J' -U '%U'; rm %s
lpq command = lpq -P %p
lprm command = /usr/bin/cancel '%p-%j'
lppause command = lp -i '%p-%j' -H hold
lpresume command = lp -i '%p-%j' -H resume
queuepause command = /usr/bin/disable '%p'
queueresume command = /usr/bin/enable '%p'
[IPC$]
path = /tmp
force user = root
force group = root
[homes]
comment = %u's Home Directories
valid users = %S
browseable = No
[printers]
comment = SMB Print Spool
path = /var/spool/samba
printable = Yes
browseable = No
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
locking = No
[profiles]
comment = Profile Share
path = /home/.%a/%U
profile acls = Yes
hide files = /desktop.ini/
[print$]
comment = Prinder Drivers
path = /var/lib/samba/drivers
write list = Administrator
[ftp]
comment = Ftp server data
path = /var/ftp/pub
force user = ftp
force group = ftp
create mask = 0775
directory mask = 0775