Click to See Complete Forum and Search --> : SWAT and user identification
Olydus
08-12-2002, 06:43 PM
I'm having some trouble getting swat to work. What's happening is if I try to connect to localhost:901 it asks me for the password and then fails me with the message "authentication failed: username or password incorrect". I tried resetting both the root password using passwd and smbpasswd but it still doesn't work. If I disable the user authentication using the -a flag it errors on me saying I can't connect to port 901. Here's a couple files
/etc/xinetd.d/swat:
service swat
{
port = 901
socket_type = stream
wait = no
only_from = 127.0.0.1 10.10.10.148
user = root
server = /usr/sbin/swat
log_on_failure +=USERID
disable = no
}
/etc/hosts.deny
swat: ALL EXCEPT 127.0.0.1 10.10.10.148 127.0.0.0
(note: including 127.0.0.0 was suggested in a thread somewhere)
/etc/services has the line:
swat 901/tcp
I'm not sure where to go from here. It looks like the 901 port is open, the ip numbers I'm trying to access it from is allowed, I've reset my password a few times....what am I missing?
Olydus
08-13-2002, 03:06 PM
Just to add some more information if I try to access swat through webmin it gives me the following error:
You cannot run SWAT through Webmin, as your Samba configuration has the Only allow:... (allow hosts) option set.
But for the life of me I swear I've set every 'Only allow' I can find, but I don't know which one this is....is there a setting within webmin?
mdwatts
08-13-2002, 03:25 PM
Could it be something in /etc/hosts.allow?
Olydus
08-13-2002, 03:50 PM
My hosts.allow file is blank.
mdwatts
08-13-2002, 04:20 PM
Just noticed
swat: ALL EXCEPT 127.0.0.1
Wouldn't that stop you from using swat? 127.0.0.1 is localhost.
Of course the obvious question.
You do realize that Linux is case sensitive including passwords?
Olydus
08-13-2002, 05:01 PM
The 'ALL EXCEPT' is in the hosts.deny file. So it should prevent every ip from accessing except for 127.0.0.1 (and the others listed). At least that's what I believe should happen :)
For the sake of simplicity I keep my passwords lower case.
Thanks.
mdwatts
08-13-2002, 05:15 PM
Your right. I should have thought of that.
Since I don't have much experience with Samba/Swat and unless someone else can come up with a solution, I will just suggest you try these Google for Linux search results for "swat authentication failed" (http://www.google.com/linux?hl=en&lr=&ie=ISO-8859-1&q=swat+authentication+failed&btnG=Google+Search) and see if you can find anything that helps.
Olydus
08-13-2002, 05:45 PM
I've searched on that a few times but it's not hitting my problem, the web page is bad or the one person I found who had this exact problem never got answered.
I'm able to at least connect on my linuxbox. It's giving me "Site: SWAT at 127.0.0.1" and asking for a name and password. A book I bought tells me that it's looking at the main unix password file and using that. But I'm using the same password as when I 'su -'. Gah, I'm frustrated. I hope someone else here knows what's happening here.
Thanks for the help.
mdwatts
08-13-2002, 06:15 PM
Have you read the smbpasswd manpage especially the part about the smbd daemon being active?