Quantcast
Channel: Hosting Controller – System Network Programming Solution
Viewing all articles
Browse latest Browse all 187

DirectAdmin Modify Multiple Users

$
0
0

Past that, I’d use a script, similar to what Peter mentioned. I tend to just write simple perl regex’s to work right on the user.conf files.
eg: disable spam:

cd /usr/local/directadmin/data/users
perl -pi -e 's/spam=ON/spam=OFF/' *.user.conf

for example (of course, that’s just a setting and hasn’t actually “done” anything.. to really disable spam, you must delete the users user_prefs file. If you want to delete everyone’s user_prefs file, type:

rm -f /home/*/.spamassassin/user_prefs

Each option in the user.conf may require some sort of action, which is why doing it through DA itself is usually better.. since DA does the action for you, as well as setting the user.conf file.


Viewing all articles
Browse latest Browse all 187

Trending Articles