Issue : date: cannot set date: Operation not permitted

24 02 2010

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 2006 18:00:00"





Set Timezone on Linux Machine

23 02 2010

ln -sf /usr/share/zoneinfo/Asia/Calcutta /etc/localtime

Using TZ environment

export TZ=Asia/Calcutta

date





display cronjob of all users

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







Follow

Get every new post delivered to your Inbox.