# Log commands allowed inside the sudoers file

**URL:** <https://forums.suse.com/t/log-commands-allowed-inside-the-sudoers-file/28569>\
**Category:** SLES Configure-Administer\
**Created:** [August 25, 2016, 6:43pm UTC](https://forums.suse.com/t/log-commands-allowed-inside-the-sudoers-file/28569 "2016-08-25T18:43:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stargazer89](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@Stargazer89](https://forums.suse.com/u/Stargazer89)\
**Post date:** [August 25, 2016, 6:43pm UTC](https://forums.suse.com/t/log-commands-allowed-inside-the-sudoers-file/28569/1 "2016-08-25T18:43:35Z")

</div>

Hi all!

I am using SLES9 but I assume that this is not very different in newer versions.  
I know that every time someone uses SUDO this is logged inside /var/log/messages.  
I don’t want any other user to be able to use SUDO but to be able to execute different commands which would require SUDO like e.g. "/sbin/yast2 users " for an administrative account.  
I set all the required parameters inside the sudoer file and it works fine but unfortunatly now those events are not logged anymore.  
Is it somehow possible to still log commands which can only be executed because of the sudoer file?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Automatic\_Reply](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Automatic\_Reply](https://forums.suse.com/u/Automatic_Reply)\
**Post date:** [August 31, 2016, 7:30am UTC](https://forums.suse.com/t/log-commands-allowed-inside-the-sudoers-file/28569/2 "2016-08-31T07:30:34Z")

</div>

Stargazer89,

It appears that in the past few days you have not received a response to your  
posting. That concerns us, and has triggered this automated reply.

These forums are peer-to-peer, best effort, volunteer run and that if your issue  
is urgent or not getting a response, you might try one of the following options:

- Visit [http://www.suse.com/support](http://www.suse.com/support) and search the knowledgebase and/or check all  
the other support options available.
- Open a service request: [https://www.suse.com/support](https://www.suse.com/support)
- You could also try posting your message again. Make sure it is posted in the  
correct newsgroup. ([http://forums.suse.com](http://forums.suse.com))

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.suse.com/faq.php](http://forums.suse.com/faq.php)

If this is a reply to a duplicate posting or otherwise posted in error, please  
ignore and accept our apologies and rest assured we will issue a stern reprimand  
to our posting bot…

Good luck!

Your SUSE Forums Team  
[http://forums.suse.com](http://forums.suse.com)
