Solved

denying telnet to a particular user

Posted on 2004-03-30
2
356 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

724 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