Olá Zago e os demais da lista

Minhas tentativas para inicializar o smbd foram as seguintes até agora:

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