Displaying 20 results from an estimated 4000 matches similar to: "augeas / sudoers"
2010 Jun 30
7
augeas and sudo woes
The following function is based on code I found here in an earlier
thread.
define sudoer() {
augeas { "sudo${name}":
context => "/files/etc/sudoers",
changes => [
"set spec[last() + 1]/user ${name}",
"set spec[last()]/host_group/host ALL",
"set spec[last()]/host_group/command NOPASSWD: ALL",
"set
2011 Aug 25
6
manage sudoers with augeas
Hello,
I am trying to use augeas via puppet,
augeas { "mailops":
context => "/files/etc/sudoers",
changes => [
"set spec[user = ''%mail-ops'']/user %mail-ops",
"set spec[user = ''%mail-ops'']/host_group/host ALL",
"set spec[user = ''%mail-ops'']/host_group/command[1] \"/bin/su
2008 Sep 18
1
using NOPASSWD in sudoers
Hello Everyone,
I am trying to change our /etc/sudoers (using visudo) to allow 2
commands to be run as root without a password, but it isn't working.
Here is the part of the sudoers file that is in question.
# User alias specification
User_Alias FULLACCESS = doug, scott
# members of the FULLACCESS User_Alias may run chown and chmod without
a password
FULLACCESS ALL = (root) NOPASSWD:
2012 Jan 25
3
Having problems with sudoers
I've got a Cento 6.2 server I'm putting together that will become a
mailserver. It will have on it MailScanner and MailWatch for
MailScanner. I'm using the latest stuff available and have run into a
problem with changes I need to make in the /etc/sudoers file. It doesn't
seem to take affect after I make the changes, so either the syntax
within the file has changed or the way
2008 Jun 27
5
Wheel and YUM!!
Dear All
I am trying to allow a local user on the centos machine to be able to
run yum
What I have done is added him to the wheel group so that he can run
software, basically it's his own machine if he breaks it it's his
problem
But even after adding him to wheel, sys and adm group he is unable to
install using yum
I am sure I must be missing something or I must be doing
2008 Jul 09
2
sudoers
Hi,
I need to run /bin/mount and /sbin/mount.cifs commands as nobody user
(it has (bin/bash shell).
So, I've edited /etc/sudoers and added:
Cmnd_Alias CMD_MOUNT = /bin/mount
Cmnd_Alias CMD_CIFS ) = /sbin/mount.cifs
nobody ALL = NOPASSWD: CMD_MOUNT
nobody ALL = NOPASSWD: CMD_CIFS
But when I run the command as nobody (in the shell), I get the error:
"mount
2015 Jun 10
1
sudoers
My experience with RHEL and CentOS is quite limited, andwould classify me as novice.? I have been running CentOS 6for a little over a year and recently brought up a CentOS 7system as a virtual machine under Windows 7.
One of the first things I usually do after installation isedit the /etc/sudoers file using visudo to give a specificuser or specific users privileges as indicated in the fileexcerpt
2013 Jul 08
2
change sudoers remotely
hello list,
I've been asked to give someone sudo rights across an entire environment
without the benefit of something like puppet or chef or cfengine et al.
What I've come up with so far is this:
ssh -t miaprbicsra04v sudo -S /bin/echo "rsherman ALL=\(ALL\) NOPASSWD:
/sbin/service /bin/rm /usr/bin/du /bin/df" >> sudo tee /etc/sudoers
Right now that's just to one
2006 Apr 28
2
Running mount in a script.
I am running CentOS 4 and have the need to run "mount -t cifs ..." from
within a perl or bash script as part of an application. The
application does not run as root. I have been trying to do a chmod +s
on a root owned script but that doesn't seem to work. I still get
permission errors. I also took a look at sudo but that appears to
require a user to periodically enter a password.
2010 Jul 27
0
Augeas working inconsistently
I’ve got this define.
define sudoentry ($user, $host = "ALL", $command = "ALL", $tag = false, $runas = "ALL") {
$sudo_changes = $tag ? {
false => [
"set spec[user = ''$user'']/user $user",
"set spec[user = ''$user'']/host_group/host $host",
"set spec[user =
2010 Feb 22
6
Augeas type: Removing an entry from /etc/hosts
Hi all,
I''m just starting to look at using Augeas with Puppet to manage some of
our configuration files. I thought I would start with a simple task of
removing an entry from the /etc/hosts file. I''m not finding it simple
though!
We have a number of hosts with entries in the /etc/hosts file like this:
127.0.1.1 hostname
We would like to remove these lines. Now I know this can
2011 Jul 25
3
Sudo #includedir function ignored CentOS 6
I am unable to get the #includedir function to work with sudo. This works
just fine on all my CentOS 5.6 servers, but on 6 it is being ignored. I
have this line in the file /etc/sudoers.d/zabbix-puppet
zabbix ALL=NOPASSWD: /var/lib/zabbix/bin/start_puppet
However sudo still requires a password. If I put that same line into
/etc/sudoers file , there is no password prompt. At the end of my
2011 Jun 17
5
ssh_authorized_key and NIS user
Hi,
I have this resource definition:
ssh_authorized_key { "nagios@login2":
key => [REDACTED]
user => "nagios",
type => "ssh-dss",
require => Service[''nis''],
}
This nagios user comes from NIS, yp.conf and nsswitch.conf are handled by puppet
and configured before the key. I still get an "User does not
2015 Oct 31
3
use pssh to restart a service
>
> What does the sudo log say?
This is all the secure logs say about the ssh session:
[root at logs:~] #tail -f /var/log/secure
Oct 31 19:15:20 logs sshd[24407]: Accepted publickey for bluethundr from
47.18.111.100 port 47469 ssh2: RSA
ae:62:1f:de:54:89:af:2c:10:16:0e:fd:8d:7e:81:06
Oct 31 19:15:21 logs sshd[24407]: pam_unix(sshd:session): session opened
for user bluethundr by (uid=0)
2013 Jul 17
3
sudo add user script
Hello list,
I took another stab at finding a way to add a sudo user remotely and it
gets you most of the way there. If you execute the script as root it works
beautifully and does just what you want. Which is add the user to the
group and gives that user group rights to certain commands.
But if you execute it as a user who only has sudo access to the
/etc/sudoers file it errors out.
cloud:~]
2006 Nov 02
4
Running asterisk with 'sudo'
Hi guys,
I'm using RedHat and am trying to configure my sudo to enable user
'testuser' to run Asterisk. However whenever I try to run 'sudo
asterisk' as 'testuser' I get prompted for password.
This is the line in my sudoers configuration file that I thought should
do the trick, but it doesn't:
testuser ALL=NOPASSWD: /usr/sbin/asterisk
Does anyone know how to
2009 Jun 20
1
Fw: RE:Nagios under *[solved]
Hi Steve
Thanks for all your help, i followed your answers and found on that nagios was being run as user nagios....and if i executed the last command it asked for a password [i tried nagios password,root password etc] but it did not work..it the end i opened nagios.cfg and changed the NAGIOS_USER to root and changed the ownership permissons on the script also to root..I now get the correct
2004 Sep 05
4
Asterisk & sudo from httpd
Hello!
I want to use "asterisk -rx "show version"" from a php script called in
the browser using the local apache, which runs as user "apache".
Asterisk is running as root.
I added the following line to /etc/sudoers using visudo:
apache ALL = NOPASSWD: /usr/sbin/asterisk
When i am on the command line of my linux box it looks like this:
2011 Jun 21
2
Puppet agent problem on Ubuntu
I''m in the process of setting up puppet and experiencing some issues.
I''m running Ubuntu 11.04 desktop and server in two seperate VM''s. I''ve
installed puppet master (2.6.4) and puppet (2.6.4). The puppet master
and agent are happily working together.
I''m running the example in the book Pro Puppet. This is the first
example;
Code:
class sudo {
2010 Jun 02
22
augeas type and /etc/services
Has anyone attempted to use the augeas type to add a service? I got the
service to add no problem, but having some difficulties to get the match to
work to prevent duplicate entries from adding. Since the service-name[*]
has endless number of entries I used a glob so it checks all the entries but
that does not seem to work. Any ideas on how to proceed?
augeas { app_tcp'':
context