Author Archives: marskarthik

Linux Single User Mode Reset Root Password

To do this reboot the Server as soon as you get the boot screen press ‘e’ (stands for edit) from keyboard. After you press ‘e’ from keyboard you would see a lot of text which may be clipped as per … Continue reading

Posted in Fedora, Linux, Redhat | Leave a comment

Ubuntu Firewall Command Line Examples

How do I see the current status of my firewall? sudo ufw status verbose How do I open tcp port # 22? To allow incoming tcp packets on port 22, enter: sudo ufw allow 22/tcp Verify it: sudo ufw status … Continue reading

Posted in Linux, Ubuntu | Leave a comment

Linux Find and Copy Command Examples

find files less 46 bytes and delete /usr/bin/find /share/team/ -maxdepth 5 -type f -size -46 -print | xargs rm -f Recursively remove all empty directories find . -type d -empty -delete /usr/bin/find /share/teamleads/ -type d -empty -delete /usr/bin/find /home/ -type … Continue reading

Posted in Linux | Leave a comment

Zimbra distribution list how to add, remove, get list

How to get list of distribution list in zimbra email server zmprov gadl How to get distribution list attributes zmprov gdl dlname@knowledgelinux.com How to add distribution list in zimbra email server zmprov cdl newdlist@marskarthik.com How to remove distribution list from … Continue reading

Posted in Zimbra | Leave a comment

Setting Up NTP (Network Time Protocol) Server in RHEL/CentOS 7

Step 1: Install ntp server package #yum install ntp -y Step 2: Get official NTP servers located near to your location. I am using Asia servers for this setup server 0.asia.pool.ntp.org server 1.asia.pool.ntp.org server 2.asia.pool.ntp.org server 3.asia.pool.ntp.org Step 3: Open … Continue reading

Posted in CentOS, Linux, RHEL | Leave a comment

Zimbra: Get mailbox size with status, created and last login date

Shell script to get mailbox size with status, created and last login date in Zimbra Server zmaccts | grep “@” | awk ‘{print $1}’ > /tmp/mboxes.list date > /tmp/mboxsize.txt #echo “\n” >> /tmp/mboxsize.txt for mb in `cat /tmp/mboxes.list`; do status=`zmaccts … Continue reading

Posted in Zimbra | Leave a comment

Zimbra fix: A network service error has occurred on Zimbra web client

By default Zimbra uses DoSFilter Throttling Mechanism to avoid large number of request over a short period of time. So if the Zimbra server see requests more than safe amount from an specific IP address / user that will be throttled and the … Continue reading

Posted in Zimbra | Leave a comment

Assign COS rights to user in Zimbra Server

zmprov grr global usr yourmail@yourdomain.com getCos zmprov grr global usr yourmail@yourdomain.com listCos zmprov grr global usr yourmail@yourdomain.com assignCos

Posted in Zimbra | Leave a comment

Enable Global Admin in Zimbra Server except “View Mail” option

zmprov ma admin@yourdomain.com zimbraAdminConsoleUIComponents accountListView  zimbraAdminConsoleUIComponents DLListView zimbraAdminConsoleUIComponents aliasListView zimbraAdminConsoleUIComponents resourceListView zimbraAdminConsoleUIComponents COSListView zimbraAdminConsoleUIComponents domainListView zimbraAdminConsoleUIComponents serverListView zimbraAdminConsoleUIComponents zimletListView zimbraAdminConsoleUIComponents adminZimletListView zimbraAdminConsoleUIComponents globalConfigView zimbraAdminConsoleUIComponents globalServerStatusView zimbraAdminConsoleUIComponents helpSearch zimbraAdminConsoleUIComponents saveSearch zimbraAdminConsoleUIComponents mailQueue zimbraAdminConsoleUIComponents backupsView zimbraAdminConsoleUIComponents certsView zimbraAdminConsoleUIComponents softwareUpdatesView zimbraAdminConsoleUIComponents bulkProvisionTasksView zimbraAdminConsoleUIComponents … Continue reading

Posted in Zimbra | Leave a comment

Revoke Rights for an admin user in Zimbra Server

zmprov revokeRight domain yourdomain.com usr email@yourdomain.com domainAdminRights zmprov revokeRight domain yourdomain.com usr email@yourdomain.com domainAdminDistributionListRights  

Posted in Zimbra | Leave a comment