Removing user

From Pulsed Media Wiki
Revision as of 15:13, 16 May 2011 by Nucode (talk | contribs) (Initial instructions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Removing an user with previous versions of PMSS was a manual task. Both methods are described here. In both methods remember to remove DNS entries if you are not using wildcard records.

Terminate script

/scripts/terminateUser.php USERNAME

Confirm deletion, and script will remove the user, all except lighttpd VHOST configuration (but password has been removed so cannot login even if directory would still exist).

Manual user removal

cd /home
killall -9 -u USERNAME
userdel USERNAME
vim /etc/lighttpd/lighttpd.conf
/etc/init.d/lighttpd restart
htpasswd -D /etc/lighttpd/.htpasswd USERNAME
rm -rf USERNAME

When you open lighttpd conf in vim type: /USERNAME[enter] and you will likely end up on first line of user VHOST configuration, then type: d9[arrow down] to delete that section. save & exit by typing: :wq[enter] htpasswd -D line is optional, but recommended.