HARDWARE Y SISTEMAS OPERATIVOS, GNU/Linux, Windows, Mac > GNU/Linux, Unix, *BSD and Free Software, Android

Para los conocedores de Samba

<< < (3/4) > >>

cherry:

--- Cita de: kurtsik ---Ahora que me acuerdo, el sisema samba realmente consta de dos demonios smb y nmb, comprueba que tengas los corriendo:

# /etc/init.d/smb status
# /etc/init.d/nmb status
--- Fin de la cita ---


Ninguna de las dos estan presente Gracias mil por su ayuda

root@linux init.d]# smb status
-bash: smb: command not found
[root@linux init.d]# nmb status
-bash: nmb: command not found
[root@linux init.d]#

root@linux init.d]# ls -l
total 360
-rwxr-xr-x    1 root     root         2633 feb  4  2003 aep1000
-rwxr-xr-x    1 root     root         1769 abr 27 09:16 amd
-rwxr-xr-x    1 root     root          831 jul  7  2004 anacron
-rwxr-xr-x    1 root     root         1458 feb 24  2003 apmd
-rwxr-xr-x    1 root     root         1176 oct  5  2004 atd
-r-xr-xr-x    1 root     root         2834 abr  6 22:24 audit
-rwxr-xr-x    1 root     root        14953 abr 27 09:35 autofs
-rwxr-xr-x    1 root     root         2651 feb  4  2003 bcm5820
-rwxr-xr-x    1 root     root         1222 ene 24 06:38 bootparamd
-rwxr-xr-x    1 root     root         1349 sep 16  2003 canna
-rwxr-xr-x    1 root     root         1297 mar  3 20:27 crond
-rwxr-xr-x    1 root     root         2312 feb  7 08:22 cups
-rwxr-xr-x    1 root     root         1502 mar  8  2004 dc_client
-rwxr-xr-x    1 root     root         1344 mar  8  2004 dc_server
-rwxr-xr-x    1 root     root         1509 oct  6  2004 dhcpd
-rwxr-xr-x    1 root     root         1448 oct  6  2004 dhcrelay
-rwxr-xr-x    1 root     root         5453 mar  3 14:06 diskdump
-rwxr-xr-x    1 root     root         1506 dic  2  2004 firstboot
-rwxr-xr-x    1 root     root         1590 ago 18  2004 FreeWnn
-rwxr-xr-x    1 root     root        10199 sep 28  2004 functions
-rwxr-xr-x    1 root     root         1541 sep 17  2003 gpm
-rwxr-xr-x    1 root     root         5155 mar 22  2004 halt
lrwxr-xr-x    1 root     root           19 jun 29 18:54 hpoj -> /usr/sbin/ptal-init
-rwxr-xr-x    1 root     root         2601 feb 25 10:37 httpd
-rwxr-xr-x    1 root     root         6395 dic 17  2003 ip6tables
-rwxr-xr-x    1 root     root         6319 dic 17  2003 iptables
-rwxr-xr-x    1 root     root         1414 jul  3  2003 irda
-rwxr-xr-x    1 root     root         1745 abr  6 11:38 irqbalance
-rwxr-xr-x    1 root     root         7654 feb 16 14:56 iscsi
-rwxr-xr-x    1 root     root         5838 ago 11  2003 isdn
-rwxr-xr-x    1 root     root         1084 abr 20 09:40 kdcrotate
-rwxr-xr-x    1 root     root          562 sep  3  2003 killall
-rwxr-xr-x    1 root     root         2225 feb  3 17:59 kudzu
-rwxr-xr-x    1 root     root         1684 feb 17 10:22 lisa
-rwxr-xr-x    1 root     root         3248 feb 25 18:31 mailman
-rwxr-xr-x    1 root     root         1670 may 26  2004 mdmonitor
-rwxr-xr-x    1 root     root         1613 may 26  2004 mdmpd
-rwxr-xr-x    1 root     root         1535 abr  6 11:38 microcode_ctl
-rwxr-xr-x    1 root     root         3078 ene  4  2005 named
-rwxr-xr-x    1 root     root        10031 mar  1 15:14 netdump
-rwxr-xr-x    1 root     root         5077 feb  9 16:36 netfs
-rwxr-xr-x    1 root     root         8135 sep 27  2004 network
-rwxr-xr-x    1 root     root         3897 sep 24  2004 nfs
-rwxr-xr-x    1 root     root         2835 sep 24  2004 nfslock
-rwxr-xr-x    1 root     root         2066 feb 23 08:49 nscd
-rwxr-xr-x    1 root     root         3772 feb 24  2004 ntpd
-r-xr-xr-x    1 root     root         4590 ene 25  2003 pcmcia
-rwxr-xr-x    1 root     root         1814 ago 13  2003 portmap
-rwxr-xr-x    1 root     root         2296 jun 29  2004 postfix
-rwxr-xr-x    1 root     root         1021 feb 23 11:22 psacct
-rwxr-xr-x    1 root     root         1516 jun 26  2002 random
-rwxr-xr-x    1 root     root         2246 ene  7  2003 rawdevices
-rwxr-xr-x    1 root     root         6873 feb  8 16:53 rhdb
-rwxr-xr-x    1 root     root         1782 dic  1  2004 rhnsd
-rwxr-xr-x    1 root     root         1009 sep 13  2004 rstatd
-rwxr-xr-x    1 root     root         1113 sep 13  2004 rusersd
-rwxr-xr-x    1 root     root         1010 ene 25  2003 rwhod
-rwxr-xr-x    1 root     root         1262 oct  7  2004 saslauthd
-rwxr-xr-x    1 root     root         3219 jun 30  2004 sendmail
-rwxr-xr-x    1 root     root         1175 jul 10  2002 single
-rwxr-xr-x    1 root     root         1472 abr  6 11:38 smartd
-rwxr-xr-x    1 root     root         1928 mar  3 20:35 smb
-rwxr-xr-x    1 root     root         1575 ene 27 04:14 snmpd
-rwxr-xr-x    1 root     root         1131 ene 27 04:14 snmptrapd
-rwxr-xr-x    1 root     root         1369 dic  7  2004 spamassassin
-rwxr-xr-x    1 root     root         3225 mar  2 22:03 squid
-rwxr-xr-x    1 root     root         2647 feb  2 06:19 sshd
-rwxr-xr-x    1 root     root         1369 ene 26 18:42 syslog
-rwxr-xr-x    1 root     root         1223 oct  6  2004 sysstat
-rwxr-xr-x    1 root     root         1787 sep  6  2004 vncserver
-rwxr-xr-x    1 root     root         1555 mar  3 20:35 winbind
-rwxr-xr-x    1 root     root         3404 mar 17 00:44 xfs
-rwxr-xr-x    1 root     root         2497 may 19  2004 xinetd
-rwxr-xr-x    1 root     root         2501 mar 31 19:25 ypbind

