Forums » Tutorial and setups »
accesscontrol - new user from cli
Added by Ales Strazar almost 8 years ago
Hi!
I set up my TVHeadend to autorecord some channels that i get over IP input (multicast UDPs) and now I need to input cca 20 users and I wonder how coulld it be done in a batch in cli?
Found some info regarding where to look and got to accesscontrol folder where i can see a file for each user but the filename is somehow generated. Where is this filename got from?(should be md5 hash but it is not)
can I just copy an existing file and rename it to lets say user1 and it would automatically work (normally change content also)?
or if you can let me know what is the procedure to add a user from a cli??
About the content: All users would be the same with the exception of username, password and as i saw index (can i just use lets say index 1001 for my first manually created user?)
Also password is encrypted somehow - found out that it is generated in a manner:
"aX=="
a is hash or something that is the same in all files
X i guess this is hash of the actual password (not md5)
just as is on the end
PS Tvheadend ver: HTS Tvheadend 4.0.9-4~gac9e47d~trusty on Ubuntu 14.04.4 LTS
Replies (2)
RE: accesscontrol - new user from cli - Added by Mark Clarkstone almost 8 years ago
Why not just get whatever script you're using to send a post http request to the API, the same way the webui does it?
RE: accesscontrol - new user from cli - Added by Ales Strazar almost 8 years ago
hmmm you mean to sniff (tcpdump) packets (to find out what should POST look like?) or you suggest any other method?
PS. thanks for the reply