Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

Re: problems with ChrootDirectory

Subject: Re: problems with ChrootDirectory
Date: Thu, 10 Jul 2008 18:01:29 -0700 (PDT)

--- On Thu, 7/10/08, Greg Wooledge <wooledg@eeg.ccf.org> wrote:

On Wed, Jul 09, 2008 at 02:41:11PM -0700, Joseph Spenner
wrote:
The sshd log has an entry:
Jul  9 21:31:12 happybox sshd[8741]: [ID 800047
local5.crit] fatal: bad ownership or modes for chroot
directory "/space/storage/jsmith"

The permissions of /space/storage/jsmith seem ok:

drwxr-xr-x   3 jsmith   other        512 Jul  9 21:19
jsmith

Check the permissions of EVERY directory leading up to it,
as well.

ls -ld / /space /space/storage /space/storage/jsmith

The current permissions of above directories:

drwxr-xr-x  25 root     root        1024 Mar 17 18:15 /
drwxr-xr-x  15 root     root         512 Jul  8 20:01 /space
drwxr-xr-x   5 root     other        512 Jul 10 18:57 /space/storage
drwxr-xr-x   3 root     other        512 Jul  9 21:19 /space/storage/jsmith

(the last directory initially was owned by jsmith, but I read somewhere that 
all directories should be owned by root.  But the result of both scenarios was 
the same)




      

<Prev in Thread] Current Thread [Next in Thread>