LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Command (https://www.linuxquestions.org/questions/linux-newbie-8/command-445978/)

jonzey 05-18-2006 03:48 AM

Command
 
hi,
im really new as you can probably tell.
im trying to use SWAT to set up samba but i cant get swat to turn on using the command. what exacly do i have to put in to get it turn on. i have found this command but i cant get it to work: [roo@bigboy tmp] chkconfig xinetd on.

Thanks
Daniel Jones

jschiwal 05-18-2006 04:03 AM

You also need an /etc/xinet.d/swat configuration file. Your system might have a single configuration file in /etc/, or a number of files in /etc/xinet.d/

Here is an example:
Code:

etc/xinetd.d> cat swat
# SWAT is the Samba Web Administration Tool.
service swat
{
        socket_type    = stream
        protocol        = tcp
        port            = 901
        wait            = no
        user            = root
        server          = /usr/sbin/swat
        only_from      =  127.0.0.1
        log_on_failure  += USERID
}


jonzey 05-18-2006 04:24 AM

when i go into the xinetd.d/swat configuration file i change the disable setting from yes to no but when i try to save it it says i dont have permissions to save the file. any ideas?

timmeke 05-18-2006 04:56 AM

Are you trying to edit the file as root user? Most files in /etc contain system settings and are thus
only writable/changeable if you're the root user.

To solve your problem, first "su" to root and then try to edit the file once more.


All times are GMT -5. The time now is 09:37 AM.