LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   why can't I mount with smbmount if i'm able to connect with smbclient? (https://www.linuxquestions.org/questions/linux-networking-3/why-cant-i-mount-with-smbmount-if-im-able-to-connect-with-smbclient-267100/)

eantoranz 12-16-2004 12:26 PM

why can't I mount with smbmount if i'm able to connect with smbclient?
 
I'm trying to make a smbmount to a windows share.

If I get there with smbclient, I have no problem logging in:

Code:

smbclient //fhepcluster/Sistemas -U fhep/ecarmona
Password:
Domain=[FHEP] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
smb: \> dir
  .                                  D        0  Wed Dec 15 16:34:40 2004
  ..                                  D        0  Wed Dec 15 16:34:40 2004
  Actividades                        D        0  Mon Oct 18 19:47:11 2004
  ANTIG.PERSONAL.xls                  A  243200  Wed Aug  6 21:02:22 2003
  Aplicaciones                        D        0  Mon Oct 11 19:34:08 2004
  Aramis                              D        0  Tue Nov 16 18:42:42 2004
  arbol red.xls                      A    71680  Thu Sep 25 13:11:27 2003
  Auditoría                          D        0  Wed Oct 13 17:07:54 2004
  Bp                                DA        0  Mon Dec 13 22:21:55 2004
  Calendario de Entrevistas.xls      A    23040  Thu Jul 29 18:20:58 2004
  Camelia                            D        0  Wed Dec 15 18:30:49 2004
  carnet ana bell.ppt                A  188416  Mon Nov 15 13:57:41 2004
  Carta de Solicitud Linea.doc        A    59392  Wed Aug 11 15:22:30 2004
  certificado.ppt                    AR  203776  Mon Oct  4 18:57:44 2004
  comware.doc                        A    20992  Tue Jul  6 20:31:10 2004
  cuarentena virus 24-11-2003.xls      A    15360  Mon Nov 24 22:14:55 2003
  db.doc                              A    19968  Mon Mar  8 15:34:10 2004
  Digitalización                      D        0  Tue Dec 14 16:22:05 2004
  dll PB8                            D        0  Tue Dec 14 23:50:31 2004
  Dx de Quimioterapia x mes.xls      A  142848  Mon Apr 21 19:27:34 2003
  ecg                                D        0  Wed Sep 29 21:25:04 2004
  Edmundo                            D        0  Thu Dec 16 17:20:25 2004
  Elis                                D        0  Fri Dec 10 20:58:44 2004
  error DC02.txt                      A      130  Sat Sep 25 17:33:18 2004
  Estadisticas MENSUALES Laboratorio.xls      A    88576  Mon Apr  5 20:55:52 2004
  estatus de la unidad de sistemas.doc      A    64000  Mon Apr 28 16:32:20 2003
  EXTENCIONES telefonicas.xls        A    26112  Mon Oct 11 20:08:12 2004
  extensiones malas.doc              A    19456  Tue May 18 13:27:24 2004
  fondos                              D        0  Tue Dec 14 15:34:25 2004
  formato entrega doc tesoreria.xls      A  107008  Tue Jul  9 13:05:51 2002
  formato nota de recepcion.xls      A  1220608  Wed Dec  8 15:44:02 2004
  formato solicitud de compra.xls      A  1167360  Tue Oct 26 22:56:38 2004
  Fotos - Despedida Desi              D        0  Mon Dec 13 15:08:56 2004
  Fotos Almuerzo -  Sambil            D        0  Fri Dec 10 20:31:48 2004
  Fotos Hamburguesada                D        0  Fri Dec 10 20:16:56 2004
  Fotos Navidad                      D        0  Thu Dec 16 15:31:35 2004
  Fotos Softball                      D        0  Fri Dec 10 20:17:03 2004
  guardias sistemas.xls              A    61952  Thu Jul  3 13:59:42 2003
  GuardiasMediodia.xls                A    32256  Fri Apr 30 17:06:23 2004
  Hardware                          DA        0  Tue Dec 14 16:14:20 2004
  Heberto                            D        0  Mon Dec 13 20:20:22 2004
  HEP.bmp                            A  583972  Mon Aug 21 22:57:28 2000
  Herwind                            D        0  Wed Sep 29 21:25:35 2004
  Hosp.Espec.Pedia.ppt                A 10551296  Tue Aug 31 14:03:31 2004
  Impresoras Modulo B.xls            A    24576  Sat Jul 24 17:31:59 2004
  Informe para Telcel.doc            A  552960  Wed Jul 16 16:35:10 2003
  Instaladores SMILE                  D        0  Wed Sep 29 21:26:05 2004
  Javier Machado                    DA        0  Fri Nov 19 20:20:01 2004
  Kassem                              D        0  Fri Nov 26 22:39:17 2004
  kids.ppt                            A    90624  Wed Sep  8 22:13:45 2004
  listado de computadores oct 04.xls      A    30720  Thu Oct  7 16:59:02 2004
  listareservadas.txt                A    1558  Wed Aug 11 13:57:16 2004
  Logos                              D        0  Fri Dec  3 21:23:30 2004
  Lorena                              D        0  Wed Dec  1 14:31:56 2004
  luis e. parodi.jpg                  A    25309  Fri Oct 17 16:01:34 2003
  Mariedy                            D        0  Thu Nov 11 22:43:58 2004
  MAT.TXT                            A  248044  Mon Aug 23 17:32:00 2004
  Matriz de evaluación técnica.xls      A    50176  Tue Aug 21 13:57:04 2001
  medico.jpg                          A  146918  Wed Dec  8 15:51:54 2004
  Medicos telefonos.xls              A    51712  Mon Dec  6 18:25:14 2004
  Migración SMILE                    D        0  Wed Sep 29 21:14:00 2004
  msrdpcli.exe                        A  3477320  Thu Dec  2 19:41:24 2004
  mtto impresoras.xls                A    15360  Thu Sep 30 13:56:08 2004
  n840987.exe                        A    18472  Fri Nov  5 20:01:48 2004
  nestor                              D        0  Fri Dec 10 21:01:27 2004
  Ninguno.gif                        A      105  Tue Oct 21 06:31:06 2003
  nomina.xls                          A    38912  Fri Jan 31 21:45:39 2003
  numeros telcel.xls                  A    13824  Mon Nov 24 21:04:42 2003
  owaguide.doc                        A  280064  Fri Dec 19 16:52:32 2003
  papeltapiz.jpg                      A  146747  Sat Sep  4 01:54:22 2004
  pfizer.xls                          A    85504  Wed Feb 26 16:34:39 2003
  plan de gestion sistemas.ppt        A  223744  Thu Aug  1 00:04:47 2002
  plan de gestion sistemas1.ppt      A  162304  Wed Jul 31 23:27:02 2002
  PlanCreditohep.pdf                  A    26417  Thu Feb 13 21:46:00 2003
  portada telemedicina.ppt            A  119296  Tue Aug 27 01:19:15 2002
  Presentacion.doc                    A    19456  Thu Nov  6 19:22:18 2003
  Presupuesto 2005 - II.xls          A    96256  Fri Aug 27 23:43:04 2004
  Presupuesto 2005.xls                A  114688  Fri Aug 27 21:42:56 2004
  Presupuesto Adornos Navidad.xls      A    22016  Mon Nov 22 16:42:07 2004
  print.pbl                          A  116224  Thu Apr  4 20:38:38 2002
  Proyecto E-magen                    D        0  Tue Dec 14 15:03:41 2004
  Proyectos                          D        0  Wed Sep 29 16:32:43 2004
  Punto de Agenda 06-04-04.xls        A    66048  Mon Apr  5 22:52:55 2004
  radios.xls                          A    55296  Mon Feb  3 21:50:51 2003
  Recomendaciones Personales.doc      A    23040  Wed Mar 24 22:49:16 2004
  Resultados de Prueba.doc            A  160256  Tue Dec  7 23:00:32 2004
  sh_runn_HEP.rtf                    A    91382  Thu Aug 12 18:39:36 2004
  Simon                              D        0  Mon Nov  8 21:52:53 2004
  Software                            D        0  Tue Dec  7 20:42:39 2004
  Software Administrativo            D        0  Fri Oct  1 21:26:02 2004
  solicitud_deservicio.doc            A    22528  Mon Sep 20 15:33:50 2004
  Solucionar el Id1202.doc            A    97792  Thu Oct  9 22:28:40 2003
  Soporte de Problemas mas frecuentes SMILE      D        0  Wed Sep 29 16:24:12 2004
  sp_del_historia_hospitalizacion.txt      A    2239  Mon Aug  2 15:02:22 2004
  sp_del_historia_primera.txt        A    1749  Mon Aug  2 15:01:54 2004
  Thumbs.db                        AHS    24064  Wed Dec 15 16:34:41 2004
  ubicacion de los telefonos nuevos 04.xls      A    22016  Tue Dec 14 17:26:072004
  Victor                              D        0  Sat Dec 11 15:45:37 2004
  virus.bmp                          A  787510  Thu Oct 21 21:09:34 2004
  VPN                                D        0  Wed Sep 29 16:23:56 2004

                34702 blocks of size 524288. 8593 blocks available
smb: \>

But when I try with smbmount (exactly the same options), I always get error messages:
Code:

smbmount //fhepcluster/Sistemas /mnt/fhep/ -o username=fhep/ecarmona
Password:
2439: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed

Shouldn't I mount without a problem cause I was able to log in with smbclient? :confused:

jschiwal 12-16-2004 05:28 PM

Try surrounding the username with single quotes since a forward slash has a special name to the shell.

You could also have an entry in /etc/fstab for mounting the share.

excerpt from http://www.linuxhomenetworking.com/l...mba-shares.htm
Quote:

#
# File: /etc/fstab
#
//192.168.1.100/peter /mnt/smb smbfs credentials=/etc/cred 0 0

The contents of the /etc/cred file needs to have the username and password for the account in this format:

#
# File: /etc/cred
#
username = peter
password = peterspassword


eantoranz 12-16-2004 05:35 PM

I'll give it a try tomorrow! :)

eantoranz 12-17-2004 12:41 PM

Man... I'll be your pupil from now on! :)

It worked with the credentials file. It didn't work with the single quote trick.


All times are GMT -5. The time now is 06:07 PM.