Olá todos,

Depois de não encontrar resposta me lugar nenhum, decidi pelo óbvio: recomeçar do zero, removi os pacotes do samba deletei o diretorio /etc/samba e reinstalei os rpms, magicamente o erro desapareceu. Reconfigurei o smb.conf do jeito que estava antes:
[global]
       workgroup = olimpo
       server string = Samba Server
       interfaces = 192.168.0.1/24
       printcap name = /etc/printcap
       load printers = yes
       printing = cups
       cups options = raw
       log file = /var/log/samba/%m.log
       max log size = 50
       security = user
       smb passwd file = /etc/samba/smbpasswd
       encrypt passwords = yes
       socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
       username map = /etc/samba/smbusers
       guest ok = yes
       dns proxy = no
       unix charset = UTF8

[homes]
       comment = Home Directories
       browseable = no
       writeable = yes

[printers]
       comment = All Printers
       path = /var/spool/samba
       browseable = yes
       guest ok = yes
       writeable = yes
       printable = yes

[public]
       path = /home/pub
       guest ok = yes
       guest only = yes
       writeable = yes
       printable = no

[hdtemp]
       path = /media/hdtemp
       comment = Drive de Troca
       writeable = yes
       create mask = 0765

[data]
       comment = Dados do Windows
       path = /media/data

Adcionei os usuários e agora quando eu abro na estação XP ele vê o meu computador, vê os diretórios compartilhados, mas não abre nenhum, nem meu próprio home, diz que //computador/diretório não está acessivel.

Os erros que aparecem aqui no dmesg agora são esses:
audit(1130671601.335:2): avc: denied { write } for pid=2908 comm="smbd" name="[12219]" dev=pipefs ino=12219 scontext=root:system_r:smbd_t tcontext=root:system_r:unconfined_t tclass=fifo_file audit(1130671601.391:3): avc: denied { write } for pid=2911 comm="nmbd" name="[12219]" dev=pipefs ino=12219 scontext=root:system_r:nmbd_t tcontext=root:system_r:unconfined_t tclass=fifo_file audit(1130671948.384:5): avc: denied { getattr } for pid=2997 comm="smbd" name="/" dev=hdb1 ino=1 scontext=root:system_r:smbd_t tcontext=system_u:object_r:dosfs_t tclass=dir audit(1130671952.772:6): avc: denied { search } for pid=2997 comm="smbd" name="/" dev=hda4 ino=2 scontext=root:system_r:smbd_t tcontext=system_u:object_r:home_root_t tclass=dir

O que aconteceu?

Continuo na luta, qualquer ajuda é bem-vinda!
Túlio Barros

--------------------------------
Tulio Miranda Barros wrote:

Olá Zago e os demais da lista

Minhas tentativas para inicializar o smbd foram as seguintes até agora:
0) ativar smb via ntsysv
Resposta: erro: /etc/rc.d/init.d/functions line 83 $nice $*

1) incluir em /etc/rc.d/rc.local
/etc/init.d/smb restart
Resposta: Duas linhas com =erro: /etc/rc.d/init.d/functions line 83 $nice $*

2) incluir em /etc/rc.d/rc.local
/etc/init.d/smb start
Resposta: Duas linhas com =erro: /etc/rc.d/init.d/functions line 83 $nice $*

3) incluir em /etc/rc.d/rc.local
/sbin/service smb restart
Resposta: Duas linhas com =erro: /etc/rc.d/init.d/functions line 83 $nice $*

4) incluir em /etc/rc.d/rc.local
/sbin/service smb start
Resposta: Duas linhas com =erro: /etc/rc.d/init.d/functions line 83 $nice $*

5) incluir em /etc/rc.d/rc.local
/sbin/chkconfig smbd on
Resposta: erro ao ler informação sobre o serviço smbd: Arquivo ou diretório não encontrado

6) incluir em /etc/rc.d/rc.local
/sbin/service smb start
Resposta: " "


