Marketplace:

Buy cheap domains and domain transfer service with free domain hosting features
Affordable domain name hosting and webhosting for small business
Register cheap domain name by cheap-domainregistrar.com 

 

   

Getting Started with SUDO

next up previous contents index

The aim of wajig is to operate as much as possible as a user command and to do super user privileged commands as necessary (if that is how the system administrator wishes to allow a user to maintain their system). The easiest way to do this is to use the sudo package which will ask you for your password and then run the command as the super user. If you don't have sudo installed then wajig will use `su' to run as super user, but you will need to enter the super user password frequently. If `sudo' is installed but not set up for you to access the appropriate apt-get commands you will see a permission denied message.

Installing sudo is straight forward. As root run the command visudo to edit the configration file. Add the lines:



  Cmnd_Alias  APT = /usr/bin/apt-get, /usr/bin/apt-cache, /usr/bin/dpkg, \ 
                    /usr/sbin/dpkg-reconfigure, /usr/bin/dpkg-repack, \
                    /etc/init.d/*, /usr/sbin/update-alternatives, \
                    /usr/lib/apt-move/fetch, /usr/bin/dselect, \
                    /usr/bin/alien, /usr/sbin/apt-setup


and



  kayon      ALL=(ALL) APT


in the appropriate places (it should be obvious looking at the file). The user kayon can then run apt-get and related commands as the super user.


next up previous contents index


Copyright (c) 1995-2004

 

      

Marketplace:
Facts: " In headlines today, the dreaded killfile virus spread across the country adding 'aol.com' to people's Usenet kill files everywhere. The programmer of the virus still remains anonymous, but has been nominated several times for a Nobel peace prize.   "  

Saturday 6 September 2008 01:33:06 1220664786