Results 1 to 10 of 10
After installing the samba.I cant access swat.
# $Header: /home/cvsroot/gentoo-x86/net-fs/samba/files/swat.xinetd,v 1.3 2002/05/06 19:57:08 woodchip Exp $
service swat
{
port = 901
socket_type = stream
wait = no
only_from =0.0.0.0/0
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-07-2004 #1Just Joined!
- Join Date
- Aug 2004
- Location
- HeNan,China
- Posts
- 19
How to login swat?
After installing the samba.I cant access swat.
# $Header: /home/cvsroot/gentoo-x86/net-fs/samba/files/swat.xinetd,v 1.3 2002/05/06 19:57:08 woodchip Exp $
service swat
{
port = 901
socket_type = stream
wait = no
only_from =0.0.0.0/0
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
}
when I login swat 3 times by root account,I get the message:
401 Bad Authorization
username or password incorrect.
- 09-07-2004 #2
- 09-08-2004 #3Just Joined!
- Join Date
- Aug 2004
- Location
- HeNan,China
- Posts
- 19
NO ,its meaning is that all in the internet can access my swat.only_from =0.0.0.0/0
I would guess this might be a problem, try changing it to 127.0.0.1 and see what happens...
- 09-08-2004 #4
so u probably wanna change that anyway, allowing anyone access to config files like that's not really a good policy. But i think u r missing the username and pasword yes? Try your root password, this is the one that worked on my computer!
"I am not an alcoholic, alcoholics go to meetings"
Registered Linux user = #372327
- 09-08-2004 #5Just Joined!
- Join Date
- Aug 2004
- Location
- HeNan,China
- Posts
- 19
Yep.I type my root account and password.But I cant login it.
- 09-08-2004 #6
iirc you must run the browser as root too, thus:
and then enter the uri to swat and logon as root there.Code:sudo <browser>
Regards Scienitca (registered user #335819 - http://counter.li.org )
--
A master is nothing more than a student who knows something of which he can teach to other students.
- 09-08-2004 #7Just Joined!
- Join Date
- Aug 2004
- Location
- HeNan,China
- Posts
- 19
No,it dont work.run the browser as root too
- 09-10-2004 #8Just Joined!
- Join Date
- Aug 2004
- Location
- HeNan,China
- Posts
- 19
MY PAM.D CONFIGURATION
#%PAM-1.0
# pam_smbpass.so authenticates against the smbpasswd file
auth required pam_smbpass.so nodelay
account required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_stack.so service=system-auth
password required pam_smbpass.so nodelay smbconf=/etc/samba/smb.conf
samba (END)
- 09-10-2004 #9
just a basic detail check, are you sure swat is running? (probably is, but as it's an assumption and Muphey's law states that if a sandwich can fall two ways it'll fall with the butter facing the floor in most cases - I guess the same goes for services, if there's two states it can be in...)
run as anyuser:
if it says swat is off, run:Code:/sbin/chkconfig --list swat
(use sudo if you're not root)Code:sudo /sbin/chkconfig swat on
Regards Scienitca (registered user #335819 - http://counter.li.org )
--
A master is nothing more than a student who knows something of which he can teach to other students.
- 09-10-2004 #10Just Joined!
- Join Date
- Aug 2004
- Location
- HeNan,China
- Posts
- 19
It can work for execute the command "smbpasswd -a root"


Reply With Quote
