Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: Cannot mount/connect to Windows share

  1. #1
    Join Date
    Sep 2008
    Location
    Ivory Tower
    Beans
    148
    Distro
    Xubuntu Development Release

    [Solved FFS]Cannot mount/connect to Windows share

    I cannot connect to a share on Windows XP machine, because it rejects my password. I'm using correct username and password.
    When running from console, smbclient's error message is: session setup failed: NT_STATUS_LOGON_FAILURE
    I can connect to said share from other Windows machine.

    What can be a problem?
    Last edited by Ugluk; January 20th, 2010 at 03:37 AM.
    If you've nothing to say, 'yes' will do just fine.

  2. #2
    Join Date
    Mar 2008
    Beans
    464
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Cannot mount/connect to Windows share

    When Ubuntu asks for a password try entering guest as the username and leave the password blank.

    You might also have to check sharing settings on XP and the folder permissions you are trying to share.

  3. #3
    Join Date
    Sep 2008
    Location
    Ivory Tower
    Beans
    148
    Distro
    Xubuntu Development Release

    Re: Cannot mount/connect to Windows share

    I've checked share permissions and added guest, but it still do not work.

    Anonymous login successful
    Domain=[MSHOME] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
    tree connect failed: NT_STATUS_ACCESS_DENIED
    If you've nothing to say, 'yes' will do just fine.

  4. #4
    Join Date
    Dec 2009
    Beans
    5,481

    Re: Cannot mount/connect to Windows share

    I know this isn't going to make any sense but could you post the smb.conf from the ubuntu machine:

    testparm -s

    It could be that you're not encrypting the password and it would fail even if enabled guest on the Win2K server.

  5. #5
    Join Date
    Sep 2008
    Location
    Ivory Tower
    Beans
    148
    Distro
    Xubuntu Development Release

    Re: Cannot mount/connect to Windows share

    I don't have samba, only smbclient and related stuff.

    smb.conf:

    http://pastebin.ubuntu.com/354663/
    Last edited by Ugluk; January 10th, 2010 at 09:20 PM.
    If you've nothing to say, 'yes' will do just fine.

  6. #6
    Join Date
    Sep 2008
    Location
    Ivory Tower
    Beans
    148
    Distro
    Xubuntu Development Release

    Re: Cannot mount/connect to Windows share

    bump!
    If you've nothing to say, 'yes' will do just fine.

  7. #7
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Cannot mount/connect to Windows share

    You don't need Samba to connect to a Windows share. The username and password should be that of the Windows computer you are trying to connect to, not your username and password on your Ubuntu system. You will have to add your Windows username and poassword by using the following commands.

    Code:
    sudo smbpasswd -L -a <username>
    and

    Code:
    sudo smbpasswd -L -e <username>

  8. #8
    Join Date
    Sep 2008
    Location
    Ivory Tower
    Beans
    148
    Distro
    Xubuntu Development Release

    Re: Cannot mount/connect to Windows share

    It doesn't seems to work:
    Code:
    ~$ sudo smbpasswd -L -a xxx <-- my Windows account name
    New SMB password: <-- my Windows password
    Retype new SMB password:
    Failed to add entry for user xxx.
    ~$ sudo smbpasswd -L -e xxx
    Failed to find user xxx in passdb backend.
    ~$
    Did I get something wrong?
    If you've nothing to say, 'yes' will do just fine.

  9. #9
    Join Date
    Dec 2009
    Beans
    5,481

    Re: Cannot mount/connect to Windows share

    You can only create a samba password for users who have an existing account on that machine.

    So first you need to create a user on the Ubuntu client:

    Code:
    sudo useradd username
    Better yet create a local user without a shell account:

    Code:
    sudo useradd -s /bin/true username
    Then create a samba password for that user:

    Code:
    sudo smbpasswd -L -a <username>
    sudo smbpasswd -L -e <username>
    BTW, I've learned a long time ago never to make absolute statements about anything pertaining to samba but I don't quite understand why you're creating a samba user for the Windows server on the Linux client. If you were trying to access a share on the Linux machine from windows and you required authentication then you'd need a samba username and password on the Linux box for the Windows client.

    The other thing is that you said you changed the share on the Windows server to allow guest access so you shouldn't need a username and password anywhere.

    But, I'm always open to learning something new.

  10. #10
    Join Date
    Sep 2008
    Location
    Ivory Tower
    Beans
    148
    Distro
    Xubuntu Development Release

    Re: Cannot mount/connect to Windows share

    Why do you suggest this nonsense? I stated clearly what my problem is.
    If you've nothing to say, 'yes' will do just fine.

Page 1 of 4 123 ... LastLast

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
  •