kurtsik:
Ejem, el comando no es smb status, es : /etc/init.d/smb status (/etc/init.d/nmb status)

kurtsik:

--- Cita de: kurtsik ---
smbpasswd -w <pass>     que añadira un entrada en secrets.tdb en el directorio /etc/samba
--- Fin de la cita ---


Una puntualizacion: en SuSE el directorio es /etc/samba, por lo que veo en el listado de tu /etc es smb

cherry:

--- Cita de: kurtsik ---
--- Cita de: kurtsik ---
smbpasswd -w <pass>     que añadira un entrada en secrets.tdb en el directorio /etc/samba
--- Fin de la cita ---


Una puntualizacion: en SuSE el directorio es /etc/samba, por lo que veo en el listado de tu /etc es smb
--- Fin de la cita ---


Amigo yo estoy usando redhat
pero alli va.

[root@linux /]# cd /etc/init.d/nmb status
-bash: cd: /etc/init.d/nmb: No existe el fichero o el directorio
[root@linux /]#

[root@linux init.d]# ls -l
total 360
-rwxr-xr-x    1 root     root         2633 feb  4  2003 aep1000
-rwxr-xr-x    1 root     root         1769 abr 27 09:16 amd
-rwxr-xr-x    1 root     root          831 jul  7  2004 anacron
-rwxr-xr-x    1 root     root         1458 feb 24  2003 apmd
-rwxr-xr-x    1 root     root         1176 oct  5  2004 atd
-r-xr-xr-x    1 root     root         2834 abr  6 22:24 audit
-rwxr-xr-x    1 root     root        14953 abr 27 09:35 autofs
-rwxr-xr-x    1 root     root         2651 feb  4  2003 bcm5820
-rwxr-xr-x    1 root     root         1222 ene 24 06:38 bootparamd
-rwxr-xr-x    1 root     root         1349 sep 16  2003 canna
-rwxr-xr-x    1 root     root         1297 mar  3 20:27 crond
-rwxr-xr-x    1 root     root         2312 feb  7 08:22 cups
-rwxr-xr-x    1 root     root         1502 mar  8  2004 dc_client
-rwxr-xr-x    1 root     root         1344 mar  8  2004 dc_server
-rwxr-xr-x    1 root     root         1509 oct  6  2004 dhcpd
-rwxr-xr-x    1 root     root         1448 oct  6  2004 dhcrelay
-rwxr-xr-x    1 root     root         5453 mar  3 14:06 diskdump
-rwxr-xr-x    1 root     root         1506 dic  2  2004 firstboot
-rwxr-xr-x    1 root     root         1590 ago 18  2004 FreeWnn
-rwxr-xr-x    1 root     root        10199 sep 28  2004 functions
-rwxr-xr-x    1 root     root         1541 sep 17  2003 gpm
-rwxr-xr-x    1 root     root         5155 mar 22  2004 halt
lrwxr-xr-x    1 root     root           19 jun 29 18:54 hpoj -> /usr/sbin/ptal-init
-rwxr-xr-x    1 root     root         2601 feb 25 10:37 httpd
-rwxr-xr-x    1 root     root         6395 dic 17  2003 ip6tables
-rwxr-xr-x    1 root     root         6319 dic 17  2003 iptables
-rwxr-xr-x    1 root     root         1414 jul  3  2003 irda
-rwxr-xr-x    1 root     root         1745 abr  6 11:38 irqbalance
-rwxr-xr-x    1 root     root         7654 feb 16 14:56 iscsi
-rwxr-xr-x    1 root     root         5838 ago 11  2003 isdn
-rwxr-xr-x    1 root     root         1084 abr 20 09:40 kdcrotate
-rwxr-xr-x    1 root     root          562 sep  3  2003 killall
-rwxr-xr-x    1 root     root         2225 feb  3 17:59 kudzu
-rwxr-xr-x    1 root     root         1684 feb 17 10:22 lisa
-rwxr-xr-x    1 root     root         3248 feb 25 18:31 mailman
-rwxr-xr-x    1 root     root         1670 may 26  2004 mdmonitor
-rwxr-xr-x    1 root     root         1613 may 26  2004 mdmpd
-rwxr-xr-x    1 root     root         1535 abr  6 11:38 microcode_ctl
-rwxr-xr-x    1 root     root         3078 ene  4  2005 named
-rwxr-xr-x    1 root     root        10031 mar  1 15:14 netdump
-rwxr-xr-x    1 root     root         5077 feb  9 16:36 netfs
-rwxr-xr-x    1 root     root         8135 sep 27  2004 network
-rwxr-xr-x    1 root     root         3897 sep 24  2004 nfs
-rwxr-xr-x    1 root     root         2835 sep 24  2004 nfslock
-rwxr-xr-x    1 root     root         2066 feb 23 08:49 nscd
-rwxr-xr-x    1 root     root         3772 feb 24  2004 ntpd
-r-xr-xr-x    1 root     root         4590 ene 25  2003 pcmcia
-rwxr-xr-x    1 root     root         1814 ago 13  2003 portmap
-rwxr-xr-x    1 root     root         2296 jun 29  2004 postfix
-rwxr-xr-x    1 root     root         1021 feb 23 11:22 psacct
-rwxr-xr-x    1 root     root         1516 jun 26  2002 random
-rwxr-xr-x    1 root     root         2246 ene  7  2003 rawdevices
-rwxr-xr-x    1 root     root         6873 feb  8 16:53 rhdb
-rwxr-xr-x    1 root     root         1782 dic  1  2004 rhnsd
-rwxr-xr-x    1 root     root         1009 sep 13  2004 rstatd
-rwxr-xr-x    1 root     root         1113 sep 13  2004 rusersd
-rwxr-xr-x    1 root     root         1010 ene 25  2003 rwhod
-rwxr-xr-x    1 root     root         1262 oct  7  2004 saslauthd
-rwxr-xr-x    1 root     root         3219 jun 30  2004 sendmail
-rwxr-xr-x    1 root     root         1175 jul 10  2002 single
-rwxr-xr-x    1 root     root         1472 abr  6 11:38 smartd
-rwxr-xr-x    1 root     root         1928 mar  3 20:35 smb
-rwxr-xr-x    1 root     root         1575 ene 27 04:14 snmpd
-rwxr-xr-x    1 root     root         1131 ene 27 04:14 snmptrapd
-rwxr-xr-x    1 root     root         1369 dic  7  2004 spamassassin
-rwxr-xr-x    1 root     root         3225 mar  2 22:03 squid
-rwxr-xr-x    1 root     root         2647 feb  2 06:19 sshd
-rwxr-xr-x    1 root     root         1369 ene 26 18:42 syslog
-rwxr-xr-x    1 root     root         1223 oct  6  2004 sysstat
-rwxr-xr-x    1 root     root         1787 sep  6  2004 vncserver
-rwxr-xr-x    1 root     root         1555 mar  3 20:35 winbind
-rwxr-xr-x    1 root     root         3404 mar 17 00:44 xfs
-rwxr-xr-x    1 root     root         2497 may 19  2004 xinetd
-rwxr-xr-x    1 root     root         2501 mar 31 19:25 ypbind
[root@linux init.d]#

cherry:

--- Cita de: Mr_X ---Ok. Copia el siguiente código y guárdalo como mksmbpasswd.sh en /usr/bin/


--- Código: ---#!/bin/sh
awk 'BEGIN {FS=":"
printf("#\n# SMB password file.\n#\n")
}
{ printf( "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[UD         ]:LCT-00000000:%s\n", $1, $3, $5) }
'

--- Fin del código ---

Y haz:

--- Cita de: Mr_X ---
Abre una terminal como root y da los siguientes comandos:

--- Código: ---cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd
chmod 600 /etc/samba/smbpasswd
--- Fin del código ---



Ahora crea las contraseñas samba (repítelo para cada usuario):

--- Código: ---smbpasswd usuario
--- Fin del código ---


Reinicia samba:

--- Código: ---service smb restart
--- Fin del código ---

--- Fin de la cita ---


Y no me respondiste


--- Cita de: Mr_X ---¿casa es un usuario o es sólo un directorio que creaste después?
--- Fin de la cita ---

--- Fin de la cita ---


Es un Directorio

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

[*] Página Anterior

Ir a la versión completa