Samba problems [SOLVED]

Please confine these topics to things that would be of general interest to those who are interested in FAH which don't fall into any other category.

Moderator: Site Moderators

tmoble
Posts: 58
Joined: Mon Dec 03, 2007 7:19 am
Location: Glendale, Az

Re: Samba problems

Post 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?
KE1HA
Posts: 17
Joined: Fri Dec 21, 2007 12:03 am
Hardware configuration: Beta Rig - All Stock For Testing
| Q9770 3.2GHz | Rampage Formula | 4GB OCZ Reaper 8500
| BFG 8800 GTS | Raptor 73GB | G15 | Razer Copperhead |
| ASUS MK2401H HDMI @ 1920x1200 |
Location: San Jose, CA
Contact:

Re: Samba problems

Post 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
Image
2x - Q6600 1 with 2x 9800GT's / 1 with 2x 8800GTS G92 512's UB-8.04 CLI Only
2x - AMD 9850 1 with 3x 9800 GT's / 1 with 1x 9800 GT's UB-8.04 CLI Only
1x - QX9770 GTX-280 WinDoze Vista 64
jcfuller
Posts: 10
Joined: Thu Oct 30, 2008 11:22 am
Location: Fort Edward, NY

Re: Samba problems

Post 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
KE1HA
Posts: 17
Joined: Fri Dec 21, 2007 12:03 am
Hardware configuration: Beta Rig - All Stock For Testing
| Q9770 3.2GHz | Rampage Formula | 4GB OCZ Reaper 8500
| BFG 8800 GTS | Raptor 73GB | G15 | Razer Copperhead |
| ASUS MK2401H HDMI @ 1920x1200 |
Location: San Jose, CA
Contact:

Re: Samba problems

Post 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.
.
Image
2x - Q6600 1 with 2x 9800GT's / 1 with 2x 8800GTS G92 512's UB-8.04 CLI Only
2x - AMD 9850 1 with 3x 9800 GT's / 1 with 1x 9800 GT's UB-8.04 CLI Only
1x - QX9770 GTX-280 WinDoze Vista 64
tmoble
Posts: 58
Joined: Mon Dec 03, 2007 7:19 am
Location: Glendale, Az

Re: Samba problems

Post 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.
KE1HA
Posts: 17
Joined: Fri Dec 21, 2007 12:03 am
Hardware configuration: Beta Rig - All Stock For Testing
| Q9770 3.2GHz | Rampage Formula | 4GB OCZ Reaper 8500
| BFG 8800 GTS | Raptor 73GB | G15 | Razer Copperhead |
| ASUS MK2401H HDMI @ 1920x1200 |
Location: San Jose, CA
Contact:

Re: Samba problems

Post 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.
Image
2x - Q6600 1 with 2x 9800GT's / 1 with 2x 8800GTS G92 512's UB-8.04 CLI Only
2x - AMD 9850 1 with 3x 9800 GT's / 1 with 1x 9800 GT's UB-8.04 CLI Only
1x - QX9770 GTX-280 WinDoze Vista 64
tmoble
Posts: 58
Joined: Mon Dec 03, 2007 7:19 am
Location: Glendale, Az

Re: Samba problems

Post 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.
tmoble
Posts: 58
Joined: Mon Dec 03, 2007 7:19 am
Location: Glendale, Az

Re: Samba problems

Post 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.
KE1HA
Posts: 17
Joined: Fri Dec 21, 2007 12:03 am
Hardware configuration: Beta Rig - All Stock For Testing
| Q9770 3.2GHz | Rampage Formula | 4GB OCZ Reaper 8500
| BFG 8800 GTS | Raptor 73GB | G15 | Razer Copperhead |
| ASUS MK2401H HDMI @ 1920x1200 |
Location: San Jose, CA
Contact:

Re: Samba problems

Post 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:
.
Last edited by KE1HA on Tue Nov 11, 2008 9:53 am, edited 3 times in total.
Image
2x - Q6600 1 with 2x 9800GT's / 1 with 2x 8800GTS G92 512's UB-8.04 CLI Only
2x - AMD 9850 1 with 3x 9800 GT's / 1 with 1x 9800 GT's UB-8.04 CLI Only
1x - QX9770 GTX-280 WinDoze Vista 64
jcfuller
Posts: 10
Joined: Thu Oct 30, 2008 11:22 am
Location: Fort Edward, NY

Re: Samba problems

Post 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
KE1HA
Posts: 17
Joined: Fri Dec 21, 2007 12:03 am
Hardware configuration: Beta Rig - All Stock For Testing
| Q9770 3.2GHz | Rampage Formula | 4GB OCZ Reaper 8500
| BFG 8800 GTS | Raptor 73GB | G15 | Razer Copperhead |
| ASUS MK2401H HDMI @ 1920x1200 |
Location: San Jose, CA
Contact:

Re: Samba problems

Post 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.
Image
2x - Q6600 1 with 2x 9800GT's / 1 with 2x 8800GTS G92 512's UB-8.04 CLI Only
2x - AMD 9850 1 with 3x 9800 GT's / 1 with 1x 9800 GT's UB-8.04 CLI Only
1x - QX9770 GTX-280 WinDoze Vista 64
Hyperlife
Posts: 192
Joined: Sun Dec 02, 2007 7:38 am

Re: Samba problems

Post 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.
Image
tmoble
Posts: 58
Joined: Mon Dec 03, 2007 7:19 am
Location: Glendale, Az

Re: Samba problems [SOLVED]

Post 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.
tmoble
Posts: 58
Joined: Mon Dec 03, 2007 7:19 am
Location: Glendale, Az

Re: Samba problems [SOLVED]

Post 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
tmoble
Posts: 58
Joined: Mon Dec 03, 2007 7:19 am
Location: Glendale, Az

Re: Samba problems [SOLVED]

Post by tmoble »

oof, did I mention restarting samba?

Code: Select all

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