DirectAdmin user and password
Wed, 06/01/2011 - 16:40 — sandipI've had to test some connectivity issues with pop and imap clients without having access to their account info.
"/etc/virtual/{domain.tld}/pas
Generate a new md5-based password hash:
openssl passwd -1
Edit "/etc/virtual/{domain.tld}/pas
Test login to mail.
Once debugging is finished, restore the file back.
- sandip's blog
- Login or register to post comments
- Read more
Check for entries in passwd file
Mon, 05/10/2010 - 00:51 — sandipCheck for entries in passwd file:
getent passwd username >/dev/null 2>&1 && echo "user exists" || echo "user does not exist"
id username >/dev/null 2>&1 && echo "user exists" || echo "user does not exist"
awk -F':' '$1 ~ /^username$/ {print $0}' /etc/passwd | grep -w username >/dev/null 2>&1 && echo "user exists" || echo "user does not exist"
- sandip's blog
- Login or register to post comments