LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-22-2003, 05:32 PM   #16
acb67
Member
 
Registered: Jun 2002
Posts: 50

Rep: Reputation: 15

what version of samba are you using?
 
Old 07-23-2003, 12:58 PM   #17
gale01
LQ Newbie
 
Registered: Jul 2003
Location: Dublin
Distribution: Redhat
Posts: 2

Rep: Reputation: 0
Samba contained in Redhat Linux 8.0.
 
Old 08-29-2003, 05:15 AM   #18
vaishvila
LQ Newbie
 
Registered: Aug 2003
Location: Belgium
Distribution: RedHat 8.0
Posts: 1

Rep: Reputation: 0
NT_STATUS_LOGON_FAILURE

The feedback on making a samba password file in /etc/samba, then adding users was great, I had been looking for that in the Samba documentation and couldn't find it.

Unfortunately, I still get subj error when I try to connect to my linux client with smbclient //hostname/username

testparm works great, and so does smbclient -L hostname
when I type the root password at the prompt to see local shares, the root password is accepted.

But the user passwords are rejected. Tried rebooting, also installed webmin - assume there's a sync problem somewhere, but webmin has way more features than I'm prepared to use right now.

Also tried installing swat
I created a swat file in xinetd.d and added/enabled tcp port 901, but the server path in the swat file is not correct - I couldn't find a bin directory under samba, not sure why. Samba was prepackaged with the RedHat 8.0, rpm-qa | grep samba shows version 2.2.7-5.8.0 plus samba-client and samba-common, so it doesn't look like anything is missing.

I feel a long way off from connecting to other PCs on my LAN
 
Old 10-18-2004, 07:54 PM   #19
blue ice
LQ Newbie
 
Registered: Sep 2003
Location: Belgium - Leuven
Distribution: Slackware 9.0
Posts: 3

Rep: Reputation: 0
Perhaps a bit too late to reply
but I've also been hassling with this problem
... and found the solution
I also created that smbpasswd file with mksmbpasswd ... and I think that's the problem

so I did "cat /dev/nul > /etc/samba/smbpasswd"
after that "smbpasswd -a thomas"
works like a sharm

my smb conf is

Code:
[global]
workgroup = DUPAS
log level = 1
socket options = TCP_NODELAY IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
max xmit = 65535
read only = no
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
map to guest = Bad User
restrict anonymous = yes
security=user
guest ok = no
domain master = no
preferred master = yes
max protocol = NT
ldap ssl = No
server signing = Auto

[homes]

[Windows]
path = /mnt/windows

[WD]
path = /mnt/wd
I hope that the confusion 'bout this problem gets solved. Because there ain't many people who really post their solution when they finally found it
 
Old 10-18-2004, 08:27 PM   #20
Asificare
Member
 
Registered: Jul 2003
Location: The Land Downunder
Distribution: Mandrake 10
Posts: 80

Rep: Reputation: 15
Thanks for that tip blue ice, I was having the same problem, mainly confusion though

The command you posted need modifying as it is missing an 'l' of the word null, so it should read:

cat /dev/null > /etc/samba/smbpasswd

Then add/modify the passwords for the users already in the system I still had errors after this, but that was because I was so used to inputting the SU password, it kept failing, until I woke up and put my users password in, then it gave me results, like so :

[root@localhost richard]# smbclient -L localhost
Password:
Domain=[LOCALHOST] OS=[Unix] Server=[Samba 3.0.6]

Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (Linux Shares)
ADMIN$ IPC IPC Service (Linux Shares)
Printer Printer EPSON Stylus C41
richard Disk Home Directories
Domain=[LOCALHOST] OS=[Unix] Server=[Samba 3.0.6]

Server Comment
--------- -------

Workgroup Master
--------- -------


I do not get anything under server or workgroup, is this a problem?

Cheers
Asif
 
Old 10-18-2004, 10:41 PM   #21
biglaz
LQ Newbie
 
