Account Management

Retrieve from the terminal the ID list of users to add from User Manager

psql -c "
SELECT DISTINCT(sid) 
  FROM session_attribute 
 WHERE authenticated = 1 
EXCEPT SELECT sid 
         FROM session_attribute 
        WHERE name = 'enabled';"
| for sid in `cat -`; do
   [ $( grep ^$sid ~/auth/trac.passwd) ] && echo $sid;
done
Last modified 17 months ago Last modified on 2019-03-08T16:58:54+01:00