View previous topic :: View next topic |
Author |
Message |
RoyN n00b
Joined: 07 Sep 2006 Posts: 2
|
Posted: Thu Sep 07, 2006 3:26 pm Post subject: Samba authentication fails [SOLVED] |
|
|
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 |
|
|
irwinr Apprentice
Joined: 11 May 2004 Posts: 152 Location: Texas
|
Posted: Fri Sep 08, 2006 3:29 am Post subject: |
|
|
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:
Let me know if this fixes your problem or not.
-Jeremy |
|
Back to top |
|
|
RoyN n00b
Joined: 07 Sep 2006 Posts: 2
|
Posted: Mon Sep 18, 2006 11:11 am Post subject: |
|
|
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:
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 |
|
|
irwinr Apprentice
Joined: 11 May 2004 Posts: 152 Location: Texas
|
Posted: Mon Sep 18, 2006 12:11 pm Post subject: |
|
|
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 |
|
|
beatryder Veteran
Joined: 08 Apr 2005 Posts: 1138
|
Posted: Tue Oct 03, 2006 6:04 am Post subject: |
|
|
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 |
|
|
|