Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
permissions [2021/03/09 19:59] – [Permission types] hc9 | permissions [2021/03/09 20:20] – […another way] hc9 |
---|
^ g | //**G**roup//. Members of the user group to which the file has been assigned. | | ^ g | //**G**roup//. Members of the user group to which the file has been assigned. | |
^ o | //**O**thers//. Users not in either of the above classes. This is the user class that SDF's web server uses when a web browser requests a file from your web site.<sup>1</sup> | | ^ o | //**O**thers//. Users not in either of the above classes. This is the user class that SDF's web server uses when a web browser requests a file from your web site.<sup>1</sup> | |
| **Notes:** - The use of CGI programs on a web site complicates the permission check. Access to the CGI program file itself is checked with user class **o**. Many web servers are configured so that file access requests from CGI programs are also checked with user class **o**. However, the SDF web server has been configured to execute CGI programs with the permissions of the owner of the program file (//you//, for CGI programs you have installed on your SDF web site). Therefore if your CGI program accesses files owned by you, permissions will be checked with user class **u**. Files not owned by you will be checked with user class **o**. || | | **Notes:** <sup>1</sup> The use of CGI programs on a web site complicates the permission check. Access to the CGI program file itself is checked with user class **o**. Many web servers are configured so that file access requests from CGI programs are also checked with user class **o**. However, the SDF web server has been configured to execute CGI programs with the permissions of the owner of the program file (//you//, for CGI programs you have installed on your SDF web site). Therefore if your CGI program accesses files owned by you, permissions will be checked with user class **u**. Files not owned by you will be checked with user class **o**. || |
| |
==== An example ==== | ==== An example ==== |
<user-classes><operation><permission-types>[,<user-classes><operation><permission-types>]… | <user-classes><operation><permission-types>[,<user-classes><operation><permission-types>]… |
| |
//user-classes//User class(es) for which permissions are to be changed. Specify with one-character class symbols ''u'', ''g'', ''o'', or ''a'' for all classes. May specify more than one class. //operation//One of the following: ''+'' | |
Add permission types to user classes.''-'' | |1|//user-classes//| |
Remove permission types from user classes.''='' | | |User class(es) for which permissions are to be changed. Specify with one-character class symbols ''u'', ''g'', ''o'', or ''a'' for all classes. May specify more than one class.| |
Set permission types for user classes.//permission-types//Permission type(s) to be set or removed. Use one-character type symbols ''r'', ''w'', or ''x''. May specify more than one type. | |2|//operation//| |
| | |One of the following:| |
| | | ''+'' Add permission types to user classes.| |
| | | ''-'' Remove permission types from user classes.| |
| | | ''='' Set permission types for user classes.| |
| |3|//permission-types//| |
| | |Permission type(s) to be set or removed. Use one-character type symbols ''r'', ''w'', or ''x''. May specify more than one type.| |
| |
Therefore the command: | Therefore the command: |