| Summary: | root owned empty subdirs are deletable by chroot users | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Giulio Di Giuliomaria <giulius> |
| Component: | sftp-server | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | CLOSED INVALID | ||
| Severity: | normal | CC: | t8m |
| Priority: | P2 | ||
| Version: | 5.2p1 | ||
| Hardware: | Other | ||
| OS: | Linux | ||
|
Description
Giulio Di Giuliomaria
2009-07-01 06:46:06 AEST
Ops! May not be a bug but a standard beheviour on ext3 fs! Solved changing: drwxr-xr-x 2 prova sftponly 4096 2009-06-30 22:07 www to: drwxrwxr-x 2 root sftponly 4096 2009-06-30 22:07 www No. Also with this permissions drwxrwxr-x 2 root sftponly 4096 2009-06-30 22:07 www a root owned empty subdir of "www" may be erased by user "prova" Huh, please learn more about UNIX/Linux DAC permissions. You need sticky bit set on the www directory if you don't want users delete each other's files. (In reply to comment #3) > Huh, please learn more about UNIX/Linux DAC permissions. > > You need sticky bit set on the www directory if you don't want users > delete each other's files. Yes, I did the correct permission drwxrwxr-t 2 root sftponly 4096 2009-06-30 22:07 www and worked as in comment #1 but for some reason I checked later an old config and posted again. My apologise :-), thanx. Mass move of RESOLVED bugs to CLOSED now that 5.3 is out. |