LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Lots of NooB Questions... (https://www.linuxquestions.org/questions/linux-software-2/lots-of-noob-questions-45508/)

LaughingJon 02-15-2003 12:07 PM

Lots of NooB Questions...
 
Hey all.

I am very much a NooB when it comes to linux, i have only just got a box up and running recently, with lots of help LOL.

I am using Suse8 btw.

problems :D

I am trying to get vsFTP up and running on my system, however, i dont seem to be getting very far. I "think" it is installed as i can try and run it, but it says, this has to be called from inetd. Okay i think i add it into that.

Like this? Dunno if this is right for a start :)

Code:

case "$1" in
    start)
        echo -n "Starting inetd"
        ## Start daemon with startproc(8). If this fails
        ## the echo return value is set appropriate.

        # startproc should return 0, even if service is
        # already running to match LSB spec.
        startproc $INETD_BIN

        # Remember status and be verbose
        rc_status -v
        vsftp
        ;;

I then read that i need to restart it. I can do this either by rebooting the machine or finding the PID of inetd and calling
kill -1 PID... However, when i do a ps -x there is no process of inetd.. Have i broken it already? LOL So i resort to rebooting the machine.

Yet this still isn't working and i cant get any FTP access to the machine..

If anyone knows what i may have done wrong then i would be very grateful of some help :D

Cheers
your local
:newbie:

Laters
Jon

acid_kewpie 02-15-2003 12:10 PM

that really doesn't sound like much of a newbie question... where was "how do i turn my monitor on?" :D:D

you need to use xinetd and not inetd, which was superceded about 3 years ago in the main. you should have a config file in /etc/xinetd.d/ if that is how it's meant to be started.

LaughingJon 02-15-2003 12:14 PM

LOL i had to ask that question on a different forum before i got to this bit ;) tehehe..

I have been looking for this xinetd thing as lots of places mentioned it, but even running a locate on that file/dir i get nothing... :confused:

Laters
Jon

ranger_nemo 02-15-2003 01:20 PM

I can't help too much with the vsFTP part. If it's run by xinetd, then there will be an entry in /etc/xinetd.d . These are just text files. RedHat uses xinetd, so I don't know where inetd would be off-hand... Somewhere in /etc , most likely.

Onto services... inetd and xinetd are services / daemons. You can use the service command on them...

To see the status of all the services... service --status-all It will tell you which are stopped, which are running, and their PID.

To control an individual service... service service_name command Use the correct service_name. Command can be start, stop, restart, status, etc. Restart is useful anytime you've changed a service's config file. service smb restart to restart Samba.

As for not finding it in the ps -x, I usuallly use ps -ax | grep inet . You can replace the inet with any partial process_name. The grep searches the list for the ps and returns only those lines with an inet in it. It won't return anything if it doesn't find a match. That would happen if the service wasn't running.

simbolo 02-15-2003 07:28 PM

xinetd is for girls, if this is not a real server just something your planning on letting couple of friends steal some files off you via ftp configure the server to standalone bypassing inetd, not sure where the vsFTP config files are, /etc/ most likely

LaughingJon 02-16-2003 06:51 AM

well cheers peeps i will try again at getting this working.. but i think i really messed it all up last night by trying to install mysql LOL so probs going to re-install suse and start a fresh.. Then start again at trying to get vsFTP installed again :D

Cheers peeps you may well be hearing from me again soon :D
Laters
Jon

LaughingJon 02-16-2003 10:30 AM

me again :)

i managed to sort the mysql thing, i think i have 2 versions of it installed so have started it using the later version and all seems to be working well..

also FTP seems to be working as well, i dont know if it is vsFTP or a default one though, however, when i ftp into the site i get a default directory of /pub Upon trying to find this location on my server i dont seem to be able to find a directory called /pub

Also is there any way i can find out which FTP service it is using so i can add users to it etc.

Cheers in advance
Jon

*edit actually none of that is right as i just realised i was ftp'in into a different site.. Doh! LOL.. Goes off to try vsFTP Again :rolleyes:

LaughingJon 02-16-2003 11:41 AM

right well i have vsFTP installed, and i managed to get it working by following the instructions and adding the line
Code:

listen=YES
to enable it to run from the command line. However...

When i follow the instructions to get it working from inetd i get problems... ie..

i uncomment this line
Code:

#ftp stream tcp nowait root /usr/sbin/tcpd /usr/local/sbin/vsftpd
i take it the "#" was a comment anyway.

And now when i try and restart inetd..

by doing ./inetd stop then ./inetd start

I get an error
Code:

./inetd: vsftp: command not found
Anyone know what could be wrong?

Cheers
Jon


All times are GMT -5. The time now is 05:32 PM.