sulekha
whenever an user who is not in /etc/sudoers file issues the sudo command
we will get the following message
" .... is not in the sudoers file. This incident will be reported"
now my question is where does this reporting take place ?
from which file an administrator can know who all tinkered with sudo command ?
Is it /var/log/auth.log file ?
colucix
From the sudo man page:
Code:
If a user who is not listed in the sudoers file tries to run a command via sudo, mail is sent to
the proper authorities, as defined at configure time or in the sudoers file (defaults to root).
Note that the mail will not be sent if an unauthorized user tries to run sudo with the -l or -v
flags. This allows users to determine for themselves whether or not they are allowed to use sudo.
The log file is usually auth.log, as you already stated. You can see some entry like this:
Code: Nov 14 21:09:58 localhost sudo: pippo : user NOT in sudoers ; TTY=pts/1 ; PWD =/home/pippo ; USER=root ; COMMAND=/usr/bin/vi /etc/passwd
Theory is when you know all and nothing works. Practice is when all works and nobody knows why. In this case we have put together theory and practice: nothing works... and nobody knows why! (Albert Einstein)
Saturday, November 15, 2008
Friday, November 14, 2008
Reconfiguring Fonts in Ubuntu
Basic font configuration is associated with the fontconfig-config package.
To configure fonts on the local system, run the following command:
$ sudo dpkg-reconfigure fontconfig-config
Fortunately, there are only three steps in this process. The first step refers to “Bitstream Vera (the default in Debian)” fonts. As Ubuntu Linux is a derivative of Debian Linux, this option applies to this book. Be aware that this option also supports proper rendering of Microsoft fonts.
The next step supports “subpixel rendering,” which optimizes the view of fonts on flat screens, including LCD and laptop monitors. Select Automatic if you use both LCD and older Cathode Ray Tube (CRT) monitors.
The final step allows the enabling of bitmapped fonts. The recommended default is to disable such fonts, due to the quality. Make a choice and press ENTER to continue.Changes aren’t implemented until the next time the X server is started. They are written to files in the the /etc/fonts/conf.d/ directory. The services that run the X server use the /etc/fonts/fonts.conf file, as well as related files in the /etc/fonts subdirectories.
Tested on ubuntu 8.04.1
To configure fonts on the local system, run the following command:
$ sudo dpkg-reconfigure fontconfig-config
Fortunately, there are only three steps in this process. The first step refers to “Bitstream Vera (the default in Debian)” fonts. As Ubuntu Linux is a derivative of Debian Linux, this option applies to this book. Be aware that this option also supports proper rendering of Microsoft fonts.
The next step supports “subpixel rendering,” which optimizes the view of fonts on flat screens, including LCD and laptop monitors. Select Automatic if you use both LCD and older Cathode Ray Tube (CRT) monitors.
The final step allows the enabling of bitmapped fonts. The recommended default is to disable such fonts, due to the quality. Make a choice and press ENTER to continue.Changes aren’t implemented until the next time the X server is started. They are written to files in the the /etc/fonts/conf.d/ directory. The services that run the X server use the /etc/fonts/fonts.conf file, as well as related files in the /etc/fonts subdirectories.
Tested on ubuntu 8.04.1
Wednesday, November 12, 2008
Monday, November 10, 2008
/etc/cron.daily/find script
I have read that the locate command database is normally updated only once each day,as documented in the /etc/cron.daily/find script, but i didn't find any find script in /etc/cron.daily/ directory ?
NB: i use ubuntu 8.04.1
Billymayday
Try grep updatedb /etc/cron.daily/*
In CentOS it's mlocate.cron
NB: i use ubuntu 8.04.1
Billymayday
Try grep updatedb /etc/cron.daily/*
In CentOS it's mlocate.cron
Use Ubuntu’s movie player to watch YouTube movies
Like many open source applications, Totem utilizes a plugin structure,meaning that its functionality can be expanded by add-in modules. Several are supplied out of the box, including a YouTube browser. This lets you search for and playback YouTube videos within Totem. However,
none of the plugins are activated.
To activate the YouTube plugin, start Totem (Applications → Sound & Video → Movie Player), click Edit → Plugins, and put a check alongside YouTube Browser in the list. Click the Close button and then, in the main Totem program window, select YouTube from the dropdown headed Properties at the top right. Following this a search box will appear, in which you can search for videos on YouTube. Double-click any entries in the Search Results field to play them in Totem.
Note that you might need to follow the instructions to ensure all the multimedia codecs are installed prior to playback in order to watch YouTube videos in Totem; for some reason, codec installation for YouTube videos isn’t automatic, as it is for other video file formats.
none of the plugins are activated.
To activate the YouTube plugin, start Totem (Applications → Sound & Video → Movie Player), click Edit → Plugins, and put a check alongside YouTube Browser in the list. Click the Close button and then, in the main Totem program window, select YouTube from the dropdown headed Properties at the top right. Following this a search box will appear, in which you can search for videos on YouTube. Double-click any entries in the Search Results field to play them in Totem.
Note that you might need to follow the instructions to ensure all the multimedia codecs are installed prior to playback in order to watch YouTube videos in Totem; for some reason, codec installation for YouTube videos isn’t automatic, as it is for other video file formats.
Find the Ubuntu version and code-name
If you’re sitting in front of somebody else’s Ubuntu computer and want to quickly identify which version of Ubuntu it running (not always easy to do from the look and feel if it’s heavily customized), do the following: open a terminal window and type cat /etc/lsb-release. You can also
click Help → About Ubuntu, although bear in mind this won’t show the “point release” (for example, on my 8.04.1 installation, Help → About Ubuntu only mentioned the 8.04 release). This trick can also be used to ensure that you’ve upgraded to a newer version when one is released.
source:- ubuntukungfu
click Help → About Ubuntu, although bear in mind this won’t show the “point release” (for example, on my 8.04.1 installation, Help → About Ubuntu only mentioned the 8.04 release). This trick can also be used to ensure that you’ve upgraded to a newer version when one is released.
source:- ubuntukungfu
Sunday, November 9, 2008
Adding Microsoft Fonts in ubuntu
Even if you use OpenOffice, you might still want all the Microsoft TrueType fonts so that documents created using Word or PowerPoint look as they were supposed to when you open them with OpenOffice. Also, with the Microsoft Fonts installed we browsing will be better since the pages will look as the designer originally intended them to. Most webpages are designed with Microsoft fonts in mind. The stylesheet specify these fonts. On Linux, when these specified fonts are not available on your computer, they are replaced with generic equivalents. With these fonts installed, you will see the page as it was designed. To install the fonts, all you need to do in Ubuntu is to install the msttcorefonts package.
There are two packages associated with installing Microsoft fonts on Ubuntu Linux.
They can be installed with the following command:
$ sudo apt-get install msttcorefonts ttf-xfree86-nonfree
These packages are available from the Multiverse repository
in lucid or ubuntu 10.04 just install ubuntu-restricted-extras package
see:-http://corefonts.sourceforge.net/
There are two packages associated with installing Microsoft fonts on Ubuntu Linux.
They can be installed with the following command:
$ sudo apt-get install msttcorefonts ttf-xfree86-nonfree
These packages are available from the Multiverse repository
in lucid or ubuntu 10.04 just install ubuntu-restricted-extras package
see:-http://corefonts.sourceforge.net/
Subscribe to:
Posts (Atom)