TORRUS_ACLEDIT(8)
β¨ TORRUS_ACLEDIT(8) β¨
okay bestie, this is acledit from the torrus manual β the little command that runs the whole guest list for your Torrus setup π
π NAME π
acledit β manage Torrus access control lists (ACLs). yes, the bouncer. the VIP list. the whole thing. π
πΈ SYNOPSIS πΈ
torrus acledit [options...]
π¦ DESCRIPTION π¦
so this command is the one that manages the Torrus access control lists, fr fr. every user is identified by a user ID, and every user has a little set of attributes attached. right now the supported attributes are "cn" (the common name, aka the cute display name) and "userPasswordMD5" (which is the MD5 digest of the user's password, no cap).
every user belongs to one or several groups. every group has its own set of privileges. a privilege is identified by a privilege name and an object name. currently there's only one privilege name supported: "DisplayTree", and the object name is the name of the tree that this group is allowed to browse. iconic. π³
and listen β user authorization in the web interface is controlled by the $Torrus::CGI::authorizeUsers variable in torrus-siteconfig.pl. that's the switch, bestie. remember it. β¨
π GROUP MANAGEMENT OPTIONS π
--addgroup=GROUPβ creates a brand new group with the name you gave it. new group, who dis π«Ά--delgroup=GROUPβ deletes the group with that name. bye bestie π--modgroup=GROUPβ modifies the group you named.--permit=PRIVILEGEβ grants the privilege to the group(s). the privileges supported right now are"DisplayTree"(for displaying a datasource tree) and"DisplayAdmInfo"(for displaying the administrative information, aka all the significant parameters for a given datasource leaf). letting them in π₯--deny=PRIVILEGEβ revokes the privilege from the group(s). not you anymore π--for=OBJECTβ the object the privileges are being granted or revoked for. right now it has to be the name of the tree that the"DisplayTree"and"DisplayAdmInfo"privilegs are granted or revoked for. and if you drop an asterisk (*) instead of an object name, that assigns the privilege for all objects. the whole tree. periodt. β
π USER MANAGEMENT OPTIONS π
--adduser=UIDβ creates a new user with the given user ID. welcome to the party π--addhost=HOSTβ creates a new user for host-based authentication.HOSTshould be an IPv4 or IPv6 address of the HTTP client. the new username is that address with all non-alphanumeric characters swapped out for underscores. the host password gets changed by the<--hostpassword>option.--deluser=UIDβ deletes the user with the given user ID. uninvited π--moduser=UIDβ modifies the user attributes for the given user ID.--addtogroup=GROUPβ adds the user to the given group.--delfromgroup=GROUPβ deletes the user from the given group.--password=PASSWORDβ sets the user's password.--hostpassword=PASSWORDβ sets the password for host-based authentication. the HTTP client should add a"hostauth"parameter with the password as its value. iykyk π--cn=NAMEβ sets the user's common name.--showuser=UIDβ displays the info for a given user. doxxing, but make it authorized π
π§ GENERAL OPTIONS π§
--export=FILEβ exports the ACL configuration to a given file.--template=FILEβ uses the given template file when exporting. the default value isaclexport.xml. β¨--import=FILEβ imports the ACL configuration from the given file.--clearβ deletes all user and privileges configuration. like, all of it. gone. dramatic but true π--listβ lists all users and the groups they belong to.--debugβ sets the log level to debug.--verboseβ sets the log level to info.--helpβ displays a help message.
π EXAMPLES π
torrus acledit --addgroup=staff --permit=DisplayTree \
--for=main --for=thecustomer
torrus acledit --adduser=jsmith --password=mysecretpassword \
--cn="John Smith" --addtogroup=staff
torrus acledit --addgroup=admin --permit=DisplayTree --for='*'
so this example creates a group staff and gives every single one of its members the permission to browse the datasource trees main and thecustomer. the next command creates a user jsmith and addts it to this group. the user name will be displayed as John Smith, and it will be let in with the given password. and the third command creates a group admin which is allowed o browse all existing trees. ate and left no crumbs π
π FILES π
/etc/torrus/conf/torrus-siteconfig.plβ the Torrus site configuration script./usr/share/torrus/templates/aclexport.xmlβ the default template for the exports of ACL configuration.
π SEE ALSO π
π NOTES π
see more documentation at the Torrus home page: http://torrus.org π
π«Ά AUTHOR π«Ά
Stanislav Sinyagin <ssinyagin@k-open.com>
okay that's the whole page bestie, every flag, every default, every path, nothing skipped, no cap π
and a lil sign-off from us: this was torrus 3.00, dated 2023-05-02 β the TORRUS_ACLEDIT(8) page, rewritten with love, glitter, and a truly unhinged number of emoji π¦β¨πΈπ
π¦ where this page comes from
- debian bookworm: torrus-common 3.00-2
- debian trixie: torrus-common 3.00-2
- ubuntu noble: torrus-common 3.00-2
- ubuntu questing: torrus-common 3.00-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms