Page 2 of 3

Re: Samba problems

Posted: Tue Nov 11, 2008 1:45 am
by tmoble
can your win explorer see it all? Or is it seeing it but not accepting your logon?

if you open a DOS prompt window and type in the command

Code: Select all

ping ubu64
does it reply?

Re: Samba problems

Posted: Tue Nov 11, 2008 1:47 am
by KE1HA
@ jcfuller -

Can you post what you added to the smb.conf file as well as what username you added when you did the following:

sudo smbpasswd -a {user-name} <-- What did you use for the user-name ?

Also, what folding user-name are your applications installed under?

I have (1) user on my UB boxes, KE1HA and the SMP client as well as the GPU2 client are installed under that account, so my share path is:

path = /home/ke1ha/foldingathome

Samba UserName = ke1ha
Samba Passwrd = 123456789

Re: Samba problems

Posted: Tue Nov 11, 2008 2:06 am
by jcfuller
I only have one user.

[FAH-SHARE1]
comment = Share for gpu client
path = /home/jamesubu64/fahgpu2
available = yes
browsable = yes
writable = yes

jamesubu64 used for sambpasswd

everything installed under jamesubu64

James

Re: Samba problems

Posted: Tue Nov 11, 2008 2:27 am
by KE1HA
jcfuller wrote:I only have one user.

[FAH-SHARE1]
comment = Share for gpu client
path = /home/jamesubu64/fahgpu2
available = yes
browsable = yes
writable = yes

jamesubu64 used for sambpasswd

everything installed under jamesubu64

James

Edit smb.conf as follows:

Code: Select all

[FAH]
comment = Share for gpu client
path = /home/jamesubu64/fahgpu2
public = yes
available = yes
browsable = yes
writeable = yes
guest ok = yes
Then restart Samba with:

Code: Select all

sudo /etc/init.d/samba restart  
and Post results here.

Open ( IE ) and put in the address bar: \\192.168.x.x\ or whatever your IP address is, where x.x is the rest of the IP address and hit enter.

You should get a windows box pop up:

Username = jamesubu64 - assiming you used ( jamesubu64 ) when you entered it: sudo smbpasswd - a jamesubu64
Password = jamesubu64

If this doesn't work, then there's something wrong with your smb username and smbpasswd combination. You should then re-enter the UN & PW [ sudo smbpasswd - a jamesubu64 ], restart Samba then try to browse to it again.

Lets us know the results.
.

Re: Samba problems

Posted: Tue Nov 11, 2008 4:07 am
by tmoble
OK, so I'm not afraid to look dumb:

@KE1HA, I've installed U8.1 per your guide and everything is working great. The only servers I added were smbd and sshd. Looking at the running processes I don't see anything resembling a web server running or anything attached to port 80 or 8080. You're asking jcfuller to send an http connection request to his ubuntu box, what exactly would serve out the reply? I'm not aware of samba answering http requests, only smb protocol stuff. Has there been some development in samba that I missed?

Thanks again for taking the time and trouble to write up such a comprehensive guide. My nasty issue with frequent kernel oopses has completely disappeared since installing Ubuntu81 per your guide.

Re: Samba problems

Posted: Tue Nov 11, 2008 6:38 am
by KE1HA
No worries, glad it all sorted or I hope it is anyway.

You could use Widows Explorer or network neighborhood or anything to navigate to the share connection, it has nothing to with running a Web-Server on HTTP / HTTPS, that's a discussion for another thread :wink: .. I've built plenty Apache Servers. :eugeek: so when you want to set up a Virtual Web Service, UB is definately an easy route.

I just finished doing the updates / upgrades to UB-8.10 Server .. downloads were seriously slow this evening. Going to install SSH and work through the GPU2 guide on a fresh install and see if I can get it to work, if it does, I have two more boxes to reconfigure.

Re: Samba problems