Com o computador já ligado, usando o xterm:
# dmesg
audit(1130441087.692:2): avc: denied { write } for pid=2247 comm="smbd" name="secrets.tdb" dev=hda3 ino=1994901 scontext=system_u:system_r:smbd_t tcontext=root:object_r:samba_etc_t tclass=file audit(1130441087.744:3): avc: denied { write } for pid=2247 comm="smbd" name="secrets.tdb" dev=hda3 ino=1994901 scontext=system_u:system_r:smbd_t tcontext=root:object_r:samba_etc_t tclass=file audit(1130441087.820:4): avc: denied { write } for pid=2247 comm="smbd" name="secrets.tdb" dev=hda3 ino=1994901 scontext=system_u:system_r:smbd_t tcontext=root:object_r:samba_etc_t tclass=file audit(1130441092.088:5): avc: denied { write } for pid=2356 comm="smbd" name="secrets.tdb" dev=hda3 ino=1994901 scontext=system_u:system_r:smbd_t tcontext=root:object_r:samba_etc_t tclass=file audit(1130441092.092:6): avc: denied { write } for pid=2356 comm="smbd" name="secrets.tdb" dev=hda3 ino=1994901 scontext=system_u:system_r:smbd_t tcontext=root:object_r:samba_etc_t tclass=file audit(1130441092.092:7): avc: denied { write } for pid=2356 comm="smbd" name="secrets.tdb" dev=hda3 ino=1994901 scontext=system_u:system_r:smbd_t tcontext=root:object_r:samba_etc_t tclass=file

# /etc/init.d/smb status
smbd está parado
nmbd (pid 2251) está rodando...

# chkconfig --list |grep smb
smb 0:desligado 1:desligado 2:ligado 3:ligado 4:ligado 5:ligado 6:desligado

# /etc/init.d/smb start
Iniciando serviços SMB:                                    [  OK  ]
Iniciando serviços NMB:

# /etc/init.d/smb restart
Desligando os serviços SMB:                                [  OK  ]
Desligando os serviços NMB:                                [  OK  ]
Iniciando serviços SMB:                                    [  OK  ]
Iniciando serviços NMB:                                    [  OK  ]

# ls -lha /etc/samba/
total 76K
drwxr-xr-x   2 root root 4,0K Set  4 15:36 .
drwxr-xr-x  94 root root  12K Out 27 16:25 ..
-rw-r--r--   1 root root   20 Set  4 14:27 lmhosts
-rwxr-xr-x   1 root root 8,0K Set  4 14:27 secrets.tdb
-rw-r--r--   1 root root  11K Set  4 14:54 smb.conf
-rw-------   1 root root  317 Set  4 14:27 smbpasswd
-rw-r--r--   1 root root  149 Set  4 14:54 smbusers


A linha 83 do /etc/init.d/functions:
# A function to start a program.
daemon() {
      # Test syntax.
      local gotbase= force=
      local base= user= nice= bg= pid=
      nicelevel=0
      while [ "$1" != "${1##[-+]}" ]; do
        case $1 in
          '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
                 return 1;;
          --check)
                 base=$2
                 gotbase="yes"
                 shift 2
                 ;;
          --check=?*)
                 base=${1#--check=}
                 gotbase="yes"
                 shift
                 ;;
          --user)
                 user=$2
                 shift 2
                 ;;
          --user=?*)
                 user=${1#--user=}
                 shift
                 ;;
          --force)
                 force="force"
                 shift
                 ;;
          [-+][0-9]*)
                 nice="nice -n $1"
                 shift
                 ;;
          *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
                 return 1;;
        esac
      done


Fedora Core 4
Kernel 2.6.13
SMB 3.0.14a-2

Ainda a procura da luz no fim do túnel..

[]'s

PS: Continue mantendo seu FAQ, Zago, excelente trabalho!

http://www.zago.eti. br/iniciar.txt


--
***********************************
Tulio M. Barros -  UIN(ICQ):1593641
tmbarros[a]myrealbox.com LUN:174012
***********************************

---------------------------------------------------------------------------
Esta lista é patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br

Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br
Regras de utilização da lista: http://linux-br.conectiva.com.br
FAQ: http://www.zago.eti.br/menu.html

Responder a