Здесь описано как поправить конфиг самбы ClearOS 5.2 и хоть сейчас уже выпущен ClearOS 7.2 - для старых шлюзов, которые продолжают работать на протяжении нескольких лет без перезагрузок - это еще актуально.
samba.cfg
[global] # Disable link support wide links = No
#
General netbios name = bel workgroup = ENTERPRISE server
string = ClearOS Enterprise Edition
# Logging syslog = 0 log
level = 1 log file = /var/log/samba/%L-%m max log size = 0 utmp
= Yes
# Network bind interfaces only = yes interfaces = lo
eth2 smb ports = 139
# Printing printcap name =
/etc/printcap load printers = Yes
# Security settings security
= user guest account = guest #restrict anonymous = 2
#
WINS wins support = No wins server =
# PDC domain
logons = Yes add machine script = /usr/sbin/samba-add-machine "%u" logon
drive = U: logon script = logon.cmd logon path = logon home =
\\%L\%U
# Other preferred master = Yes domain master = Yes unix
password sync = Yes passwd program = /usr/sbin/userpasswd %u passwd
chat = *password:* %n\n *password:* %n\n *successfully.* username
map = /etc/samba/smbusers
# LDAP include =
/etc/samba/smb.ldap.conf
# Winbind include =
/etc/samba/smb.winbind.conf
#============================ Share
Definitions ==============================
include =
/etc/samba/flexshare.conf
[homes] comment = Home
Directories path = /home/%U valid users = %D\%S read
only = No browseable = No available = Yes
[printers]
comment = Print Spool path = /var/spool/samba printing =
cups cups options = raw use client driver = Yes
printable = Yes read only = No browseable = No
available = No
[print$] comment = Printer Drivers
path = /var/samba/drivers read only = No browseable = No
available = No
[netlogon] comment = Network Logon Service
path = /var/samba/netlogon read only = No locking = No
browseable = No available = Yes
[profiles] comment =
Profile Share path = /var/samba/profiles read only = No
profile acls = Yes browseable = No available = No
| flexshare.conf[sharedoc] path = /var/flexshare/shares/sharedoc
comment = browseable = Yes read only = No guest ok =
No directory mask = 775 create mask = 664 valid users
= @"%D\allusers" veto files = /.flexshare*/
recycle:repository = .trash/%U recycle:maxsize = 0
recycle:versions = Yes recycle:keeptree = Yes recycle:touch
= No recycle:directory_mode = 0775 audit:prefix = %u
audit:success = open opendir audit:failure = all
audit:facility = LOCAL5 audit:priority = NOTICE vfs object =
recycle:recycle full_audit:audit
заменить на:[sharedoc] path = /var/flexshare/shares/sharedoc
comment = browseable = Yes read only = No guest ok =
Yes directory mask = 777 create mask = 777 valid
users = @"%D\allusers" veto files = /.flexshare*/
recycle:repository = .trash/%U recycle:maxsize = 0
recycle:versions = Yes recycle:keeptree = Yes recycle:touch
= No recycle:directory_mode = 0775 audit:prefix = %u
audit:success = open opendir audit:failure = all
audit:facility = LOCAL5 audit:priority = NOTICE vfs object =
recycle:recycle full_audit:audit
|
|