Posted: Tue Nov 11, 2008 6:43 am
by tmoble
Jeez, what a dummy I am sometimes. Hyperlife is the writer of the guide, I've been erroneously crediting KE1HA. Maybe I'll try getting more then 4 hours sleep someday. Sorry to both of you.

Re: Samba problems

Posted: Tue Nov 11, 2008 6:48 am
by tmoble
here's what I get trying to http to my U8.1 server that has no apache or other http server running:



Failed to Connect

Firefox can't establish a connection to the server at 192.168.1.108.

Though the site seems valid, the browser was unable to establish a connection.

* Could the site be temporarily unavailable? Try again later.
* Are you unable to browse other sites? Check the computer's network connection.
* Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.

Re: Samba problems

Posted: Tue Nov 11, 2008 6:54 am
by KE1HA
Oh, that guide yeah, that thing is AWESOME !! Im going though it now. I was wondering what your were talking about .. :lol:

EDIT: Looks like all is resolved. That's a good thing :mrgreen:
.

Re: Samba problems

Posted: Tue Nov 11, 2008 9:45 am
by jcfuller
Thank You VERY much KE1HA. The additions of either public or guest was the key. FahMon can now monitor!
Also thanks tmoble for your contributions.
Just a note: there is no login PopUp when using Windows Explorer now.

James

Re: Samba problems

Posted: Tue Nov 11, 2008 10:05 am
by KE1HA
jcfuller wrote:Thank You VERY much KE1HA. The additions of either public or guest was the key. FahMon can now monitor!
Also thanks tmoble for your contributions.
Just a note: there is no login PopUp when using Windows Explorer now.
James
No problem jc, glad we got it sorted. I made a typo though. I couldn't remember which gave ascess without authentication, so I added both, or tried too .. :mrgreen:

guest = ok

should have been

guest ok = yes


EDIT No Windoze Pop-Up is because it's Public on your LAN now (I Think). You can test it by rebooting your WinDoze box, and browse to it again. If no Pop-Up, that's the reason.

Re: Samba problems

Posted: Tue Nov 11, 2008 6:39 pm
by Hyperlife
tmoble wrote:Jeez, what a dummy I am sometimes. Hyperlife is the writer of the guide, I've been erroneously crediting KE1HA. Maybe I'll try getting more then 4 hours sleep someday. Sorry to both of you.
Glad you found it helpful. I considered putting some instructions for configuring Samba in with it, but I figured that might complicate things too much. A separate thread was a better idea.

Re: Samba problems [SOLVED]

Posted: Tue Nov 11, 2008 6:56 pm
by tmoble
I need to get off my duff and do the parm thing, it'll eliminate most of the conf file and keep the lines actually used. Maybe I can get time this afternoon.

Re: Samba problems [SOLVED]

Posted: Tue Nov 11, 2008 7:26 pm
by tmoble
here's the actual text being used in my smb.conf file. this is the result of running the testparm -s on the file. testparm -s strips out all the comments, leaves the stuff actually being used.

[global]
workgroup = 20310
server string = %h server (Samba, Ubuntu)
interfaces = 127.0.0.0/8, eth0
map to guest = Bad User
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d

[homes]
comment = Home Directories
read only = No
create mask = 0775
directory mask = 0775
browseable = No

[cdrom]
comment = Samba server's CD-ROM
path = /cdrom
locking = No

looks a little simpler, eh? Now, the command given in the file is

Code: Select all

testparm -s smb.conf.master >smb.conf
, but I modified it slightly to

Code: Select all

 sudo  testparm -s smb.conf >smb.conf.bak
so I could look at it before altering my working conf file. Then I make a copy of the working file and mv the new mini-file to the real file.

Code: Select all

sudo cp smb.conf smb.conf.testparm.bak
sudo mv smb.conf.bak smb.conf

Re: Samba problems [SOLVED]

Posted: Tue Nov 11, 2008 7:39 pm
by tmoble
oof, did I mention restarting samba?

Code: Select all

sudo /etc/init.d/samba restart
will do it