Tracy Phillips

CentOS sudo error audit_log_user_command(): Connection refused

2 comments

While in a CentOS OpenVZ virtual machine the other day, I had setup sudo to root and encountered the following message:

[server][user][~]$ sudo su -
Password:
audit_log_user_command(): Connection refused

No harm in that, but it was unpleasant to look at none the less.

It finally got the better of me and I finally decided to go about fixing it.

This bug is in Redhat’s bugzilla located here. The fix is to patch your current version of sudo or use a newer version of sudo than sudo-1.6.9.p13. I opted to install the latest version of sudo as of t his writing, sudo 1.7.

This was a fresh install, so I needed to install a few rpm’s with yum.

[server][root][~]# yum install gcc pam-devel make

Then I did the build

[server][root][~]# wget http://www.gratisoft.us/sudo/dist/sudo-1.7.0.tar.gz
[server][root][~]# tar xzvf sudo-1.7.0.tar.gz
[server][root][~]# cd sudo-1.7.0
[server][root][~]# ./configure
[server][root][~]# make
[server][root][~]# make install

That’s all there was to it. Now you can sudo til’ your hearts content without that annoying little message.

Now I can finally get ready for the Super Bowl party

Written by Tracy

January 24th, 2009 at 11:02 am

Posted in Linux

Tagged with ,

2 Responses to 'CentOS sudo error audit_log_user_command(): Connection refused'

Subscribe to comments with RSS or TrackBack to 'CentOS sudo error audit_log_user_command(): Connection refused'.

  1. Just a quick note: one may have to remove his old sudo manually (/usr/bin in my case) and link it to the new one (/usr/local/bin).

    Try sudo -V to make sure you are using the version just installed.

    It solved my problem, thank you so much.

    Bruno B.

    15 Jan 10 at 2:01 am

  2. Yep, this did the trick. I forgot that CentOS sometimes lags behind in updating their packages to the latest and greatest. That message finally bugged me to Google search. Thanks for the quick and concise post!

    kinetek

    5 Feb 10 at 9:11 am

Leave a Reply