Problem with SWAT (SAMBA)

Soldato
Joined
18 Oct 2002
Posts
7,622
Location
SX, unfortunately
I'm hoping this is me being dumb, and it's a nice simple problem to fix. I can't get into SWAT to configure my Samba server. Ok, I know I could do it manually, but I'm still a noob and like to do it with swat. Basically, I put the wrong password in, and it's locked me out :(

I don't even get eth opportunity to enter a username password anymore when I put http://localhost:901 all I get is a 401 Bad auth error. I've had a look in the password window in mozilla, and it isn;t stored there. How the heck do I get to put the user name and password in?

Any help greatly appreciated!!!
 
Hi peeps, cheers for the responses.

Shak: maybe when I'm a bit more proficient with Samba I might go back to webmin for it (I tried it last tiem I locked myslef out. I've had this problem before!)

Deano: good idea, but unfortunately no go. Tried it with nautilus and it just sat there, didn't even get to the 401 error :(

Mpemba Effect: Already done all that, just trying to get into swat to configure samba itself, I've used it before, just seem to keep locking myself out :(

Just started playing again, and so far no go :(

edit: OOH, I'm in! In desperation I installed Webmin (was gonna do it sometime anyway!) and I'd forgotten about teh link in that to Swat. Click on that and wahey. Right, time to trash this thing :D
 
Last edited:
lol yeah I know dat :) I've set it to start the thing on bootup. What I meant is getting a share set up and getting windows machines to talk to it. I've got it showing on the network, but that's about it. Havn't got in yet. I think it's a password/user problem, so it'll be RTFM day again tommorow :D I keep having to run downstairs to try it cos my xp machine is being a pig and refusing to talk to anything on the workgroup.
 
I get an access denied box :( Still can't get my XP box to show workgroup computers, thought it might be the firewall, but doesn't seem to be. The machine I've been trying to log on with is a win98 machine. Think I want to get my XP box sorted first.
 
Hmm, dunno what I did, but XP machine now lets me view workgroup. Clicked on it, and no go, same error as the W98 machine:

\\samba server is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.

The network path was not found.
 
Code:
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2002/10/24 18:08:01

# Global parameters
[global]
	netbios name = SAMBA
	server string = Samba
	security = SHARE
	encrypt passwords = Yes
	obey pam restrictions = Yes
	pam password change = Yes
	passwd program = /usr/bin/passwd %u
	passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
	unix password sync = Yes
	log file = /var/log/samba/%m.log
	max log size = 0
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	load printers = No
	os level = 65
	preferred master = True
	local master = No
	dns proxy = No
	default service = global
	comment = public directory
	path = /home/public
	guest account = smbuser
	read only = No
	guest only = Yes
	guest ok = Yes
	max connections = 3
	printing = lprng

[test]
	comment = Home Directories
	create mask = 0664
	directory mask = 0775
	guest only = No

Ok, I admit I didn't have the encrypt passowrds in, but doesn't seem to have made any difference.

I guess I aught to put what i'm trying to achieve:

I have a network with a number of machines attached. There is a cable modem router which is also acting as the DHCP server. I want to use the samba server as a media server, ie. store all my DVD's and CD's on it for anyone on teh network to access when they like. No passwords needed or anything (hopefully!). I will when I get it working limit the access to IP addresses in the range offered by the router (i.e. no WAN access).

So can anyone spot where I'm going wrong?

Cheers.
 
lol, ok, been to the pub for a while so maybe not so coherent :)

All I want is a totally generic share. I just weant a whole ton (as in about a terrabyte eventually) of files to be available over my LAN. I've had this thing working before, and I'm pretty sure that it's anetowrk problem, rather than a share problem. I checked the DHCP table on my router earlier, and the server ain't showing up :( It is however showing up in the workgroup on the computers on the LAN. TBH me and networking = uh oh :) I used to be fairly ok when BBC's whre teh game, but PC's and networking = noob. But because I can get to the share locally (i.e. on the linux machine) I think it;s a network problem. Maybe cos I have dynamically (DHCP) allocated IP's or something the host file is knackered. I dunno :( None of the help files with samba or on samba.org have covered my problem, some are close, but I don't get teh same symptoms.

As I say above, I've had it working before, which is teh most annoying part!!!
 
Right, I'm beginning to get somewhere! The Win98 laptop got an enter password box earlier with IP$ or something as the username. Now I saw that mentioned in one of the samba problems files I've nosed at over the last couple of days. Will look at that tommorow. However...

I'm logged into the share with my XP machine :D


Here's the smb.conf:

Code:
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2002/10/25 22:12:35

# Global parameters
[global]
	netbios name = SERVER
	server string = Samba %V
	encrypt passwords = Yes
	socket options = TCP_NODELAY IPTOS_LOWDELAY
	os level = 33
	preferred master = True
	default service = shared
	remote announce = 192.168.0.1
	guest account = smbguest

[shared]
	comment = shared space; for everyone
	path = /home/public
	force group = public
	read only = No
	force create mode = 0440
	force directory mode = 0775
	guest ok = Yes

The remote announce line is ther cos I'm still trying to get the thing to show in the DHCP table on my router. No joy tho (but I'm not that bothered!). Just tried it and I have read and write permissions. I do believe I'm getting there.

Cheers for your help guys. I'm now back to where I was about 6 weeks ago when I last had a play. Hmm. Noobs :D

I still think it had a lot to do with either: NetBIOS configuration on the XP machine (which I've been tinkereing with a fair bit, and I can now view the comps in WORKGROUP nice and quick :)); Master browsing configuration on the samba machine; me being a muppet.
 
Back
Top Bottom