LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-27-2007, 08:47 AM   #1
Tarps87
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Rep: Reputation: 0
how to turn off ftp/sftp?


When I was messing about with samba and other protocols I managed to create a sftp file share and can not work out how to remove it, please can anyone help? Im sure its something simple but I can't even rember how I turned it on
Thanks
 
Old 09-27-2007, 10:31 AM   #2
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Rep: Reputation: 31
Howdy,

Which distro are you using?

Sftp is part of OpenSSH. If you turn of the ssh daemon (service), you
can turn of sftp. This is easy for me in Slackware: I would just
remove the executable permission from rc.sshd:

Code:
chmod -x /etc/rc.d/rc.sshd
You probably have System V init instead, so snoop around in
/etc/init.d. When I say "snoop" I mean do it as a regular user so you
can avoid accidentally deleting something.

Joel
 
Old 09-27-2007, 12:02 PM   #3
Tarps87
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Sorry for got to say, is Fedora 6. If I do that will it interfere with samba?
Thanks
 
Old 09-27-2007, 10:04 PM   #4
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Rep: Reputation: 31
I suggest putting your distro in your signature, and in your profile, that way if you forget, you didn't really forget.

Wait for the opinion of a Fedora expert: I've never used a RedHat/Fedora system.

Joel
 
Old 09-27-2007, 10:30 PM   #5
I_like_TUX
Member
 
Registered: Sep 2007
Distribution: Fedora 7, Edubuntu
Posts: 35

Rep: Reputation: 15
Not sure what you have messed up, but to turn off sshd in Fedora:

1. after booted, you can type the following, but it will start again next boot:
$ /etc/rc.d/init.d/sshd stop
you should see [ OK ] message. Do a
$ ps aux | grep sshd
to make sure process /usr/sbin/sshd is not there anymore.

2. If you want sshd not to start at boot, do the following:
$ chkconfig --level 235 sshd off
then do
$ ls /etc/rc.d/rc5.d | grep sshd
to see if you can see the following:
K02sshd
("02" might be some numbers instead, important is you see the "K")
if you see the above, sshd will not start at next boot.
 
Old 09-28-2007, 12:51 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Just FYI, ftp is separate from sftp/ssh/scp which are also separate from Samba. IOW, you are talking about 3 different services here ....
 
  


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
Confused: FTP, SSH, SFTP msymms Linux - Networking 13 06-12-2007 01:35 PM
chrooted SFTP + FTP server TotalDefiance Linux - Server 4 12-08-2006 09:37 AM
limiting some users to sftp but allowing other to ftp bmeckle Linux - General 2 04-05-2006 08:43 AM
Dumping FTP in favor of SCP or SFTP Donboy Linux - Security 7 07-14-2004 11:25 PM
Using SFTP instead of FTP cliffyman Linux - Software 0 01-19-2003 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:57 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration