The ZankaSoftware OSX client includes user management features. But no other client does. I’ve written a little script that will help you generate the user credentials string that you can put into the Wired server users file. It creates a user added to the group Users with the following permissions:
- can get user info
- can’t broadcast
- can post news
- can’t clear news
- can download
- can upload
- can upload anywhere
- can create folders
- can’t move files
- can’t delete files
- can’t view drop boxes
- can’t create accounts
- can’t edit accounts
- can’t delete accounts
- can’t elevate privileges
- can’t kick users
- can’t ban users
- can be kicked
- unlimited download speed
- unlimited upload speed
- no download limit
- no upload limit
- can set chat topic
Copy the following to an executable script file called geenerateWiredPassword.sh that you execute with ./generateWiredPassword.sh login password. The output of the script can then be copied to the Wired server users file.
#!/bin/bash #Permission strings ADMINPERM="1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:0:0:0:0:1" USERPERM="1:0:1:0:1:1:1:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:1" GUESTPERM="1:0:1:0:1:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0" #Default group: "Users" if [[ -n "$1" && -n "$2" ]] ; then POSPAR1="$1" POSPAR2="$2" passSHA1=$(echo -n $2 | openssl sha1) echo -e "\tInsert the following to your wired server users file:" echo -e "\t$1:$passSHA1:Users:"$USERPERM exit 0 else echo -e "\tERROR: Missing login and or password." echo -e "\tUSAGE: generateWiredPassword.sh login password" exit 1 fi
Advertisement
[...] have a litle script to create users that might be handy. It creates a user with the “normal user privileges” so if you re-create the admin user [...]
[...] « Script to add users to the Wired server Installing the Zanka Software Wired server on Ubuntu 10.10 [...]