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 configure the sudo so that 'testuser' will be able to run the asterisk? Thanks, Alex
On Thu, 2006-11-02 at 17:12 +0100, Asterisk wrote:> 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 configure the sudo so that 'testuser' will be > able to run the asterisk? >Use the visudo to make changes to /etc/sudoers , to make the sudo stop asking for a password you need a line at /etc/sudoers like (take note on the space after the = ): testuser ALL= NOPASSWD: /usr/sbin/asterisk> Thanks, > Alex > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- Guillermo Salas M. Telconet S.A. Calle 15 y Avenida 24 Esq Edificio Barre #2 Primer Piso Telefono : +593 5 262 8071 Celular : +593 9 985 5138 e-mail : gsalas@manta.telconet.net www : http://www.manta.telconet.net http://www.telcocarrier.net Linux User: 255902 Beat me, whip me, make me use Windows! Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html Please avoid the Top Posting, see http://es.wikipedia.org/wiki/Top-posting
Tod Detre (CampusEAI Consortium)
2006-Nov-02 11:11 UTC
[asterisk-users] Running asterisk with 'sudo'
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 testuser ALL=(ALL) NOPASSWD: /usr/sbin/asterisk *> testuser ALL=NOPASSWD: /usr/sbin/asterisk- -- Regards, Tod Detre Technical Lead Global Information Technology CampusEAI Consortium 1940 East 6th Street, 11th Floor Cleveland, OH 44114 Tel: 216.589.9626 x151 Fax: 216.589.9639 www.campuseai.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFSjST2ThzE/IuQ3sRAvo4AJ97R1ci0Wdo0MEi9E5dYVEm915GcwCfbclg R/s0KY2TQ9KOGrNqu5Kiwxo=s9UD -----END PGP SIGNATURE-----
On Thu, Nov 02, 2006 at 05:12:33PM +0100, Asterisk wrote:> 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.BTW: there is the alternative option: run a private copy of Asterisk that does not require root. For that you'll probably need a custom asterisk.conf with different pathes. And the standard Asterisk can't be running at the same time or alternatively both copies need to be bound to different TCP ports. Limitations: non-root asterisk cannot use -U (obviously) -G (I believe) and -p (which requires root) or the equivalent asterisk.conf options. -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir
Thanks guys. It works great now. -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Tod Detre (CampusEAI Consortium) Sent: Thursday, November 02, 2006 7:10 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Running asterisk with 'sudo' -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 testuser ALL=(ALL) NOPASSWD: /usr/sbin/asterisk *> testuser ALL=NOPASSWD: /usr/sbin/asterisk- -- Regards, Tod Detre Technical Lead Global Information Technology CampusEAI Consortium 1940 East 6th Street, 11th Floor Cleveland, OH 44114 Tel: 216.589.9626 x151 Fax: 216.589.9639 www.campuseai.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFSjST2ThzE/IuQ3sRAvo4AJ97R1ci0Wdo0MEi9E5dYVEm915GcwCfbclg R/s0KY2TQ9KOGrNqu5Kiwxo=s9UD -----END PGP SIGNATURE----- _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users