Authentication Token Manipulation Error

You may get an error, such as Authentication Token Manipulation Error, while trying to change passwords for a user. For example:

#passwd user
Authentication Token Manipulation Error
#

This error is being produced because you are using shadowed password files and the shadow doesn’t have entry for this user. i.e, passwd file has an entry for this user, but shadow file doesn’t.

In order to resolve this, you can either add the entry manually or recreate the shadow file. You can use pwconv to recreate the shadow file. See the manpage for more details on this.

How to clear SWAP

It happens for swap to be used from time to time :

root@servcorp:~# free -m
total used free shared buffers cached
Mem: 4011 759 3252 0 4 53
-/+ buffers/cache: 702 3309
Swap: 8191 15 8176

To clear the swap run :

root@servcorp:~# swapoff -a && swapon -a

And free shows :

root@servcorp:~# free -m
total used free shared buffers cached
Mem: 4011 746 3265 0 4 55
-/+ buffers/cache: 686 3325
Swap: 8191 0 8191

Install ruby on cPanel

Under cPanel 11 you can install Ruby by running /scripts/installruby. This will install both ruby and rubygems.

root@main [~]# ruby -v
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux]

root@main [~]# gem list

*** LOCAL GEMS ***

actionmailer (2.3.11)
actionpack (2.3.11)
activerecord (2.3.11)
activeresource (2.3.11)
activesupport (2.3.11)
cgi_multipart_eof_fix (2.5.0)
daemons (1.1.4)
fastthread (1.0.7)
gem_plugin (0.2.3)
mongrel (1.1.5)
rack (1.1.2)
rails (2.3.11)
rake (0.9.2)
rubygems-update (1.8.5)