Operating System - Linux
1827807 Members
3090 Online
109969 Solutions
New Discussion

stopping particular service access in telnet

 
Srikara.D
Occasional Contributor

stopping particular service access in telnet

hi,

Can we stop a user from using a particular service like reboot..etc to a user who has
telneted into our machine ?

thanks in advance
5 REPLIES 5
Ivan Ferreira
Honored Contributor

Re: stopping particular service access in telnet

Check the information in this link:

http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/s1-access-console-program.html
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Kapil Jha
Honored Contributor

Re: stopping particular service access in telnet

just give normal permissions to the user through which it is coming through telnet.
Don give him special priveledges which would allow him to do some damage to system.
It is applicable to normal user aalso doesn't necessary to be a user through telnet.
BR,
kapil
I am in this small bowl, I wane see the real world......
loco_vikide
Frequent Advisor

Re: stopping particular service access in telnet

ACL (Access Control List) could be used to assign or deny privileges.
Stuart Browne
Honored Contributor

Re: stopping particular service access in telnet

If it's just a 'user', then they shouldn't have access to those commands anyway. Check the permissions on them to ensure they aren't suid-root.

If you're talking about a user who has 'sudo' access, then look at the documentation in 'man sudoers'.

If you're talking about a user who has 'su' access, well you can't without writing wrappers around them (which I wouldn't recomend).
One long-haired git at your service...
sandeep mathur
Respected Contributor

Re: stopping particular service access in telnet

check out
iptables -A INPUT -s --dport 23 -j DROP.

at the iptables file
then for ftp same as above but --dport 21
ssh 22