Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Samba problems

  • 25-11-2002 4:43pm
    #1
    Registered Users, Registered Users 2 Posts: 14,156 ✭✭✭✭


    Hey guys,

    I've got a linux box (running rh 8.0) and samba (v 2.2.5).

    I can see the box on a win2k network, but I can't log in. I keep getting an "incorrect password or username", despite the fact I'm using said same that exist for logging into the linux box directly.

    The linux box is not listed in the general domain, but in its own workgroup (for now - since the machine name is also the domain name and causes problems)

    If I check the logfile created for my machine it reads a little like this:


    [2002/11/25 16:11:12, 0] passdb/smbpass.c:getsmbfilepwent(280)
    getsmbfilepwent: malformed password entry (no : )



    I also noticed that there was no '/etc/samba/smbpasswd' file, so I altered it to read '/usr/bin/smbpasswd' as one existed there. The logfile entries changed appropriately to the above.


    Help???


Comments

  • Registered Users, Registered Users 2 Posts: 2,694 ✭✭✭Dingatron


    Sorry to ask the obvious! Have you created a samba password using smbpasswd with the same username/password on the w2k box? AFAIK this creates the encrypted password file. Also check that smb.conf accepts encripted passwords and also that the w2k local security settings/security options are set to enable encrypted passwords. I have the same setup with mandrake+w2k and it is working fine.


  • Closed Accounts Posts: 5,563 ✭✭✭Typedef


    Hmm ordinarily, all I do is allow 'anyone' within a specific ip range access to my Linux samba boxes.

    In the share options, all that you have to specify for that is

    [someshare]
    path=/somepath
    public=yes
    read-only=yes

    Admitadly this doesn't address the spurious entry in the samba password file, it is simply a quick fix 'it just works' solution.


  • Registered Users, Registered Users 2 Posts: 14,156 ✭✭✭✭Lemming


    Originally posted by ding
    Sorry to ask the obvious! Have you created a samba password using smbpasswd with the same username/password on the w2k box? AFAIK this creates the encrypted password file. Also check that smb.conf accepts encripted passwords and also that the w2k local security settings/security options are set to enable encrypted passwords. I have the same setup with mandrake+w2k and it is working fine.


    Hmmm -

    My win2k box (or boxes) are of a different username/password to the linux box in question. So I'm a bit confused as to the password requirements. Aren't I just logging into the linuxbox using an existing user account on the linuxbox? This has me really f*cking confused

    Also to note that the usernames are different between the the win2k boxes and the linux box.

    smb.conf is set to accept encrypted passwords, and afaik win2k uses encrypted passwords by default, no? :confused:


  • Banned (with Prison Access) Posts: 16,659 ✭✭✭✭dahamsta


    My win2k box (or boxes) are of a different username/password to the linux box in question. So I'm a bit confused as to the password requirements. Aren't I just logging into the linuxbox using an existing user account on the linuxbox?

    Nope. Samba uses it's own usernames and passwords. Login to the box and use smbpasswd for the username the same way you use passwd. You can probably sync them in some way, but I've never needed to do that.

    adam


  • Registered Users, Registered Users 2 Posts: 16 jcoshea


    I had the exact same problem of "incorrect password or username". My Windows login was the same as the Unix and Samba passwords. I could see the Samba box in Network Places but couldn't log in. Was able to access the shared folders fine using \\boxname.

    Fixed the problem simply by setting the Global Security settings to User and assigning user priviliges to the shared folders.

    Now any Windows machine can access the box through Network neighbourhood and they will be asked for Username and PW


    J.C.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 4,660 ✭✭✭Gavin


    Originally posted by Lemming


    [2002/11/25 16:11:12, 0] passdb/smbpass.c:getsmbfilepwent(280)
    getsmbfilepwent: malformed password entry (no : )



    I also noticed that there was no '/etc/samba/smbpasswd' file, so I altered it to read '/usr/bin/smbpasswd' as one existed there. The logfile entries changed appropriately to the above.


    Help???

    the above will cause you trouble anyway. The /usr/bin/smbpasswd file is the smbpasswd actual executable. Not the location of the password/username combinations.

    As the others have said, using smbpasswd -c username will create a samba passwd entry for the user. Or maybe it's -a.
    can't remember. The man page will have it in it.

    Gav


Advertisement