Results 1 to 6 of 6

Thread: smbclient fails while mount -t cifs works

  1. #1
    Join Date
    Jan 2010
    Beans
    22

    Question smbclient fails while mount -t cifs works

    I have a Plextor NAS PX-EH. Since a few months (I don't know exactly when) I cannot contact Samba shares which need credentials any more. The Share without credentials don't give a problem. But I could still mount the shares.

    I pinpointed the problem to smbclient & mount.

    When I do
    Code:
    sudo mount -t cifs -o username=alfons,password=secret //192.168.0.104/alfons ./log.tmp/
    everything is OK. I can see the content of the share.
    But when I do
    Code:
    alfons@alfons-laptop:~$ smbclient //192.168.0.104/alfons --user=alfons
    Enter alfons's password: 
    session setup failed: NT_STATUS_LOGON_FAILURE
    I get an error.
    When I set an empty password on the account on my NAS, I get the following result
    Code:
    alfons@alfons-laptop:~$ smbclient //192.168.0.104/alfons --user=alfons
    Enter alfons's password: 
    Anonymous login successful
    Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.2.11-ja-1.0]
    tree connect failed: NT_STATUS_WRONG_PASSWORD
    This result seems odd to me.

    I think there might be something wrong on the NAS side since I cannot login from several OS-es: Ubuntu, Windows 7 and a Windows XP virtual machine. But what?

    The NAS is not easy to get in to. I cannot open a telnet session, or so. Only a Web interface, ftp and samba. I can set the factory defaults back, but then the hdd will be formatted and all data will be lost!

    Does anyone have a clue?

    Regards,

    Alfons

  2. #2
    Join Date
    Jan 2010
    Beans
    22

    Unhappy Re: smbclient fails while mount -t cifs works

    I discovered that the problem has to lie on the (Ubuntu) client side and not on the NAS. The problems I have with windows machines as well are separate from this, I think.

    I used an Ubuntu bootable USB stick, and with that environment I had no troubles using smbclient to connect to my NAS.

    But on my laptop with Ubuntu 12.04, smbclient fails. I think something got corrupted in the settings on my laptop.

    Does anyone have a clue what might be wrong on the client side?

  3. #3
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,098
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: smbclient fails while mount -t cifs works

    maybe the smbpasswd got changed on your client side?
    Check out my Blog about my life and computer software and hardware. http://ubuntuaddicted.blogspot.com/
    My YouTube channel:
    http://www.youtube.com/ubuntuaddicted

  4. #4
    Join Date
    Jan 2010
    Beans
    22

    Re: smbclient fails while mount -t cifs works

    Hmmmm, sounds interesting. Could you explain a little more what I should look for?

  5. #5
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,098
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: smbclient fails while mount -t cifs works

    kind of a shot in the dark, but issuing the following command may or may not work?

    Code:
    smbpasswd username
    then it'll ask you for the users smbpasswd you want to use twice.

    Also, try to use the -W switch along with your workgroup name and see if that works.
    Check out my Blog about my life and computer software and hardware. http://ubuntuaddicted.blogspot.com/
    My YouTube channel:
    http://www.youtube.com/ubuntuaddicted

  6. #6
    Join Date
    Jan 2010
    Beans
    22

    Cool Re: smbclient fails while mount -t cifs works

    I believe smbpasswd is not the right solution. I want to access a share that has a username that does not exist on my local machine. And smbpasswd demands that the user already exists on the local system. In my situation this is not the case (anymore).

    The user on my local system is called 'alfons' and the owner of the samba share is called 'fotocopier'. And I know, in my previous examples I should have used the username 'fotocopier'. But even so it doesn't solve my problem.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •