Add 'rights', 'addrights' and 'removerights' commands