Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba authentication fails [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
RoyN
n00b
n00b


Joined: 07 Sep 2006
Posts: 2

PostPosted: Thu Sep 07, 2006 3:26 pm    Post subject: Samba authentication fails [SOLVED] Reply with quote

Hi all

I have a problem with a samba server. Its realy strange i have another samba server running
with the same configuration ( use flags, smb.conf ) that works. When i connect with my laptop that's
running windowsXP it always comes up with a username/password dialog when i enter the username and password
it fails connecting to the share. It even comes up with a username/password dialog if i don't use restrictions on the shares
with guest ok = yes. My desktop pc is running gentoo linux. The machine can connect with the samba server if i use guest ok = yes. But it
also fails if guest ok = off after entering username + password.

Anyone knows a solution to this problem?

Thnx!

Code:


[global]
        workgroup = workgroup
        netbios name = fender
        server string = Fender Samba Server
        security = user
        unix password sync = yes

        log file = /var/log/samba/samba.%m
        max log size = 50

        local master = no

[Temp]
        comment = Temp
        path = /tmp
        guest ok = no
        browseable = yes
        valid users = @users
        write list = @users




Code:


CFLAGS="-march=pentium4 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
ACCEPT_KEYWORDS=""
USE="-X apache2 -gtk -gtk2 -gnome -kde -qt -alsa -arts"
FEATURES="ccache"



Code:


fender root # smbclient -L localhost
Password:
Anonymous login successful
Domain=[Workgroup] OS=[Unix] Server=[Samba 3.0.22]

        Sharename       Type      Comment
        ---------       ----      -------
        ADMIN$          IPC       IPC Service (Fender Samba Server)
        IPC$            IPC       IPC Service (Fender Samba Server)
        Temp            Disk      Temp
Anonymous login successful
Domain=[Workgroup] OS=[Unix] Server=[Samba 3.0.22]

        Server               Comment
        ---------            -------
        EARTH                Fender Samba Server
        RLSYSW2PC1027
        RLSYSXPLT1030

        Workgroup            Master
        ---------            -------
        REDLINE              RLSYSW2PC1027
fender root # smbclient -L localhost -U roy
Password:
session setup failed: NT_STATUS_LOGON_FAILURE
fender root #     



Last edited by RoyN on Mon Sep 18, 2006 11:12 am; edited 1 time in total
Back to top
View user's profile Send private message
irwinr
Apprentice
Apprentice


Joined: 11 May 2004
Posts: 152
Location: Texas

PostPosted: Fri Sep 08, 2006 3:29 am    Post subject: Reply with quote

Samba maintains it's own list of users and passwords that it maps back to local users.

The 'roy' user needs to be created and have a password set using:

Code:
smbpasswd -a roy


Let me know if this fixes your problem or not.

-Jeremy
Back to top
View user's profile Send private message
RoyN
n00b
n00b


Joined: 07 Sep 2006
Posts: 2

PostPosted: Mon Sep 18, 2006 11:11 am    Post subject: Reply with quote

irwinr wrote:
Samba maintains it's own list of users and passwords that it maps back to local users.

The 'roy' user needs to be created and have a password set using:

Code:
smbpasswd -a roy


Let me know if this fixes your problem or not.

-Jeremy


A bit late but this indeed did it. I expected no need for this becouse
of the "unix password sync" option.
Back to top
View user's profile Send private message
irwinr
Apprentice
Apprentice


Joined: 11 May 2004
Posts: 152
Location: Texas

PostPosted: Mon Sep 18, 2006 12:11 pm    Post subject: Reply with quote

Yeah, the password sync option just means that when the Samba 'roy' changes his password, Samba will automatically change the pasword for the Unix 'roy'. The accounts are still seperate and have to be created seperately. :)

-Jeremy
Back to top
View user's profile Send private message
beatryder
Veteran
Veteran


Joined: 08 Apr 2005
Posts: 1138

PostPosted: Tue Oct 03, 2006 6:04 am    Post subject: Reply with quote

irwinr wrote:
Yeah, the password sync option just means that when the Samba 'roy' changes his password, Samba will automatically change the pasword for the Unix 'roy'. The accounts are still seperate and have to be created seperately. :)

-Jeremy


Sorry to hijack this thread, but do you have any idea how to make that actually work? I cannot for the life of me figure out why it wont.
_________________
Dont make it idiot proof, make it work.
Neucode.org
<suppressed key>
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum