Operating System - HP-UX
1834711 Members
2474 Online
110069 Solutions
New Discussion

controlling FTP usage on workstation

 
SOLVED
Go to solution
Henry Chua
Super Advisor

controlling FTP usage on workstation

Hi guys, is there any way to prevent specified or all user except "su" from remote logining in the system be it ftp or telnet etc.

Best regards
Henry
5 REPLIES 5
RAC_1
Honored Contributor

Re: controlling FTP usage on workstation

For ftp, use /etc/ftpd/ftpusers file.
man ftpusers for details.

For telnet, to deny direct root, login, prepare /etc/securetty file put "console" in it.
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: controlling FTP usage on workstation

Hi,

You can do it with the help of /etc/ftpd/ftpusers file. It is called "security file for ftpd". You can find more information by doing a man ftpusers.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Henry Chua
Super Advisor

Re: controlling FTP usage on workstation

Hi guys,

I dun seem to help that folder "ftpd" or file ftpusers on my system. I am currently using 10.20b - will this be a problem?

Best regards
henry
Muthukumar_5
Honored Contributor
Solution

Re: controlling FTP usage on workstation

You can control users for ftp with ftpusers file. Read man ftpusers page.

To control telnet based access then,

edit /etc/profile:

if [[ ${LOGNAME} != "su" ]]
then

ps | grep -q 'telnet'

if [[ ${?} -eq 0 ]]
then
echo "Telnet access with ${LOGNAME} is denited in this machine"
sleep 2
exit 1
fi
fi

will do it.

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: controlling FTP usage on workstation

Hi Henry,

I dun seem to help that folder "ftpd" or file ftpusers on my system. I am currently using 10.20b - will this be a problem?

Did you try "man ftpusers". You need to create that file. It doesnt exists by default.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"