Find the answer to your Linux question:
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.
  1. #1
    Just 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.

  2. #2
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    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...
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  3. #3
    Just Joined!
    Join Date
    Aug 2004
    Location
    HeNan,China
    Posts
    19
    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...
    NO ,its meaning is that all in the internet can access my swat.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    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

  6. #5
    Just Joined!
    Join Date
    Aug 2004
    Location
    HeNan,China
    Posts
    19
    Yep.I type my root account and password.But I cant login it.

  7. #6
    Linux Enthusiast scientica's Avatar
    Join Date
    Sep 2003
    Location
    South- or "Mid-" Sweden
    Posts
    742
    iirc you must run the browser as root too, thus:
    Code:
    sudo <browser>
    and then enter the uri to swat and logon as root there.
    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.

  8. #7
    Just Joined!
    Join Date
    Aug 2004
    Location
    HeNan,China
    Posts
    19
    run the browser as root too
    No,it dont work.

  9. #8
    Just 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)

  10. #9
    Linux Enthusiast scientica's Avatar
    Join Date
    Sep 2003
    Location
    South- or "Mid-" Sweden
    Posts
    742
    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:
    Code:
    /sbin/chkconfig --list swat
    if it says swat is off, run:
    Code:
    sudo /sbin/chkconfig swat on
    (use sudo if you're not root)
    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.

  11. #10
    Just Joined!
    Join Date
    Aug 2004
    Location
    HeNan,China
    Posts
    19
    It can work for execute the command "smbpasswd -a root"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •