LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-28-2016, 11:00 AM   #1
QWE123
Member
 
Registered: Nov 2014
Posts: 55

Rep: Reputation: Disabled
is it running


I just use the command and found the below result.

#ps -ef |grep ftp
root 15386 15384 0 21:19 ? 00:00:00 /usr/libexec/openssh/sftp-server
root 15582 13357 0 22:45 pts/0 00:00:00 grep ftp


but I can not find the ftp service is running , and can not find any ftp service is located at /etc/rc.d/init.d , I wonder how this service will be started ? and it is under openssh path , is it only the service of openssh but not ftp service for file transfer ?

thanks
 
Old 06-28-2016, 11:01 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Is your box running systemd?
 
1 members found this post helpful.
Old 06-28-2016, 11:48 AM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
The sftp process is launched by default by openssh. You can override this in the sshd_config file and commenting out

Code:
Subsystem	sftp	/usr/libexec/sftp-server
Brian
 
Old 06-28-2016, 12:11 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by BCarey View Post
The sftp process is launched by default by openssh. You can override this in the sshd_config file and commenting out

Code:
Subsystem	sftp	/usr/libexec/sftp-server
Brian
Not that he should?

sftp only comes to mind.
May not wish to inhibit a working access.
 
Old 06-28-2016, 12:17 PM   #5
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 6,082
Blog Entries: 3

Rep: Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170
Quote:
Originally Posted by QWE123 View Post
#ps -ef |grep ftp
root 15386 15384 0 21:19 ? 00:00:00 /usr/libexec/openssh/sftp-server
root 15582 13357 0 22:45 pts/0 00:00:00 grep ftp
You're finding your own "grep" instance. It's still running when "ps" is run, so "ps" will find your "grep" and pass it along in its output. It's a race condition you are encountering / creating.

Try using a pattern instead, like this one:

Code:
ps -ef | grep [f]tp
That uses "grep" to find any output line with the string 'ftp' on it. The [ and ] delimit a set of characters, but since the set only contains a single letter, 'f', the full pattern will always be a single string 'ftp'. And the string 'ftp' will never match the string '[f]tp', so you are good.

Or you could use "pgrep"

Code:
pgrep -a ftp
 
Old 06-28-2016, 02:00 PM   #6
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
Not that he should?

sftp only comes to mind.
May not wish to inhibit a working access.
Personally I find myself using scp or rsync with ssh. Nothing wrong with sftp, though.
 
Old 06-28-2016, 10:40 PM   #7
QWE123
Member
 
Registered: Nov 2014
Posts: 55

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Is your box running systemd?
Can not find systemed in my system .

# ps -ef |grep systemed
root 16778 13357 0 10:40 pts/0 00:00:00 grep systemed
 
Old 06-29-2016, 03:26 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,952

Rep: Reputation: 2634Reputation: 2634Reputation: 2634Reputation: 2634Reputation: 2634Reputation: 2634Reputation: 2634Reputation: 2634Reputation: 2634Reputation: 2634Reputation: 2634
Note spelling 'systemd' not 'systemed'.
FYI its the new replacement for the old init system as of eg RHEL7.

Anyway, sftp is a subsystem of ssh and you should stick with that. ftp is not encrypted..
As above I actually prefer scp : secure copy - also part of ssh and simpler to use.
 
Old 06-29-2016, 07:45 AM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149
do you even have "ftp" installed? most days now it is just like your sftp it is ftp only with the added s for secure file transport protocal and things of that nature, it is still ftp only with that added bit to it.
 
Old 06-29-2016, 01:32 PM   #10
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,457
Blog Entries: 13

Rep: Reputation: 4553Reputation: 4553Reputation: 4553Reputation: 4553Reputation: 4553Reputation: 4553Reputation: 4553Reputation: 4553Reputation: 4553Reputation: 4553Reputation: 4553
Have you tried to ftp to your system? If the service gets rejected, then no ftp is not running.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running duel boot...Winxp and Opensuse 11.4...will running windows repair damage.. cbjhawks SUSE / openSUSE 6 06-21-2013 07:18 AM
[SOLVED] Running batch file does not produce same results as running command from Terminal nmuleski Linux - Newbie 9 12-30-2011 10:52 AM
Running a windows xp virtual machine on a old Dell Dimension 4600(running ubuntu) shadogamon Linux - Virtualization and Cloud 11 04-01-2011 03:08 PM
Problems installing and running Frostwire on Acer One running Linpus Linux ricky1981 Linux - Newbie 1 12-19-2008 09:24 AM
Getting Smart running on Suse 10.1 on IBM T22 laptop running KDE 3.5.1 headdeball Linux - Desktop 2 01-20-2007 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration