Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mnalis/libchmod
chmod(2) disable group/world writeable permissions - LD_PRELOAD shared library
https://github.com/mnalis/libchmod
library linux
Last synced: about 16 hours ago
JSON representation
chmod(2) disable group/world writeable permissions - LD_PRELOAD shared library
- Host: GitHub
- URL: https://github.com/mnalis/libchmod
- Owner: mnalis
- License: lgpl-3.0
- Created: 2013-01-16T19:51:33.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-16T19:53:00.000Z (almost 12 years ago)
- Last Synced: 2023-03-10T21:33:45.710Z (over 1 year ago)
- Topics: library, linux
- Language: C
- Homepage:
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
This LD_PRELOAD shared library is used to override modes given to chmod(2), fchmod(2) and fchmodat(2)
In default configuration, it will disable making files group or world writeable.For example, on Debian system you can edit /etc/init.d/vsftpd and before
starting daemon putLD_PRELOAD="/usr/local/lib/libchmod.so"
export LD_PRELOADIn such configuration, on your shared web hosting machine, you could allow
'SITE CHMOD' commands in vsftpd(8) (so users can set their suexec'd CGI
scripts u+x, for example), but still disallow them to do outrageously stupid
things they're bound to do following advice on Internet forums, like doing
"chmod 777" on all files and directories "just in case" and hence opening
themselves to world of pain (and blaming *YOU* when they get cracked).