LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 08-20-2009, 10:22 AM   #1
aliases
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Rep: Reputation: 0
Question /bin/bash: Permission Denied in chroot environment.


I'm running a OS X 10.5.8 XSERVE G5 with OpenSSH_5.1p1. I am trying to lock non-admin users to their home directory in ssh sessions. The user home exist on a separate volume then the server. The unexpected outcome is that the user is unable to ssh into a /bin/bash shell, therefore closing the connection. My suspicion is that I have to create the /bin/bash environment in the jailed ssh directory. Has anyone done this before? Any suggestions?

tia

P.S.

my permission on /bin and /bin/bash

drwxr-xr-x@ 40 root wheel 1360 Aug 19 16:00 bin
-rwxr-xr-x 1 root wheel 1244928 Jun 17 16:57 bash

P.S.S
Virgin Post
 
Old 08-21-2009, 02:13 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
If you setup a chroot env, you need to copy in all reqd files, binaries etc, because the user can't see them; that's the whole point.
This is a good start, (ignore the fact its referring to ftp) http://www.faqs.org/docs/securing/chap29sec296.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
su: /bin/bash: Permission denied fedora4002 Linux - Security 5 01-29-2010 08:46 AM
Cannot execute /bin/bash: Permission denied Z038 Slackware 13 06-23-2007 09:34 PM
When booting su: /bin/bash: Permission Denied Kalimdora Linux - Software 1 08-15-2006 10:04 AM
su: /bin/bash: Permission denied dwarf007 Linux - General 10 01-20-2006 04:32 PM
Cannot execute /bin/bash: Permission denied Hegemon Linux - General 4 01-19-2004 04:13 AM


All times are GMT -5. The time now is 10:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration