Posts

Showing posts from May, 2009

Plesk Protected Directory Username, Password and Path

Had a website that had been copied from one Plesk server to another but no one knew the usernames and passwords for the protected directories. Plesk with it's passwords in plain text in the database to the rescue! SELECT domains.name , protected_dirs.path, pd_users.login, accounts.password FROM domains RIGHT JOIN protected_dirs ON domains.id = protected_dirs.dom_id LEFT JOIN pd_users ON protected_dirs.id = pd_users.pd_id LEFT JOIN accounts ON pd_users.account_id = accounts.id ;

net-snmp Access Control

This should work on any linux distribution using the net-snmp packages. Install net-snmp and the net-snmp-utils packages. Edit "/etc/snmp/snmpd.conf" and find the following lines: # First, map the community name "public" into a "security name" # sec.name source community and add a line for each host you will be polling from. i.e. com2sec notConfigUser 127.0.0.1 <a really, really secure community> com2sec notConfigUser <some other host> <a really, really secure community> If you only changed the "source" and "community" columns the following lines should not need to be modified. # Second, map the security name into a group name: # groupName securityModel securityName group notConfigGroup v1 notConfigUser group notConfigGroup v2c notConfigUser Add a view named "all" in the following section. #### # Third, create a view for us to

Busted!

Did my first Ubuntu installation today. I wasn't really paying attention and skipped through the installation (it's very debianesque and I've done that a million times). I tried to get smart and skip creating a normal user account only to finish the installation process and realise it doesn't ask you for a root account password. Doh! Turns out that it's a "security" feature to encourage you to use sudo.