Extending snmp

2011-02-26 Thread Donald Russell
I'm thinking of adding some function to snmp and it seems I can call custom scripts based on specific OIDs... My question is, how do I know which OID number hierarchy I can use so I don't conflict with other MIBs? And where can I find information on coding my own MIB so my snmp reads/writes can us

Re: determining sudo access

2011-01-20 Thread Donald Russell
On Wed, Jan 19, 2011 at 15:07, Tim wrote: > On Wed, 2011-01-19 at 14:34 -0800, Donald Russell wrote: > > In /etc/profile.d/local.sh I'd like to modify the PATH env variable to > > include /sbin /usr/sbin and /usr/local/sbin but only if the user has > > sudo access. &g

determining sudo access

2011-01-19 Thread Donald Russell
In /etc/profile.d/local.sh I'd like to modify the PATH env variable to include /sbin /usr/sbin and /usr/local/sbin but only if the user has sudo access. I can use sudo -l but that prompts for the user password unless the user is configured for NOPASSWD in sudo. Is there a reasonably convenient w

Re: how to use gmail smtp server for outgoing mail

2011-01-19 Thread Donald Russell
On Tue, Jan 18, 2011 at 15:07, Tom Horsley wrote: > On Tue, 18 Jan 2011 16:58:10 -0500 > Genes MailLists wrote: > > > It can be tricky to get the correct authinfo matching name > > This whole thread makes me glad I switched to postfix (which > I see RHEL 6 has as the default now as well). Configu

how to use gmail smtp server for outgoing mail

2011-01-17 Thread Donald Russell
I have a domain associated with my comcast IP address (I use dyndns.org) I installed sendmail on Fedora 14 and I can receive mail OK, but when I try to send outgoing mail, gmail.com rejects it with the following error: - Transcript of session follows - ... while talking to smtp.gmail.c

Recovering data :-(

2011-01-12 Thread Donald Russell
I have a disk that I pulled out of another machine. An fdisk -l shows the two partitions (one is a boot partition, th eother has a whole Fedora 13 system on it but it's an LVM partition. How can I mount that and see the files? In particular I want to recover some files from its /etc/mail director

Re: Restricting ssh

2011-01-07 Thread Donald Russell
On Thu, Jan 6, 2011 at 15:45, Sam Varshavchik wrote: > Timothy Murphy writes: > > I have an sshd server running on a machine in Ireland. >> >> Can I configure it so that it only accepts connection >> from certain machines, wherever they may be in the world? >> > > In sshd_config set: > > Passwor

Re: Where to set ENV vars for use at boot time

2011-01-05 Thread Donald Russell
On Wed, Jan 5, 2011 at 10:04, JB wrote: > Donald Russell gmail.com> writes: > > > ... > > There is no clearly defined config file to set in/read from your fsck env > variable. > So, you have to modify startup scripts and set it there before fsck call. > >

Where to set ENV vars for use at boot time

2011-01-04 Thread Donald Russell
I'd like to set the FSCK_FORCE_ALL_PARALLEL environment variable so fsck uses it when it runs when the system is coming up. (i.e. after a shutdown -F ) I don't know where to set these sorts of environment variables... /etc/profile.d/* seems to be too late. I tried /etc/sysconfig/init but I don't t

Re: how users can change cpu frequency ?

2010-12-27 Thread Donald Russell
On Mon, Dec 27, 2010 at 00:52, Alessandro Boggiano wrote: > Hi all, > I'd like to permit to users to scaling the cpu frequency > using the applet cpu scaling inside gnome without typing root password. > How can I do it? > If that can be done with a command, add the user and command to sudoers wi

upg fedora13->14 via preupgrade went terribly wrong

2010-12-25 Thread Donald Russell
Well, I've really buggered things up... I ran preupgrade on my Fedora 13 system with the goal of upgrading to Fedora 14. Fairly early on in the process I was warned my /boot partition was low on space but it was OK if I had a wired connection... OK... continue. On reboot, a dialog popped up about

Re: [fedora-list] How to add a new section in logwatch report

2010-12-08 Thread Donald Russell
On Tue, Dec 7, 2010 at 10:05, Tom Horsley wrote: > On Tue, 7 Dec 2010 09:46:10 -0800 > Donald Russell wrote: > > > Now that I've actually done it once, it seems pretty simple... so why did > it > > appear so complicated in the doc? hmmm. > > Well, what gets

Re: [fedora-list] How to add a new section in logwatch report

2010-12-07 Thread Donald Russell
--- Hey! Hey! You! You! Get off of my cloud! http://news.cnet.com/8301-13578_3-20002423-38.html On Fri, Dec 3, 2010 at 14:25, Rich Mahn wrote: > Donald Russell wrote: > > >I have an application that uses the logger -t command to add > >specific messages in /var/log/

How to add a new section in logwatch report

2010-12-03 Thread Donald Russell
I have an application that uses the logger -t command to add specific messages in /var/log/messages. I'd like to add those in a section of it's own in the logwatch report but am having trouble following the information in /usr/share/doc/logwatch-7.3 in the HOWTO doc. I added my new script/filter

Re: Ethereal?

2010-10-13 Thread Donald Russell
On Tue, Oct 12, 2010 at 11:00, Hiisi wrote: > > However if I try to run 'ethereal' command I've got: > $ ethereal > -bash: ethereal: command not found > So, my question is how to use it? > TIA > "Ethereal" ran into name infringement problems and changed their name to Wireshark a few years ago...

logcheck keeps sending me error messages

2010-10-06 Thread Donald Russell
I installed the logcheck package yesterday on my Fedora 13 system, and every hour since then have been getting emails from it with a error message like: /usr/sbin/logcheck: line 100: kill: (8338) - No such process $rpm -q logcheck logcheck-1.3.13-2.fc13.noarch Any suggestions? Thanks -- users m