Home

Calife: how to become root (or another user) with one’s own password


Eye with Pyramid

Calife is small program that enable a UNIX system administrator to become root (or another user) on his/her machines without giving the root password but his/her own.

The most interesting features of calife are:


Availability

The latest release is now 3.0.1, available at the primary site. Sorry, there is no FTP mirror for the moment. It has been signed with my PGP/GPG key (see here or a keyserver near you for the key) so please download the .sig file.

Calife dists — http

I have now setup a Calife project in a Redmine instance on this machine. Please check it out.

Calife repositories in Mercurial (HG)

You can either use

    hg clone URL local-directory

to pull these or browse the integrated web interface by clicking on the links below:

Main branch:
Calife 3.0/PAM

3.0.1 md5 hash is f9734d184d33e196a0bbfee8b6aa3f97.

Oldish stable branch:
Calife 2.8

NOTES on versions

2.8.6 is a security release after finding a possible buffer overflow in getpass(3) on Linux systems. 2.8.6 protects itself on all systems from this.

2.8.6-p2 is a minor upgrade to release the code for handling groups.

3.0 has been released (see here), the most important change is that 3.0 is PAM compliant, allowing to separately manage password policy and means to obtain said password.

That way, we are now compatible with MacOS X 10.3+ and up as the password is not available anymore through the usual getpwnam(3) API.

Relaxed mode in which one could use calife without a password has been deprecated and removed from the current source tree.


Calife is named after a very famous french comic taking place in an turkish/mideast country whereas the principal character – the Grand Vizir named “Iznogoud” – is always making plans to become “Calife” in place of the “Calife”.