LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-27-2001, 11:51 PM   #1
johnlee
Member
 
Registered: Oct 2001
Location: China
Distribution: RedHat 7.0
Posts: 43

Rep: Reputation: 15
Red face Restricted Shell


Hi All,

Does any one know how to setup "restricted shell" on Redhat Linux 7.0 i want to restricted my telnet ssh users to their home directories they should n't navigate anywhere in the system
or can't go out from their home direcotry i heard about rbash(Restricted Shell) but when i set rbash it totally disable cd command my user can't cd direcotires reside in their home directory i want to allow them in their home directoires i just want to block them others dirs and updirs.

Regards,

John Lee

thristydesert@hotmail.com
 
Old 10-28-2001, 10:22 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
IIRC, this can't be done with rbash, it simply doesn't allow cd'ing at all, using pipes or setting vars. You could try chroot, but the major downside to that is youve gotta set up a complete environment for each and every user.
 
Old 10-29-2001, 05:36 AM   #3
johnlee
Member
 
Registered: Oct 2001
Location: China
Distribution: RedHat 7.0
Posts: 43

Original Poster
Rep: Reputation: 15
Ok But

Thanks unSpawn,

But could u tell me from where i can more learn about chroot() or could you tell how we can setup chroot

Thanks and Regards,

John Lee

thristydesert@hotmail.com
 
Old 10-29-2001, 08:02 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
chroot is a standard unix command

man chroot
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricted shell to change the password mussons Linux - Security 12 07-24-2003 10:05 PM
Restricted Shell in RedHat 6.2 yuzuohong Linux - General 1 03-20-2003 09:06 AM
Restricted shell Rocket01 Linux - Software 3 01-23-2003 09:37 PM
restricted shells sandy Linux - General 1 08-22-2002 11:24 AM
restricted shells sandy Linux - General 0 08-22-2002 03:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration