similar to: sudo issue error with securing commands

Displaying 20 results from an estimated 5000 matches similar to: "sudo issue error with securing commands"

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:~]
2013 Jul 18
1
if /else in expect script
I took your suggestion and turned my (ill advised) sudoers bash script into an expect script! It works a lot better this way and is more secure. Because I'm not trying to store a password in a script (which I recognize as a bad idea anyway, I I think I've learned my lesson here). It really works well. But the only thing I'm still trying to figure out is how to put a if statement in
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
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:
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
2007 Oct 18
3
verify before deploy
so I have this sudo module that I''ve been working on: class auth::sudo { package { sudo: ensure => installed } file { sudo_config: name => "/tmp/sudoers", owner => "root", group => "root", mode => 0440, notify => Exec["sudoers-syntax"], source => [
2015 Nov 02
0
use pssh to restart a service
On 02/11/15 12:35, Tim Dunphy wrote: > Hey Gordon, > > Sorry, man my bad! Disabling the tty requirement for my sudo user does > indeed work. I had a type-o in the sudoers file, and when I corrected it, > my sudo command via pssh started working! > This is why it is paramount to use visudo command as opposed editing the /etc/sudoers file directly! The visudo command will check
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:
2015 Nov 15
0
samba's source code won't compile on ubuntu 14.04 LTS
This was my first post to the Samba list. It’s my intention to lend a hand to people, using my experiences as a launchpad, but sometimes a best practice is unbeknownst to me. For your suggestions, Rowland, I thank you. Your comments will help me improve my practice. On 2015.11.15, at 2:06 AM, Rowland Penny <rowlandpenny241155 at gmail.com> wrote: > On 14/11/15 22:54, Matthew Delfino
2006 Sep 07
3
Sudo(ers) distrobution system/script
Just wondering if anyone out there is using sudo across a bunch of machines and has a system/script for painlessly distributing a master sudoers file? is it as easy as a daily cronjob running wget/scp/rsync?
2009 Oct 15
1
CentOS Digest, Vol 57, Issue 14
Thanks for the responses. I think this is what I want to do. I commented out #Defaults requiretty in /etc/sudo. But what I really wanted to do was just place it in VPNUSERS: %vpnusers ALL=NOPASSWD: /sbin/service myciscovpn start, \ /sbin/service myciscovpn stop, \ /sbin/service myciscovpn status, \ /usr/bin/mycisco,
2010 Jun 08
0
R 2.11.0 for Ubuntu 10.04 Lucid Lynx on CRAN [solved]
Thank you very much Christophe by your advice. However, my situation was the opposite to yours, because I'm behind a proxy but my sudo account couldn't see it, and when looked for the proxy configuration of the sudo account with : $ sudo printenv | grep proxy the result was empty. Finally, thanks to all the advice received in this thread, I could fix the problem by editing the
2006 Feb 21
0
nobody run "add user script = /usr/sbin/useradd ....."
Greetings! I have the following configuration: Two PDCs with Fedora Core 4: PDC1 and PDC2. PDC1 trusts PDC2, respectively PDC2 is trusted to PDC1. I join an XP workstation to PDC2. After restart i can see both domains in the login screen domain combo box. I can logon to PDC2 , but not to PDC1, since the PDC2's /etc/passwd
2015 Nov 02
2
use pssh to restart a service
Hey Gordon, Sorry, man my bad! Disabling the tty requirement for my sudo user does indeed work. I had a type-o in the sudoers file, and when I corrected it, my sudo command via pssh started working! #pssh -i -h es_list "/bin/sudo /bin/systemctl restart elasticsearch; sleep 10" [1] 20:31:32 [SUCCESS] bluethundr at es3.jokefire.com Stderr: sudo: sorry, you must have a tty to run sudo
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
2013 Oct 30
1
Material y videos disponibles - Reunión del "Grupo de Usuarios de R de Madrid - martes 29-octubre"....
Saludo a todos, una consulta, donde hay que enviar las dudas en R para que alguién con mayor conocimiento en R nos ayude!!, Me llegan estos email lo cual son interesantes pero necesito ayuda!. Por favor!, gracias. El 30 de octubre de 2013 10:16, Felipe Vargas Reeve <kaiser756@gmail.com>escribió: > Muy buena iniciativa y gestión Carlos, se agradece. Saludos estimado, > atte >
2014 Feb 08
1
Samba 3 to 4 AD migration - extensive permissions problems
Finally biting the bullet and upgrading home machines to Windows 7 but experiencing many problems. Server is a Debian Lenny, old Samba 3.2.5, new Samba 4.1.4 built from source. My setup has been doing roaming profiles for XP since 2003 or so with almost no changes. I want to keep roaming profiles going plus do some folder redirection (Desktop (my wife doesn't believe in file shares for
2015 Nov 15
2
samba's source code won't compile on ubuntu 14.04 LTS
On 14/11/15 22:54, Matthew Delfino wrote: > This is a little rough, but I recently did this with Ubuntu 14.04.3 LTS and Samba source code 4.3.1: > > Installing Ubuntu: All steps default except: > - Choose to install "OpenSSH server" > > When rebooted: > - sudo -s > - apt-get update > - apt-get upgrade > - apt-get install open-vm-tools #if you have this in a
2019 Aug 16
4
Giving full administrator privileges through sudo on production systems
Hello, Consider two following cases: 1. On production systems on television stations, a sysadmin give teens (remaja group, age 13 and older) full administrator privileges by adding this line to sudoers: %remaja ALL=(ALL:ALL) ALL Rationale: Almost all programs on the system can only be run by teens as root. 2. On production systems on tobacco factories, a sysadmin also give adults (age 18
2005 Dec 10
6
Wierd ZFS interaction with sudo?
I''ve just installed express b28 on my system. After installing, I decided to move /opt to a zfs pool home/opt. After installing Blastwave''s latest sudo, I did my usual edits of sudoers. When I attempted to execute sudo ls to test things I got this: rtfm:/opt/csw/etc:>sudo ls sudo: /opt/csw/etc/sudoers is owned by gid 1, should be 0 But /opt/csw/etc/sudoers permissions