HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

permission for ftp and telnet

 
khilari
Regular Advisor

permission for ftp and telnet

Hi guys, just wondering how do u disable ftp and telnet for root but let it stay up for other users.....
4 REPLIES
Jeeshan
Honored Contributor

Re: permission for ftp and telnet

you can set rule set using inetd.sec.
a warrior never quits
Vivek Bhatia
Trusted Contributor

Re: permission for ftp and telnet

Hi Khilari,

1. If you want to block the ftp for root.

Edit the file "/etc/ftpd/ftpusers" and add root in this file to block ftp from root on the server.

2. Disable telnet for root.
Edit the file below.

# cat /etc/securetty
console

That will prevent root logging in directly from anywhere but the console. It will allow you to log in via telnet as a regular user and, if you know the root password, do a 'su -' to get to root.

Regards,
Vivek
Suraj K Sankari
Honored Contributor

Re: permission for ftp and telnet

HI,
/etc/ftpd/ftpusers on HP-UX 11.x contains a list of users who are not allowed to access the system via FTP.
if you open this file and add a line root then root user is not able to FTP.
# more /etc/ftpd/ftpusers
root

For telnet you can use inetd.sec
inetd.sec is a file that can be used to restict access of inetd services (ftp, telnet etc) to particular networks. The
file is found at /var/adm/inetd.sec.

Suraj
Avinash20
Honored Contributor

Re: permission for ftp and telnet

Yes, there is. Create a file called /etc/securetty and put the word console in it.

# cat /etc/securetty
console

That will prevent root logging in directly from anywhere but the console. It will allow you to log in via telnet as a regular user and, if you know the root password, do a 'su -' to get to root.

PS: Assign points if you find the appropriate answers
"Light travels faster than sound. That's why some people appear bright until you hear them speak."