LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-16-2003, 07:54 AM   #1
lsgko
Member
 
Registered: Aug 2003
Location: USA
Distribution: Fedora Core 4
Posts: 48

Rep: Reputation: 15
Samba / Host name issue


New install of RH9, trying to get samba up and running.

When I run 'nmblookup SERVER', I get:
name_query failed to find SERVER

When I do: smbclient \\\\SERVER\\user, I get:
adding interface ......
password:
session startup failed: NT_STATUS_LOGON_FAILURE


I tried setting the netbios name in smb.conf but that didn't help. Is there some other place to set the hostname?
Why can't I logon to the same machine?
 
Old 08-16-2003, 08:05 AM   #2
tyler0123
Member
 
Registered: Aug 2003
Posts: 134

Rep: Reputation: 16
if you don't use wins, then the easiest way to do it is to add your computer to the /etc/hosts file. if you have a master browser and use wins, then....please describe your network.. that will make things much easier. sorry but there is so much needless typing if i have to describe every possible scenario. do you have a smbpasswd for your users?
 
Old 08-16-2003, 08:12 AM   #3
lsgko
Member
 
Registered: Aug 2003
Location: USA
Distribution: Fedora Core 4
Posts: 48

Original Poster
Rep: Reputation: 15
This is for on a home network. Haven't setup a master browser and probably won't.
How do I check if I have a smbpasswd?
 
Old 08-16-2003, 08:57 AM   #4
tyler0123
Member
 
Registered: Aug 2003
Posts: 134

Rep: Reputation: 16
okay, i will give you quick rundown. samba uses separate permissions, so you need smbpasswd, or a samba password to access network resources from windows.

anyway, add to your hosts file, /etc/hosts, any computer name, ip, and aliases in the same format as the localhost entry

such as

192.168.0.1 server.domainname server

with your info of course
and any other computers in your home lan with same format.

then use command smbpasswd -a username
type password same as on nt machines for ease

and try smbclient -l computername now

and to mount directories make a directory.

if have a machine called dummy

make a dir called /mnt/dummy

then type, all as one command with no carriage returns:

mount -t smbfs -o username=ntusername,password=ntuserpassword //computernamefromhostsfile/sharename /mnt/dummy

if no errors,

look at /mnt/dummy dir

ls /mnt/dummy

should see contents of file on dummy shared directory. can help more if need it. let me know what happens please.
 
Old 08-17-2003, 08:31 AM   #5
lsgko
Member
 
Registered: Aug 2003
Location: USA
Distribution: Fedora Core 4
Posts: 48

Original Poster
Rep: Reputation: 15
When I ran the smbpasswd -a user name, I got this output:
unable to open passdb database.
Added user.

And I still can login using smbclient \\\\HOST\\user or smbclient -L.

What does "unable to open passdb database" mean? (I used the same password as linux passowrd)

Oddly, though I was able to login from my XP box with the same user name that gave me the unable to open passdb database.

Last edited by lsgko; 08-17-2003 at 08:57 AM.
 
Old 08-18-2003, 02:43 AM   #6
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 253

Rep: Reputation: 32
here we go - one of my other posts:


http://www.linuxquestions.org/questi...threadid=82837

this should be able to help you out!
 
Old 08-18-2003, 10:00 PM   #7
tyler0123
Member
 
Registered: Aug 2003
Posts: 134

Rep: Reputation: 16
unable to open passdb means you haven't added a samba user yet. now if you add another user won't say that.
 
  


Reply


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
Virtual Host issue with apache gauge73 Linux - Networking 1 07-12-2005 03:00 PM
Apache Virtual Host problem - DNS or DHCP issue? costrevs Linux - Software 16 03-23-2005 08:50 AM
Samba host names - how? levand Linux - Networking 3 11-18-2004 05:01 AM
Sendmail issue: Unrecognized host name storemike Linux - Software 0 09-13-2004 01:50 PM
Virtual Host Redirect Issue DigiDave Linux - Software 1 10-23-2003 02:40 PM


All times are GMT -5. The time now is 04:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration