Solved

denying telnet to a particular user

Posted on 2004-03-30
2
355 Views
Last Modified: 2013-12-27
ok i need to stop a user from telneting a system on which it has a valid account and just allow him ftp and no other servives should be effected. The system is ultra 60 with solaris 7 installed. I cannot use the option of making the user shell as /bin/false because it stops both telnet and ftp and if i create an /etc/shells file then i have to put in all the valid shells which somehow my customer does not want to do!!


regards
Naufal
0
Comment
Question by:naufal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

Accepted Solution

by:
liddler earned 125 total points
ID: 10713868
Naufal,
/bin/false & /etc/shells is the best way to do it.
Another possiblilty is to use setfacl to remove the execute and / or read bit for that specific user to their shell or another executealbe telnet needs but ftp doesn't.

so if user_1 uses the ksh
setfacl -m user:user_1:r-- /usr/bin/ksh

0
 

Author Comment

by:naufal
ID: 10721664
yeah man that works thanks a lot

regards
Naufal
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question