LinuxForum.Fans
Тема

samba OpenSuse ошибка авторизации

Автор: vinner 4 сообщений 919 просмотров
#289654

Доброе утро. Прошу помощи в следующем вопросе. конфиг работает на других системах.

text
[global]
        workgroup = WORKGROUP
        netbios name = fileserver
        server string = File Server
        loglevel=3
        encrypt passwords = yes
        passdb backend = smbpasswd
       # security = share
        security = user
        hosts allow = 192.168.0.0/16
        hosts deny = all
        client lanman auth = yes

write raw = yes socket options = TCP_NODELAY IPTOS_LOWDELAY socket options = SO_KEEPALIVE

unix charset = UTF-8 dos charset = cp1251 store dos attributes = yes

local master = no time server = no

load printers = no printing = bsd printcap name = /dev/null disable spoolss = yes

[new] comment = vms backups path = /backups/new writable = no write list = xenbackup printable = no browsable = yes read only = no guest ok = no

Создал пользователя xenbackup системного и samba. Права на папку new(пробовал разные варианты -видно дело не в правах):

text
 drwxrwxrwx  2 xenbackup users  4096 Dec 10 10:12 new

Шара монтируется успешно. Но доступа к ней нет.

text
mount -t cifs //192.168.200.129/new /mnt/backups -o username=xenbackup,password=pass
ls: reading directory /mnt/backups/: Permission denied

В логах samba:

text
  call_trans2findfirst: dirtype = 17, maxentries = 150, close_after_first=0, close_if_end = 1 requires_resume_key = 1 level = 0x202, max_data_bytes = 16384
[2012/12/10 10:56:08.868790,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [*] [/backups/new]
[2012/12/10 10:56:08.868950,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: * reduced to /backups/new/*
[2012/12/10 10:56:08.869096,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [.] [/backups/new]
[2012/12/10 10:56:08.869235,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: . reduced to /backups/new
[2012/12/10 10:56:08.869414,  3] smbd/error.c:81(error_packet_set)
  error packet at smbd/trans2.c(2440) cmd=50 (SMBtrans2) NT_STATUS_ACCESS_DENIED

Firewall selinux выключены

#289888

Покажите ls -l /mnt/

#289895
CyberDaemon написал:

Покажите ls -l /mnt/
text
drwxrwxrwx  6 root root    0 Dec 11 09:55 backups
#289976

Убил 2 дня. В итоге виноват был xNovell AppArmor. yast2-xNovell AppArmor - AppArmor Control Panel - Configure Profile Modes-usr.sbin.nmbd xcomplain - usr.sbin.smbd xcomplain

Войдите или зарегистрируйтесь, чтобы ответить.