LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-01-2002, 10:15 AM   #1
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
sambaquestions


Ok -
Samba box = slacker.homelinux.net (Slackware 8.0 + Samba 2.2.5)
Windowsb box = beans.homelinux.net (WinMe)

The puzzle is slacker doesn't show up in "My Network places"? And
if I search for slacker.homelinux.net it cann't find it even though
I can ping and ssh to it by name?

I can map the samba share either with ip address or alias "slacker" with
\\slacker\home.

And finaly, after mapping it doesn't request my password.

My smb.conf is attached below for your reading and viewing pleasure.


David
 
Old 07-01-2002, 10:16 AM   #2
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Original Poster
Rep: Reputation: 32
Sorry here my smb.conf

---------------- smb.cnf ----------------------
# Samba config file created using SWAT
# from beans.homelinux.net (192.168.1.3)
# Date: 2002/06/30 10:39:28

# Global parameters
[global]
workgroup = MYGROUP
netbios name = SLACKER
interfaces = eth0
encrypt passwords = Yes
log level = 3

[home]
comment = Home Sweet Home
path = /home/%U
read only = No

[test]
comment = Testing Testing
path = /home/test
read only = No
guest ok = Yes
 
Old 07-01-2002, 06:17 PM   #3
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
The Global section appears fairly sparse. I would think it needs many more settings. I do not know all the defaults for Samba. But the problem described I would suspect a Master Browser issue. I think is part of the nmbd program that comes with Samba. Does the ME machine have file and printer sharing enabled? If it does then try removing it. There are settings to force an election for the master browser that Samba will almost always win. In the /var/log directory you should be able to locate some log files. If they are not there then look in the /usr/local/samba tree. The log files might provide some info as to present condition. Also, a program called smbstatus might of be some help.

As for the passwords prompt issues, I would think the default security level would be "share" and that does not require passwords. However, I am not too sure about this area because I have only worked with share level and not Domain level.

Perhpas some others here may be able to provide more help.

Cheers!
 
Old 08-18-2002, 07:51 PM   #4
snr4999
LQ Newbie
 
Registered: Jul 2002
Location: melaka
Posts: 8

Rep: Reputation: 0
i just run my samba...when i try tu smbclient my pc client there is error said....session request failed ( called name not present ) but i can ping each other..both computer..samba box and client box.....then i try to use my network neigberhood...but i cannnot find samba box.....please help me because i have stuck at this level for 1 week...
 
Old 08-18-2002, 09:34 PM   #5
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
Hello srn4999,

There could be many reasons that you would experience problems. Samba is an excellent package, but it does require configuration on both sides of the shares.

Without knowing your network IP setup or workgroup assignments, etc. It is difficult to provide much of an answer. But I will be glad to post a working smb.conf file that you should be able to config for your needs.

# Global parameters
[global]
netbios name = Gateway
workgroup = HOMENET
unix realname = no
server string = Samba Server
bind interfaces only = True
interfaces = eth1
security = SHARE
log file = /var/log/samba.%m
max log size = 150
keepalive = 60
max open files = 500
socket options = TCP_NODELAY SO_KEEPALIVE=1
os level = 33
preferred master = Yes
domain master = Yes
dns proxy = No
hosts allow = 192.168.
oplocks = Yes

[userdata]
comment = Network Data Share
path = /home
read only = No
guest ok = Yes

[Printer_1]
comment = Network Win Laser
path = /tmp
read only = No
guest ok = Yes
print ok = Yes
printer name = laser
share modes = No


There are probably a hundred or more other options that can be included as well. It is very possible that you would need some of them. For instance, the file above is SHARE level security only and setup for lpd printing system on the printer share. I have to config differently on another machine that is running CUPS. But the above config should allow at least enough to get you started. You will need to change some to YOUR settings. The WORKGROUP, INTERFACES, and HOSTS ALLOW statements especially. The "interfaces", "bind interfaces only" and "hosts allow" could be remarked out for testing. But I would enable them as early as possible for security reasons if internet capable. Unless you really want to give everybody in the world access to your drive shares or something. The printer share well probably need some mods as well. Like the actual "printer name" to assign.

After making any changes to the files both smbd and nmbd will need to be restarted. This can usually be done by

/etc/rc.d/rc.samba restart

If the command doesn't work, then perhaps Samba is not even running. The command has to be manually installed I think from the /usr/doc/samba-2.2.4/examples directory into the /etc/rc.d directory. The Samba version is for Slack 8.1.

All machines need to be in the same WORKGROUP and also need to be on the same IP network and subnet mask for broadcasting work to locate the Master Browser. If this statement is not understood, then perhaps post your IP's and subnet mask if private network. If other then email me.

If your Winbox has file and printer sharing enabled. Disable at least for the testing purposes.

Perhaps this is enough for now to start with. There is also excellent documentation in the /usr/doc/samba-2.2.4/docs directory.

Good luck.
 
Old 08-18-2002, 11:31 PM   #6
wartstew
Member
 
Registered: Apr 2002
Location: Albuquerque, NM USA
Distribution: Slackware, Ubuntu, Debian, Maemo
Posts: 464

Rep: Reputation: 30
Are you sure you have the nmbd daemon running? Do a "ps -A |less" to find out. I had to enable it in my /etc/initd.conf file (smbd, and swat too) to get it to startup when requested.
 
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:34 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