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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-16-2003, 06:54 AM
|
#1
|
Member
Registered: Aug 2003
Location: USA
Distribution: Fedora Core 4
Posts: 48
Rep:
|
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?
|
|
|
08-16-2003, 07:05 AM
|
#2
|
Member
Registered: Aug 2003
Posts: 134
Rep:
|
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?
|
|
|
08-16-2003, 07:12 AM
|
#3
|
Member
Registered: Aug 2003
Location: USA
Distribution: Fedora Core 4
Posts: 48
Original Poster
Rep:
|
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?
|
|
|
08-16-2003, 07:57 AM
|
#4
|
Member
Registered: Aug 2003
Posts: 134
Rep:
|
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.
|
|
|
08-17-2003, 07:31 AM
|
#5
|
Member
Registered: Aug 2003
Location: USA
Distribution: Fedora Core 4
Posts: 48
Original Poster
Rep:
|
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 07:57 AM.
|
|
|
08-18-2003, 09:00 PM
|
#7
|
Member
Registered: Aug 2003
Posts: 134
Rep:
|
unable to open passdb means you haven't added a samba user yet. now if you add another user won't say that.
|
|
|
All times are GMT -5. The time now is 04:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|