LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-04-2009, 02:39 AM   #1
linux hates me
Member
 
Registered: May 2009
Distribution: fedora 14 and CentOS 5.5
Posts: 71

Rep: Reputation: 15
Angry NT_STATUS_LOGON_FAILURE fedora 10 with latest samba


I just installed samba and the smb.conf is as follows
Code:
[global]
   workgroup = NUS
   valid users = Admin,Tech
   read only = no
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   netbios name = kiska
   server string = Samba %v on (%L)
   security = user
   hosts allow = 192.168.
   load printers = yes
   printcap name = /etc/printcap
   printing = cups
   cups options = raw
   log file = /var/log/samba/%m.log
   max log size = 50
   passdb backend = tdbsam
   local master = yes
   os level = 33
   domain master = yes
   preferred master = yes
   wins support = no
   dns proxy = no

[homes]
   comment = [Insert Title Here]
   browseable = no
   writeable = yes

[printers]
   comment = All Printers
   path = /usr/spool/samba
   browseable = No
   guest ok = No
   writable = No
   printable = Yes

[businesses]
	path = /home/businesses
	read only = no
I have added a user via

Code:
smbpasswd -a Admin
smbpasswd -e Admin
then I enter

Code:
smbclient //kiska/Admin
enter root's password:
session setup failed: NT_STATUS_LOGON_FAILED
I put in the Admin password and the root's password and neither work. I keep getting that message no matter what I do.

any Ideas

Last edited by linux hates me; 06-04-2009 at 04:14 AM.
 
Old 06-04-2009, 03:21 AM   #2
chitambira
Member
 
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 49
you need to add root as well, and use the same password as the unix password.
# smbpasswd -a root

Quote:
smbclient //kiska/Admin
means you are connecting to a share called Admin, But in your case you dont have that share. If you want to connect as a specific user, you use -U option
If you want to connect to the server, instead, just do:
Quote:
# smbclient //kiska/businesses -U Admin (to connect to share 'businesses'as admin)
# smbclient //kiska/businesses -U root (to connect to share 'businesses' as root)

Last edited by chitambira; 06-04-2009 at 03:24 AM.
 
Old 06-04-2009, 03:35 AM   #3
linux hates me
Member
 
Registered: May 2009
Distribution: fedora 14 and CentOS 5.5
Posts: 71

Original Poster
Rep: Reputation: 15
ok That worked beautifully
now that I have that out of the way, I want to figure out how to see the share "businesses" on my windows xp and vista machines. right now they are not visible in "my network places"

thanx for any imput
 
Old 06-04-2009, 03:40 AM   #4
linux hates me
Member
 
Registered: May 2009
Distribution: fedora 14 and CentOS 5.5
Posts: 71

Original Poster
Rep: Reputation: 15
here is an update of my smb.conf file if it helps any

Code:
[global]
	log file = /var/log/samba/%m.log
	load printers = yes
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	null passwords = yes
	domain master = yes
	hosts allow = 192.168.
	passdb backend = tdbsam
	dns proxy = no
	netbios name = Kiska
	cups options = raw
	writable = yes
	server string = Samba %v on (%L)
	printing = cups
	local master = yes
	workgroup = NUS
	os level = 33
	valid users = Admin,Tech
	printcap name = /etc/printcap
	max log size = 50
	interfaces =  eth0 lo 192.168.1.1 


[IPC$]
    path = /tmp
    hosts allow = 10.143.0.0/16, 127.0.0.1, 10.159.0.0/16, 10.150.0.0/16
    hosts deny = 0.0.0.0/0 


[homes]
   comment = [Insert Title Here]
   browseable = no
   writeable = yes

[printers]
   comment = All Printers
   path = /usr/spool/samba
   browseable = No
   guest ok = No
   writable = No
   printable = Yes

[businesses]
	valid users = Admin,Tech
	public = yes
	path = /home/businesses
	allow hosts = 192.168.
	writeable = yes
        readable = yes
        guest ok = yes

Last edited by linux hates me; 06-04-2009 at 03:55 AM.
 
Old 06-04-2009, 03:49 AM   #5
chitambira
Member
 
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 49
from windows:
Quote:
start --> run --> type: \\kiska\
or:
Quote:
start --> run --> type: cmd --> in command prompt, type: net use M: \\kiska\businesses
if you go to 'My Computer, you should be able to see a drive M: which is your business share
 
Old 06-04-2009, 03:54 AM   #6
linux hates me
Member
 
Registered: May 2009
Distribution: fedora 14 and CentOS 5.5
Posts: 71

Original Poster
Rep: Reputation: 15
in both cases it told me that there was no such directory as \\kiska or that it couldnt find that directory or server
 
Old 06-04-2009, 03:54 AM   #7
chitambira
Member
 
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 49
Quote:
domain master = yes
local master = yes
is this server a domain controller for your domain? If so, are the windows computers joined to the domain?
Can you reach this server form windows (# ping kiska)? is it in the dns? if not, can you ping it with its ip address from windows (ping 192.168.x.x)? if so then try;
net use M: \\192.169.x.x\businesses

Last edited by chitambira; 06-04-2009 at 03:58 AM.
 
Old 06-04-2009, 03:58 AM   #8
linux hates me
Member
 
Registered: May 2009
Distribution: fedora 14 and CentOS 5.5
Posts: 71

Original Poster
Rep: Reputation: 15
I dont think that the linux box is the domain controller. but what does the domain controller do?

the pings came back perfectly

also I just tried "smbclient -L kiska" gave the password and this popped up

Domain=[NUS] OS=[Unix] Server=[Samba 3.2.11-0.30.fc10]
tree connect failed: NT_STATUS_ACCESS_DENIED

hope this proves to be an insight

Last edited by linux hates me; 06-04-2009 at 04:12 AM.
 
Old 06-04-2009, 04:23 AM   #9
chitambira
Member
 
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 49
its denied because you are trying to connect as a windows user (who is not added as a samba user)
i think you need to study more about samba, otherwise your aproach will not make you understand the bigger picture.
You didnt answer all my questions though
Quote:
net use M: \\192.169.x.x\businesses /user:NUS\Admin
in windows command prompt ???

Last edited by chitambira; 06-04-2009 at 04:24 AM.
 
Old 06-04-2009, 04:29 AM   #10
linux hates me
Member
 
Registered: May 2009
Distribution: fedora 14 and CentOS 5.5
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by chitambira View Post
in windows command prompt ???
no the smbclient... was all in the linux box.

in cmd I typed "net view \\kiska" that didnt bring up anything

Quote:
net use M: \\192.169.x.x\businesses /user:NUS\Admin
that code in cmd didnt work either. it said "no network name found"

I also tried in cmd "net view \\192.168.10" its response to that is "access denied"
 
Old 06-04-2009, 04:38 AM   #11
linux hates me
Member
 
Registered: May 2009
Distribution: fedora 14 and CentOS 5.5
Posts: 71

Original Poster
Rep: Reputation: 15
ha ha!

I realized I needed to put "users = Admin" under the [businesses] section. now your mount drive command worked. is there any way to make the computer visible on my network places though. The people I work for like to have it simple and I don't want to have to mount the drive on every single computer
 
  


Reply

Tags
permissions, samba, samba users, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Samba has NT_STATUS_LOGON_FAILURE dwynter Linux - Networking 22 12-16-2007 02:01 PM
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


All times are GMT -5. The time now is 02:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration