]> git.sesse.net Git - betaftpd/blob - doc/README.rights
Fixed a security problem where the custom snprintf() would always be used. Thanks...
[betaftpd] / doc / README.rights
1 The `.rights' file is laid out as follows:
2
3 privilegied.file        rw-r-----       0       1
4 (filename)              (rights)        (uid)   (gid)
5
6 For any file not in the list, the special case `.default' is checked. If there
7 is no such file, _no access is permitted_, and the file will _not show up in
8 directory listings_. This is in fact handy in most cases, so be careful with
9 adding a `.default' entry. (Note that `.rights' is never influenced by a
10 `.default' entry, for security.)
11
12 For directory permissions, the file `dir/.rights' is checked for the entry `.'.
13 Yes, I know, treating them like normal directories would be great, but
14 remember that there is a root directory as well...
15
16 The rights are standard r, w and x for now, no setuid, setgid or sticky bit
17 unless we really need it. (We could perhaps need the sticky bit later.) Be
18 careful with the format of the `.rights' file, as everything you set in the
19 rights column will be copied directly to listings. Restrict yourself to
20 those 9 characters, no more, no less, and only use r, w, and x.