Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
In trying to install samba and I want to be able to use Swat.
When i run 'rpm -iv swat-2.2.7-1.i386.rpm'
It gave me a list of failed dependencies.
So i installed the apt-get program, and synaptic, and through it, I installed everyting, so now for samba-swat is says package is installed.
But if ti is installed, how do i run it?
And i tried to redo the rpm install, and it have meth elist of 5 failed dependencies again.
Shouldn't apt-get have installed all those packages?
also make sure swat is set to run. for redhat 7.3 swat isn't configured to run by default. to make it run on my version, i had to go into the service configuration gui and check the box marked SWAT. that starts swat. to kill swat, uncheck the box marked SWAT. but it maybe different in redhat 9.0. also bear in mind, i don't use redhat's samba packages either. i always use the packages from samba.org. they're usually more recent than redhat's versions and in one nice rpm package as opposed to downloading the serveral packages the way redhat does.
edit: this is the command for the service conf gui tool:
Hi, thanks, you are right, it was unchecked in the service configuration tool.
Sorry to ask this really newb question, but when you say local host, you dont actually mean 'localhost'right, you mean ip adress?
But anyway, it doesnt work for either...also the files that I think are supposed to be there aren't...But i the apt-get program it says swat is installed?
i really do mean localhost. no ip address because swat is being run from your computer. not on the web. as far as getting swat to work for you, i don't know. i remember one person using apt-get to update samba and it not working. i always get the samba packages from samba.org and it always works for me after making sure to check if swat and smb are enabled (smb you can restart).
Well orignally i tried to install swat from rpm...but there was a whole bunch of dependencies, and when i tried to install those, there was another list of dependedncies for each.
Eventallu, I coulnd't install them, and i did some reading, and someone said that one could use apt-get to do it all easily. But after using it, it doesnt seem like swat really is installed, even though it says it is.
Im getting very frustrated, because I can't fgure out what to do
On the samba.org website, it is VERY not newbi-friendly, i don't really understand lost of the documentation, and there is very little doucmentation that I could find on SWAT, which i understand is a program to use samba, right?
I guess I could not sue swat, and just edit the ocnfig file fo samba, but it seems very hard to do.
In your /etc/xinetd.d directory there needs to be a file named "swat", whose contents should be very similar to:
Code:
# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
# to configure your Samba server. To use SWAT, \
# connect to port 901 with your favorite web browser.
service swat
{
disable = yes
port = 901
socket_type = stream
wait = no
# only_from = 127.0.0.1
user = root
server = /usr/sbin/swat
log_on_failure += USERID
}
If you have a static IP address, try connecting (on port 901) to that instead of localhost. For example:
Just asking the obvious; is xinetd running at all?
# ps -ef | grep inetd
If you change anything in the config-file, you have to make the daemon reread its config-file:
# kill -HUP PID
(where PID is the proces-id-number you found with the 'ps' command)
If you force xinetd to reread its config-files, that would be the way to do it.
In the near future, if ever having to make xinetd reread its config, enter
# kill -SIGHUP `/var/run/xinetd.pid`
Take a few minutes to read the kill manual too ('man kill').
I posted 'kill -HUP' but that was not the correct command. Changed it to 'kill -SIGHUP'.
Okay... killing the process entirely makes sure it won't work. You need to (re) start xinetd. It's probably something like /etc/init.d/xinetd start or something like that. Are you running a firewall that is blocking port 901 or something? It's really a weird problem; I've installed Samba several times, but SWAT was never an issue. In all fairness; that was a while back, SuSE 7.2 and still using inetd (not xinetd).
Hope someone can help you, because I am running out of stupid ideas...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.