Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Disable FTP and just Enable SFTP?? 1

Status
Not open for further replies.

100mbs

MIS
Feb 14, 2002
142
0
0
US
I dont want users to be able to use standard ftp over port 21 instead i want them to have to use SFTP on port 22.

I am running Solaris 10.

Any Ideas?

 
svcs -a ftp
STATE STIME FMRI
disabled 11:03:45 svc:/network/ftp:default

to disable:
# svcadm disable svc:/network/ftp:default
or
# svcadm disable ftp

i am assuming sftp is already active, if you have sshd running, than I believe sftp is enabled.





 
By Doing this procedure, does it disable it for good? Is there something i need to disable in the /etc/rc*.d from starting up during the next boot?
 
using the rc*.d is called 'legacy scripts' in Solaris 10. a large portion of those have been converted to SMF.

If you do a svcs -a, you will get a listing of what services are controlled by SMF, and it will list the legacy scripts at the top.

The main commands to administer SMF are:

svcs and svcadm

To answer your question, if you disable a service, it will stay disabled across reboots, same goes for enabling, it will stay enabled.


David
 
Thanks for your Help David I appreciate it.

CHuck..

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top