Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
First of all, thanks for looking. I have setup samba on an Open Suse 10.2 box. It is not a domain controller, and is a stand alone server. I am, ...
  1. #1
    Just Joined! jdh239's Avatar
    Join Date
    Sep 2006
    Posts
    55

    Samba and me butting heads

    First of all, thanks for looking.

    I have setup samba on an Open Suse 10.2 box. It is not a domain controller, and is a stand alone server. I am, however, trying to connect my father-in-law's XP Home edition box to it via samba.

    I have setup a share, and have added a user: smbpasswd -a someuser

    'smbclient -L localhost' shows the share as being there, and testparm says that everything is alright. I can see the ports listening and opened in the firewall.

    From the XP box I try START > RUN > \\xxx.xxx.xxx.xxx\ just to see if I can see the share and I get a "The Network Path Was Not Found" message; however, when I right click on My Computer and try and map a network drive I actually get a login prompt. I try passing in the credentials, but it still fails. Actually, I don't see anything really in my log files to indicate any failures, but when I type in the username and password it just keeps coming back and prompting me.

    Info regarding the share I have setup:
    [dadshare]
    comment = Dad Reed's Share
    path = /home/someuser
    guest ok = No
    read only = No
    inherit acls = No
    valid users = someuser

    Any help would be greatly appreciated.

  2. #2
    Just Joined!
    Join Date
    Nov 2007
    Posts
    9

    ditto

    i say ditto. i am having exactly the same problem and would call upon someone to give a solution very quickly.

  3. #3
    Just Joined!
    Join Date
    Nov 2007
    Posts
    5
    You will probably need to enable plain text passwords on the XP box, see:

    Windows XP Home: Enable Plain Text Password

    You also might want to edit the "hosts" file in windows\system32\drivers\etc and put the name and IP of the server in there. You should then be able to open the share from the Run prompt (requires a reboot).

  4. #4
    Linux Enthusiast
    Join Date
    Aug 2006
    Location
    Portsmouth, UK
    Posts
    539
    I don't think password encryption is a problem any more. It used to be but that got fixed.

    You will proably need to create a machine account for the host your connecting from.

    Code:
    smbpasswd -a -m <HOST>$
    From memory, the hostname needs to be in caps, and the $ symbol at the end must also be there.
    RHCE #100-015-395
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

  5. #5
    Just Joined! jdh239's Avatar
    Join Date
    Sep 2006
    Posts
    55
    Quote Originally Posted by matonb View Post
    I don't think password encryption is a problem any more. It used to be but that got fixed.

    You will proably need to create a machine account for the host your connecting from.

    Code:
    smbpasswd -a -m <HOST>$
    From memory, the hostname needs to be in caps, and the $ symbol at the end must also be there.
    I tried the clear text option, and that didn't work. I am trying to do this option, but not getting anything to work. I don't think I am typing it as you had hoped though.

    Do I need to add a username with the hostname of the connecting box first, then run that command? The hostname of the box is different than the username I am trying to connect with. I just need a little more detail.

    Thanks.

  6. #6
    Linux Enthusiast
    Join Date
    Aug 2006
    Location
    Portsmouth, UK
    Posts
    539
    Hi jdh,

    I do have "no login" linux accounts for the each machine that connects to my server as well as the smbpasswd entries.

    It's been awhile since I set it up and added any machines to it
    RHCE #100-015-395
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

  7. #7
    Just Joined!
    Join Date
    Nov 2007
    Posts
    5
    I've tried this on my NT4 box and matonb is right you don't need plain text passwords, it should work if you are logged on to the XP box with the same account details that you created with #smbpasswd -a <username> (while root) on the linux server. Make sure security = user and you've set a NetBIOS name for the server.

    Hope this helps.

  8. #8
    Just Joined! jdh239's Avatar
    Join Date
    Sep 2006
    Posts
    55
    Quote Originally Posted by Ultraworld View Post
    I've tried this on my NT4 box and matonb is right you don't need plain text passwords, it should work if you are logged on to the XP box with the same account details that you created with #smbpasswd -a <username> (while root) on the linux server. Make sure security = user and you've set a NetBIOS name for the server.

    Hope this helps.
    I checked the global settings and it is set. Here is some new info:

    This works fine from within my network; however, I need to connect to it from another network. Any ideas? The failures I mentioned previously are from a different network. After the holiday break I got home and tested it from within my network and it works fine.

  9. #9
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    For what it's worth guys, try testparm in a terminal/konsole window, check for any errors. You should get a similar output:
    */home/tbob is shared too but for some reason it doesn't appear here.*
    Code:
    # testparm
    Load smb config files from /etc/samba/smb.conf
    Processing section "[Media-Shared]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    Press enter to see a dump of your service definitions
    
    [global]
    
    [Media-Shared]
            comment = Giddy-up
            path = /mnt/media
            read only = No
            guest ok = Yes
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  10. #10
    Just Joined! jdh239's Avatar
    Join Date
    Sep 2006
    Posts
    55
    Quote Originally Posted by MikeTbob View Post
    For what it's worth guys, try testparm in a terminal/konsole window, check for any errors. You should get a similar output:
    */home/tbob is shared too but for some reason it doesn't appear here.*
    Code:
    # testparm
    Load smb config files from /etc/samba/smb.conf
    Processing section "[Media-Shared]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    Press enter to see a dump of your service definitions
    
    [global]
    
    [Media-Shared]
            comment = Giddy-up
            path = /mnt/media
            read only = No
            guest ok = Yes
    Did that.... no errors. It did complain about some global settings being used under the share, but other than that it checked out

Page 1 of 2 1 2 LastLast

Posting Permissions

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