LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 10-02-2012, 04:42 AM   #1
tquang
Member
 
Registered: Jul 2010
Posts: 43

Rep: Reputation: 0
Visudo does not work


After appended by visudo command from root user:
Code:
alibaba ALL=(ALL) NOPASSWD:/usr/sbin/iptstate -s
Then switch to alibaba user:
Code:
su - alibaba
And run, but it's not show anything

Code:
[alibaba@dev ~]$ /usr/sbin/iptstate -s
IP Tables State Top -- Sort by: SrcIP
Source                Destination           Proto   State        TTL
If use sudo, user zabbix still required password
Code:
[alibaba@dev ~]$ sudo /usr/sbin/iptstate -s
[sudo] password for alibaba:
alibaba is not in the sudoers file.  This incident will be reported.
What happened to my system?

In logs
Code:
type=USER_AUTH msg=audit(1349169582.180:6547): user pid=19317 uid=0 auid=0 msg='PAM: authentication acct="alibaba" : exe="/usr/bin/sudo" (hostname=?, addr=?, terminal=/dev/pts/8 res=success)'
 
Old 10-02-2012, 05:16 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
zabbix? where did zabbix come into things?

Can you show us the whole sudoers file?

Last edited by acid_kewpie; 10-02-2012 at 05:18 AM.
 
Old 10-02-2012, 10:22 PM   #3
tquang
Member
 
Registered: Jul 2010
Posts: 43

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
zabbix? where did zabbix come into things?

Can you show us the whole sudoers file?
Thanks acid_kewpie, it's work fine after read here: http://www.zabbix.com/forum/showthre...233#post114233
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Arg! Virtual machine, sudo won't work, can't log in as root, visudo won't work Arg! edpatterson Linux - Newbie 2 01-03-2012 05:33 PM
visudo question walidaly Linux - Software 5 05-23-2007 08:59 AM
visudo noonmid27 Linux - Newbie 8 02-23-2007 04:42 PM
Need help with visudo powadha Debian 2 12-19-2004 05:04 AM
visudo xviddivxoggmp3 Slackware 7 08-17-2004 08:19 PM


All times are GMT -5. The time now is 06:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration