Announcement

Collapse
No announcement yet.

Samba - abmas: How I go from Windows to Kubuntu now with password

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Samba - abmas: How I go from Windows to Kubuntu now with password

    This is not so much a question as an attempt to discover what it is that for so many of us stop two-way Samba. Using a smb.config file that works - like one provided by Fintan, I started commenting out all that was not in his little file.

    My motivation is, by a clean install of 7.10 it is no problem for me to get into the W2000 PC, and install the parallel port printer there so I can print (slowly) from Kubuntu over Samba. So, the day when we don't have to fiddle with config files are coming near.

    I took it in small steps - commented out everything that was not in Fintan's file. Everything - and no change.

    Then iintroduce the force user = "username" line in the share definition. And discover that the mfdsproxy = no line is introduced when doing graphical sharing. Comment out that.

    Nothing changed: One way only - no way to boot into Kubuntu from W2000.

    OK - what's more in Fintan's file? These two lines:

    interfaces = eth0
    map to guest = bad user

    ... and I can get right in to the Kubuntu from W2000. No security.

    Time for the candidate ...

    ### map to guest = bad user

    ... and I have replicated the problem

    The simple way of two ways Samba may simply be to introduce

    map to guest = bad user

    That is - maybe. It's time for some food and wine and things, so I'll leave it 'till tomorrow slowly reintroducing the commented-out lines, and see what happens.


    #2
    Re: Samba - abmas

    If I am right, the short, nearly graphical, version of how to make samba work is:

    1. System -> Adept Manager - install Samba (or check it is done.)

    2. Dolphin -> Create share folder -> right click -> properties -> Share

    3. Run Command -> Kate -> Open /etc/samba/smb.conf

    4. Add this line in the "Networking" part:
    map to guest = bad user

    5. Go to the bottom to find your share:
    If you find this:
    msdfs proxy = no
    - delete or comment out (#)
    Add this line:
    force user = nils
    (of course, you may not be user "nils", so
    change for whatever username you use.

    This works for me, anyway. It's not quite "out of the box", but as near as I am able to do it.

    Comment


      #3
      Re: Samba - abmas

      Originally posted by nilsA


      4. Add this line in the "Networking" part:
      map to guest = bad user

      There is just one problem with this solution - security.
      I share my network at times, and, though I feel pretty confident they don't do bad things - nevertheless...

      Today I found this change in smb.conf proposed:

      Change:

      Code:
       # passdb backend = tdbsam
      to:

      Code:
       passdb backend = smbpasswd
      Then I created a new account to test:

      Code:
      sudo smbpasswd - a tester
      gave a password twice - and everything works now: I can go both ways - but logging in with a password is required.



      Comment


        #4
        Re: Samba - abmas: How I go from Windows to Kubuntu now with password

        But that solution only works for the session - restarting Kubuntu will loose the password.

        My solution was like this:

        First I observed the file /etc/samba/smbpasswd was empty.

        To fix this:

        Code:
        sudo touch /etc/samba/smbpasswd
        sudo chmod 644 /etc/samba/smbpasswd
        I had removed the samba user,

        Code:
        sudo smbpasswd -x username
        so I had to:

        Code:
        sudo smbpasswd -a username
        and, to restart samba of course:

        Code:
        sudo smbpasswd restart
        At that point I could do one-way samba - the other way now.

        After some experimentation, I found that going back from


        Code:
         passdb backend = smbpasswd

        Code:

        Code:
        passdb backend = tdbsam
        works.

        For now, anyway.

        Btw. the /etc/samba/smbpasswd
        now has entries in the form of:

        user: 1000: strings of what looks like mostly hex codes separated by :










        Comment

        Working...
        X