Tuesday, April 7, 2009

How to install sudosh

1. sudosh shell is very easy to install, just using yum install sudosh.

> yum install sudosh

After installation is completed, you need to change the /etc/sudoers file, and add the following lines:

User_Alias SAMPLEUSERS = simon, barabra

Cmnd_Alias SUDOSH = /usr/bin/sudosh

Cmnd_Alias MOUNT = /usr/mount

SAMPLEUSER ALL=(ALL) SUDOSH, MOUNT

2. To verify the sudosh shell, just run the following command:

> sudosh

If you get some errors like: segmentation fault. this is due to a tiny bug in sudosh, you need to remove any blank lines in the /etc/sudosh.conf, and make sure the log directory exists, if not exists, just create it.

Once the verifying is successful, you are ready to use the sudo sudosh shell, and only an user password requires. sudosh makes you easy to get the root privileges and doesn't require a root password, in most case, a normal user doesn't know a root password. the sudosh brings a power for you.

2 comments:

  1. Thanks for the segmentation fault tip, it saves my time ;)

    ReplyDelete
  2. Thanks for the segmentation fault tip, I was searching for hours :)

    ReplyDelete