IntelliJ Java IDE
The moose likes Linux / UNIX and the fly likes SAMBA config. on Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "SAMBA config. on Linux" Watch "SAMBA config. on Linux" New topic
Author

SAMBA config. on Linux

Frank Lin
Ranch Hand

Joined: Jan 26, 2001
Posts: 76
Has anyone setup samba on Linux successfully? I had Red Hat 6.2 and went through the config. in /etc/smb.conf. The daemons of smbd and nmdb started OK, but when I tried smbclient -L locolhost, it came back with error: Can not start smb session. Any ideas?
Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15040

I was able to get it working on RH 7.1, 7.2 and Mandrake 8.0 and 8.1.
In the smb.conf file, usually be default there is a line commented with a ; that says IP's Allowed. Make sure that is uncommented and you add your IP to the list. You only need the first 3 octets of the IP followed by a dot. i.e. 127.0.0.
That was the key to getting mine to work. What was the error message when you tried it? That would help me help you a little better because in getting it to work, I probably ran across every error possible.


My Blog | DZone Articles
Frank Lin
Ranch Hand

Joined: Jan 26, 2001
Posts: 76
Gregg,
Thanks for the reply. The message that I got when starting smbclient is
session request to localhost failed
session request to *SMBSERVER failed
I wish there were more meaningful message that may hint what is wrong.
If you don't mind, could you list steps and parameters to get samba up and running? At least that could help to rule out any possible installation problem on my machine.
Thanks.
Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15040

You bet I will. Though it will be later before I can. I need to get my paper from home where I wrote down the entire process. I can give you a link that will help you. This is how I learned to do it.
http://us1.samba.org/samba/samba.html
That is the homepage for the following link:
http://us1.samba.org/samba/docs/Samba-HOWTO-Collection.html
That link is awesome, tells you almost everything you need to know to get it up and running. Let me know if you still need my process, but it is basically taken from that page.
Frank Lin
Ranch Hand

Joined: Jan 26, 2001
Posts: 76
Gregg,
Thank you for your help. It works.
Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15040

Np problem, glad I could help.
Go Linux!!
 
IntelliJ Java IDE
 
subject: SAMBA config. on Linux
 
Threads others viewed
access different file system
Access Linux NFS from windows?
printing in Linux
Linux Windows co-exist : How to
Wondows from Linux
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com