Results 1 to 6 of 6

Thread: W7 > Samba > USE 10.04.2 Won't Connect

  1. #1
    Join Date
    Feb 2010
    Location
    The Land of 11,842 Lakes
    Beans
    75

    W7 > Samba > USE 10.04.2 Won't Connect

    Alright, here goes. I'm trying to connect to my [homes] share on my downstairs computer, and it won't connect; Credentials refused.

    And just so I don't have people asking for this later:

    Laptop:
    • Windows 7 Home Premium


    Server:
    • Named John on the network (no, my name isn't John)
    • Fresh install of Ubuntu Server 10.04.2
    • sudo apt-get install samba


    Here's my smb.conf file.
    Code:
    [global]
    workgroup = JWG
    netbios name = John--Samba
    encrypt passwords = yes
    
    [homes]
    read only = no
    browseable = no
    And if you're going to ask, I do not want to set it up as a domain controller just yet.

    Thanks in advance for the help.
    For a full signature / about me, see my website.

  2. #2
    Join Date
    May 2009
    Location
    Lisbon, Portugal
    Beans
    239
    Distro
    Xubuntu 11.10 Oneiric Ocelot

    Re: W7 > Samba > USE 10.04.2 Won't Connect

    Hi,

    You can always set the security to "share" instead of "user" or if you dont want any passwords to access the share, just add the "guest ok = yes" option.

    Check this:

    http://ubuntuforums.org/showthread.p...ht=samba+howto

    See ya...
    "We are the middle children of history, man. No purpose or place. We have no great war, no great depression. Our great war is a spiritual war."

  3. #3
    Join Date
    Dec 2009
    Beans
    6,776

    Re: W7 > Samba > USE 10.04.2 Won't Connect

    You did create users with home directories and set samba passwords for those users right?

  4. #4
    Join Date
    Dec 2009
    Beans
    6,776

    Re: W7 > Samba > USE 10.04.2 Won't Connect

    Quote Originally Posted by pawhtiobo View Post
    You can always set the security to "share" instead of "user" or if you dont want any passwords to access the share, just add the "guest ok = yes" option.
    I wouldn't advise using either share level security or allowing guests to a [homes] share.

    A "homes" share is a special share definition that creates a share "on the fly" when asked to do so by the client. The whole point of it is to create a place on the server for just that specific user to access. It has 2 requirements:

    * There's a /home/$USER for the remote user to access.
    * There's a samba password for that user.

  5. #5
    Join Date
    Dec 2008
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: W7 > Samba > USE 10.04.2 Won't Connect

    Quote Originally Posted by Morbius1 View Post
    I wouldn't advise using either share level security or allowing guests to a [homes] share.

    A "homes" share is a special share definition that creates a share "on the fly" when asked to do so by the client. The whole point of it is to create a place on the server for just that specific user to access. It has 2 requirements:

    * There's a /home/$USER for the remote user to access.
    * There's a samba password for that user.
    Respectfully Morbius1; this is not exactly correct. From the Samba documentaition:
    Code:
        * If no path was given, the path is set to the user's home directory. 
    
    If you decide to use a path = line in your [homes] section, it may 
    be useful to use the %S macro. For example:  path = /data/pchome/%S
    See here (under [homes]) for the complete info.

    My users [homes] directory is at: /srv/smb/home/%S

    I do agree that the OP should not use share level security. I believe the default is now user level anyway.

  6. #6
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: W7 > Samba > USE 10.04.2 Won't Connect

    Did you add your users with:

    Code:
    sudo smbpasswd -a user
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

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
  •