Linux - NewbieThis 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.
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.
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?
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.