Registered: Jan 2004
Distribution: RedHat 9
Posts: 18

Rep: Reputation: 0
I'm also having this problem! I've tried both piping /etc/passwd through mksmbpasswd.sh then doing smbpasswd username; and starting with a blank file but using 'smbpasswd -a'; both lead these errors:

[root@localhost samba]# smbclient //localhost/Test
Password:
session setup failed: NT_STATUS_LOGON_FAILURE

[root@localhost samba]# smbclient //localhost/myuser
Password:
session setup failed: NT_STATUS_LOGON_FAILURE


smb.conf:
Code:
[global]
 workgroup = HOME
 netbios name = SERVERA
 server string = Samba Server
 hosts allow = 173.221.0 127.
 interfaces = wlan0 lo
 bind interfaces only = yes
 load printers = no
 guest ok = no
 log file = /var/log/samba/smbd.log
 max log size = 1000
 security = user
 encrypt passwords = yes
 smb passwd file = /etc/samba/smbpasswd
 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 dns proxy = no
[homes]
 comment = Home Directories
 browseable = no
 writable = yes
[Test]
 comment = Test Dir
 path = /home/test
 browseable = yes
 writable = yes
 read only = no
"smbclient -L localhost" output:
Code:
[root@localhost samba]# smbclient -L localhost
Password:
Anonymous login successful
Domain=[HOME] OS=[Unix] Server=[Samba 3.0.7]

        Sharename       Type      Comment
        ---------       ----      -------
        Test            Disk      Test Dir
        IPC$            IPC       IPC Service (Samba Server)
        ADMIN$          IPC       IPC Service (Samba Server)
Anonymous login successful
Domain=[HOME] OS=[Unix] Server=[Samba 3.0.7]

        Server               Comment
        ---------            -------
        SERVERA              Samba Server

        Workgroup            Master
        ---------            -------
        HOME                 SERVERA
Any help would be appreciated. This is starting to get frusterating Thanks!

EDIT:
I got the logins to work by using the "-U" tag.
smbclient //localhost/Test -U username

Last edited by biglaz; 10-19-2004 at 12:05 AM.
 
Old 12-10-2004, 01:25 PM   #22
debaire
LQ Newbie
 
Registered: May 2003
Location: Los Angeles, CA
Distribution: RHEL AS 4
Posts: 22

Rep: Reputation: 15
Doing the smbpasswd 'username' did the trick.
 
Old 12-16-2007, 02:01 PM   #23
scholarlv
LQ Newbie
 
Registered: Dec 2007
Posts: 1

Rep: Reputation: 0
What i did to resolve this problem..

Here is my testparm output. I am using Ubuntu Server 7.10 Gutsy Gibbon. Did install of LAMP, Samba install. I don't use Webmin or SWAT. I just built a VMWare Server to start testing different flavors of unix.

[global]
workgroup = (mynetwork)
server string = %h server (Samba, Ubuntu)
obey pam restrictions = Yes
passdb backend = tdbsam
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d
invalid users = root
hosts allow = 192.168.

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0700
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

[vm]
comment = Virtual Machine
path = /var/lib/vmware/
guest ok = Yes

It seems like you need to create your Samba users.
By doing: sudo smbpasswd -a username

It will prompt you for password. Then it should work just fine. I hope this helps most of you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba NT_STATUS_LOGON_FAILURE...Help please nikd Linux - Networking 5 01-14-2010 12:25 AM
Simple Samba and PAM -> NT_STATUS_LOGON_FAILURE subspawn Linux - Software 1 01-17-2005 07:41 AM
NT_STATUS_LOGON_FAILURE Samba Problem jmvetter Linux - Software 0 10-10-2004 11:18 PM
SAMBA:NT_STATUS_LOGON_FAILURE on linux Tyir Linux - Networking 4 12-22-2003 11:24 PM
SAMBA error: NT_STATUS_LOGON_FAILURE kkempter Linux - Software 0 06-04-2003 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration