Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I been reading the book that comes with Samba. Using Samba and having problems trying to find /etc/inetd.conf Or it not there? Any Ideads Im trying to do this part listed below Thx in advance.....
2.3.1 Final Installation Steps
There are a couple of final steps to perform. Specifically, add the Samba Web Administration Tool (SWAT) to the /etc/services and /etc/inetd.conf configuration files. SWAT runs as a daemon under inetd and provides a forms-based editor in your web browser for creating and modifying SMB configuration files.
To add SWAT, add the following line to the end of the /etc/services file:
swat 901/tcp
Add these lines to /etc/inetd.conf. (Check your inetd.conf manual page to see the exact format of the inetd.conf file if it differs from the following example.) Don't forget to change the path to the SWAT binary if you installed it in a different location from the default /usr/local/samba.
i think beginning in 7.0 or 7.1, redhat changed the inetd.conf to the xinetd.conf....so yes, the xinetd.conf is the inetd.conf that book is referring to. if you check the date on the book, its probably dated and published in 2000 or earlier, before RH 7.0 or later came out..
It isn't just Redhat that made the change to xinetd, I think it's a general evolution regardless of distro (my Mandrake 8.0 box also uses xinetd). The two files are quite different; here's a link which talks about enabling SWAT if you're using xinetd: http://samba.linuxbe.org/en/samba/learn/swat.html.
<edit>
fsck! I just tried to verify that link and found that they've rearranged their site. It'll probably take a little more digging on the site to uncover the article..snort!
</edit>
i have samba working fine would it help if you got my configurations? i am not sure how to help you exactly. I can ask a friend who runs a linux site and maybe he can help you out. would you mind if he emailed or pm you?
Sure any kind of help would be nice. I mean IM a noob and proably a dumbass. I just wondering after I edit thoose two files I should at least be able to get to that site...????? But changing the two files I should at least be able to connect to
or get the SWAT LOGIN? right? SO what am I doing wrong?
Last edited by Alinuxnoob; 04-17-2002 at 05:10 PM.
Some last Linux distributions have introduced a new version of the inetd daemon. This daemon, called xinetd, must be configured using a different way. The main configuration file of xinetd is typically /etc/xinetd.conf. On RedHat 7.0, this file holds some default parameters and a reference to a directory :
includedir /etc/xinetd.d
After having edited the /etc/services file as explained above for inetd, you will create into the /etc/xinetd.d directory (or your own distribution equivalent) one file called swat. This file will contain the following information :
service swat
{
port = 901
socket_type = stream
wait = no
user = root
server = /usr/local/samba/bin/swat
log_on_failure += USERID
disable = no
}
To pass a switch to the command you will add a line called server_args = <list of switch> after the server line above.
If you are using Linux to run SWAT, you must also add the following information to be able to use SWAT in authentication mode. Because SWAT is using the PAM (Pluggable Authentication Module) system, you need to configure the PAM sub-system to be used by SWAT. So you will create a file called samba in the /etc/pam.d directory. This file will contain the following two lines :
OK I got it to come up I guess I had to restart
swat with the command service xinetd restart?
But I dont know if this is what I was sopose to do
or if following your instructions made it work?
thx U
I don't recall having to restart xinetd when I configured swat, but it was a long time ago so I can't say for sure. Whatever you did, you did it right though, and that's a Good Thing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.