Monthly Archives: February 2010

Issue : date: cannot set date: Operation not permitted

To fix the issue: # vzctl stop <veid> # vzctl set <veid> –save –capability sys_time:on # vzctl start <veid> # vzctl enter <veid> # mv /etc/localtime /etc/localtime.bk # ln -s /usr/share/zoneinfo/Asia/Calcutta /etc/localtime or set time by: date -s “2 OCT

Posted in Issues

Set Timezone on Linux Machine

ln -sf /usr/share/zoneinfo/Asia/Calcutta /etc/localtime Using TZ environment export TZ=Asia/Calcutta date

Posted in Issues, Server Setup

display cronjob of all users

for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done

Posted in Scripts
Blog Stats
  • 129,474 hits

Get every new post delivered to your Inbox.

Join 211 other followers