Author Archives: itdoctor - Page 32
Ubuntu: No need to provide password when run sudo
nano /etc/sudoers %sudo ALL=(ALL) NOPASSWD:ALL #update this line
View list of users in a group
getent group groupname
Add new user and add it to sudo group
With and later If the user already exists sudo usermod -aG sudo <username> To create the user adduser <username> --group sudo
Can’t send to hotmail.com , blocked by Outlook.com ?
Do you see this error in your “Please contact your Internet service provider since part of their network is on our block list (AS3140)” Go to this website...
Dovecot: (keywords_update_records): assertion failed: (data_offset >= sizeof(struct mail_index_record))
This means your index is corrupted, we need to rebuild it find /user/emailfolder -name ‘dovecot*’ -type f -delete”
Apache: AuthType configured with no corresponding authorization directives
This happens when we upgrade my Apache to , it turns out that we haven’t got removed the old authentication configuration completely, we just remove the require valid...
Secure Web/Mail/Database with certificate
Web/Mail/Database can use the same certificate to allow its client to connect to the server. Postfix: postconf -e smtpd_tls_cert_file='/etc/pki/tls/' postconf -e smtpd_tls_key_file='/etc/pki/tls/' postconf -e smtpd_tls_CAfile='/etc/pki/tls/' Dovecot (POP3/IMAP server) SSL...
Ubuntu: cp copy overwrite without prompting
when you run: cp -rf /source/* /destination , it always ask you to confirm the overwrite action. Root cause: it’s probably the cp has been alias as cp -i...
Python: Realtime web print out
There are some situationĀ when we run a time-consuming process, we need to see the output of that command to see its progress. Normally, we would have to wait...
Restrict user to FTP only
### Restrict User to FTP Only: A Guide for Enhanced Security and Access Control In any organization or server setup, securing user access is a critical component of maintaining...