[scponly] How to protect against "chmod 777 /" ?

Lasse J. Kolb Lasse at bsn.ch
Tue Mar 2 15:36:17 EST 2004


On 2 Mar 2004 at 12:03, Robert J Taylor wrote:

> Strange. I tried what you suggested and got the following:
> 
> psftp> chmod 777 /
> set attrs for /: permission denied
> 
> I'm running scponlyc compiled on RH Enterprise Server 3.0 (using the RH9 
>   changes).
> 
> The chrooted dir for user sftp is setup thusly:
> 
> 	drwxr-xr-x    3 sftp  users        4096 Mar  2 03:58 public_html
> 
> User sftp is in group "users":

Hehe here the owner and the group was "kai".
So I guess that's why he was able to change it.

Lasse
-- 
PGP: 0x4A1802C9 (RSA) · 0xBCF7BF1B (DSS/D-H)
Phone: +49 (0)5309/911462 · Fax: +49 (0)1212/511927288
Mobil: +49 (0)170/9020444 · http://www.bsn.ch/Lasse
ICQ: 5507446




More information about the scponly mailing list