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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.