[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 506
  • Last Modified:

Restricting Telnet to a user

How do I restrict Telnet and rlogin to a particular user in solaris 7


0
johns_philip
Asked:
johns_philip
  • 2
  • 2
1 Solution
 
struyfsjCommented:
Not a very nice sollution but you could test  (/usr/xpg4/bin/id -g) for the uid in /etc/profile



JS
0
 
ArtimageCommented:
Since you could set their shell to /bin/false to prevent login, I guess you mean restricting users on the system. If you want only certian users to be able to use Telnet and Rlogin you could simply make the programs owned by a group that that those persons were in, and make it only executable for group.

For instance lets say you created a group called remote in /etc/groups, and you added everyone who is supposed to be able to telnet into it.

chgrp remote telnet;
chown 0-x telnet;

That should do it. Of course maybe I've totally misinterpreted your question.

0
 
johns_philipAuthor Commented:
My intention is to give only FTP access to one user. I donot want him to
use Anonymous ftp.

JS: Can you make little more clear your comment?

Thanks in advance

JP
0
 
struyfsjCommented:
When a user rlogins to your machine, the first thing that get sourced is /etc/profile.
So you could check in /etc/profile if that user tries to logs in.  If it is him, print a mesage to his screen and log him out.


JS
0
 
ArtimageCommented:
So set the user's shell to /bin/false, this will dis-allow login. You could also point his shell to script that prints a message and then logs him out. But anyway, this should do what you want. It will allow him access through ftp, since he has a username and password, but he won't be able to log in.

Does that do it for you?

Art.-
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now