LINUX.ORG.RU
ФорумAdmin

Не работает recycle и audit а так же не опознаётся админ :(


0

0

Вообщем имеется такой конфиг самбы:

[global]
workgroup = COOLGRP
netbios name = COOL
interfaces = vmnet1, vmnet8
bind interfaces only = Yes
passdb backend = tdbsam
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*Password* %n\n *Re-enter*new*password*%n\n *Password*changed*
username map = /etc/samba/smbusers

guest account = guest
admin users = @wheel

unix password sync = Yes
log level = 1
syslog = 0
log file = /var/log/samba/%U.%m.log
max log size = 10000
smb ports = 139
name resolve order = wins bcast hosts
time server = Yes
printcap name = CUPS
show add printer wizard = Yes
add user script = /usr/sbin/useradd -m '%u'
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/usermod -G '%g' '%u'
add machine script = /usr/sbin/useradd -s /bin/false -d /tmp '%u'
shutdown script = /var/lib/samba/scripts/shutdown.sh
abort shutdown script = /sbin/shutdown -c
logon script = scripts\logon.bat
logon path = \\%L\profiles\%U
logon drive = X:
logon home = \\%L\%U
domain logons = Yes
preferred master = Yes
wins support = Yes
utmp = Yes
map acl inherit = Yes
printing = cups
cups options = Raw
veto files = /*.eml/*.nws/*.{*}/
veto oplock files = /*.doc/*.xls/*.mdb/

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

...

[recycle]
comment = Recycle
path = /home/domain/cool/recycle
writeable = yes
guest ok = yes
vfs object = recycle:recycle
recycle:repository = .deleted
recycle:keeptree = Yes
recycle:touch = Yes
recycle:versions = No
;vfs options = /etc/samba/recycle.conf
create mask = 0777
directory mask = 0777
force group = users
oplocks = no
level2 oplocks = no
blocking locks = no
locking = no
strict locking = no
share modes = no
veto oplock files = /*.mdb/*.ldb/*.mde/

[audit]
comment = Audited /data directory
path = /home/domain/cool/audit
vfs object = audit:audit
writeable = yes
browseable = yes

Проблеммы такие:
1. Не работает recycle, т.е. ничего не попадает в диру которая указана
для корзины.
2. Ничего не пишется в диру audit.
3. Когда захожу под юзером root, который является членом группы wheel
винда не считает его админом, это видно по тому что не могу изменять
системные настройки венды, к примеру имя машины (написано что это
может менять только админ компа)

В логах вот что:

samba # cat root.none-3z0va6yvwm.log
[2006/06/12 11:40:11, 1] smbd/service.c:make_connection_snum(693)
  none-3z0va6yvwm (192.168.147.128) connect to service profiles initially as user root (uid=0, gid=0) (pid 30609)
[2006/06/12 11:40:12, 1] smbd/service.c:close_cnum(885)
  none-3z0va6yvwm (192.168.147.128) closed connection to service profiles
[2006/06/12 11:40:12, 1] smbd/service.c:make_connection_snum(693)
  none-3z0va6yvwm (192.168.147.128) connect to service netlogon initially as user root (uid=0, gid=0) (pid 30609)
[2006/06/12 11:40:12, 1] smbd/service.c:make_connection_snum(693)
  none-3z0va6yvwm (192.168.147.128) connect to service root initially as user root (uid=0, gid=0) (pid 30609)
[2006/06/12 11:40:13, 1] smbd/service.c:make_connection_snum(693)
  none-3z0va6yvwm (192.168.147.128) connect to service netlogon initially as user root (uid=0, gid=0) (pid 30609)
[2006/06/12 11:41:48, 1] smbd/service.c:make_connection_snum(693)
  none-3z0va6yvwm (192.168.147.128) connect to service profiles initially as user root (uid=0, gid=0) (pid 30609)
[2006/06/12 11:41:48, 1] smbd/service.c:make_connection_snum(693)
  none-3z0va6yvwm (192.168.147.128) connect to service profiles initially as user root (uid=0, gid=0) (pid 30609)
[2006/06/12 11:41:52, 1] smbd/service.c:close_cnum(885)
  none-3z0va6yvwm (192.168.147.128) closed connection to service profiles
[2006/06/12 11:41:52, 1] smbd/service.c:close_cnum(885)
  none-3z0va6yvwm (192.168.147.128) closed connection to service recycle
[2006/06/12 11:41:52, 1] smbd/service.c:close_cnum(885)
  none-3z0va6yvwm (192.168.147.128) closed connection to service audit
[2006/06/12 11:41:52, 1] smbd/service.c:close_cnum(885)
  none-3z0va6yvwm (192.168.147.128) closed connection to service root
[2006/06/12 11:41:52, 1] smbd/service.c:close_cnum(885)
  none-3z0va6yvwm (192.168.147.128) closed connection to service netlogon
[2006/06/12 11:41:52, 1] smbd/service.c:close_cnum(885)
  none-3z0va6yvwm (192.168.147.128) closed connection to service profiles

samba # cat .none-3z0va6yvwm.log
[2006/06/12 11:38:21, 1] smbd/service.c:make_connection_snum(693)
  none-3z0va6yvwm (192.168.147.128) connect to service recycle initially as user alexandr (uid=0, gid=100) (pid 30609)
[2006/06/12 11:39:27, 1] smbd/service.c:make_connection_snum(693)
  none-3z0va6yvwm (192.168.147.128) connect to service audit initially as user alexandr (uid=0, gid=1000) (pid 30609)
[2006/06/12 11:39:55, 1] smbd/service.c:close_cnum(885)
  none-3z0va6yvwm (192.168.147.128) closed connection to service netlogon
[2006/06/12 11:39:58, 1] smbd/service.c:make_connection_snum(693)
  none-3z0va6yvwm (192.168.147.128) connect to service profiles initially as user alexandr (uid=0, gid=1000) (pid 30609)
[2006/06/12 11:40:02, 1] smbd/service.c:close_cnum(885)
  none-3z0va6yvwm (192.168.147.128) closed connection to service profiles
[2006/06/12 11:40:12, 1] smbd/service.c:close_cnum(885)
  none-3z0va6yvwm (192.168.147.128) closed connection to service netlogon
[2006/06/12 11:40:30, 1] smbd/service.c:close_cnum(885)
  none-3z0va6yvwm (192.168.147.128) closed connection to service recycle
[2006/06/12 11:40:58, 1] smbd/service.c:make_connection_snum(693)
  none-3z0va6yvwm (192.168.147.128) connect to service recycle initially as user root (uid=0, gid=100) (pid 30609)
[2006/06/12 11:41:00, 1] smbd/service.c:make_connection_snum(693)
  none-3z0va6yvwm (192.168.147.128) connect to service audit initially as user root (uid=0, gid=0) (pid 30609)
[2006/06/12 11:41:04, 1] smbd/service.c:close_cnum(885)
  none-3z0va6yvwm (192.168.147.128) closed connection to service audit
[2006/06/12 11:41:04, 1] smbd/service.c:close_cnum(885)
  none-3z0va6yvwm (192.168.147.128) closed connection to service alexandr
[2006/06/12 11:41:04, 1] smbd/service.c:close_cnum(885)
  none-3z0va6yvwm (192.168.147.128) closed connection to service profiles

Что не так?

Заранее спасибо!!!
★★★★★

Вопрос с корзиной отпадает, ошибку нашёл, терь всё работает :)))

Надо было в recycle:repository указать путь, типа

recycle:repository = /home/domain/cool/recycle/.deleted

Но другие два вопроса о аудите и админе остались!!! :((

cyclon ★★★★★
() автор топика
Ответ на: комментарий от cyclon

Вроде с аудитом тоже разобрался, кроме одного, как его заставить писать в указанный мной файл а не в syslog?

Остаётся вопрос про админа! :(

cyclon ★★★★★
() автор топика
Ответ на: комментарий от sdio

С этим я разобрался, правдо немного по другому. А что делать с админом?

cyclon ★★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.