Total Pageviews

Sunday, June 5, 2011

umount -l /nfsbackup Cannot create link /etc/mtab~ Perhaps there is a stale lock file?

Getting the following error while trying to umount a NFS mount?

root@# umount -l /nfsbackup
Cannot create link /etc/mtab~
Perhaps there is a stale lock file?

Please check whether there is temp files with the name /etc/mtab.tmp and /etc/mtab~ . Deleting these files will solve the problem. These files are either left over from a reboot or created accidentally.

~Sanil

Cannot login as root in FreeBSD

In FreeBSD servers direct ssh root login is disabled by default settings. You need to enable the root access manually by doing the following.

# vi /etc/ssh/sshd_config

Find out the following parameter :
PermitRootLogin no

Change it to :
PermitRootLogin yes

After you do the changes, save and exit. Then restart sshd.

# /etc/rc.d/sshd restart


#!/Sanil

How to archive emails in zimbra

There is no direct way to archive mails in free version of zimbra. instead, you can create a loal directory from zimbra and move all the emails in your inbox to that directory. But there lies another problem. You can only view 100 mails per page in zimbra. This makes the tasks more time consuming. Suppose you have 20000 mails in your queue you will have to repeat the same process 200 time!!. There is a way to change the view on webmail to see more than 100 mails per page. You can do this by changing the zimbraPrefMailItemsPerPage property for your email account to via zmprov.

Login to your server and do the following:

su zimbra

zmprov ma test@test.com zimbraPrefMailItemsPerPage 500

where ma stands for modify account.

Then you can change webmail settings from preferences to see more than 500 mails per page ;).