[sudo-users] Runas Query.

Kevin Shortt kevinshortt at gmail.com
Wed Mar 21 00:40:47 EDT 2012


Nice catch Leigh.

I was smoked out by the "Defaults:TIAGRP runas_default=tia" line.

Gary,   I bet if you add this line:
     "Defaults:TD2GRP runas_default=tia"

You will not require the -u flag at all.

I hope this helps.

-Kevin



On Tue, Mar 20, 2012 at 6:49 AM, <Gary.Haden at saga.co.uk> wrote:

> Hi Leigh,
>
> I think you've found the problem. That was the difference between the
> command that worked and the one that didn't. We've moved from an old
> version of sudo (that had the *.grp files) and on this system they had sudo
> -d, so we'll just update to sudo -u <user_to_runas>.
>
> Thanks for the help.
>
> Gary.
>
>
>
>             Leigh Brown
>             <leigh at solinno.co
>             .uk>                                                       To
>             Sent by:                  <sudo-users at sudo.ws>
>             sudo-users-bounce                                          cc
>             s at courtesan.com
>                                                                    Subject
>                                       Re: [sudo-users] Runas Query.
>              19/03/2012 17:22
>
>
>
>
>
>
>
>
>
> On 19.03.2012 15:38, Gary.Haden at saga.co.uk wrote:
> > As mentioned before the other command that we want to run as tia if
> > you are
> > in the TD2GRP '/usr/local/setuids/tiadaemon2' works ok. Would it be
> > anything to do with the difference in permissions? As a test I
> > changed the
> > owner of F1095.shl to root but it still failed.
>
> This may be obvious, but are you remembering to use the "-u" option?
> sudo
> doesn't automatically select the user even if that is the only user
> that you
> can run the command as.
>
> Regards,
>
> Leigh.
>
> ____________________________________________________________
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
> http://www.sudo.ws/mailman/listinfo/sudo-users
>
>
>
> Please consider the environment before printing this email
> The opinions expressed in this e-mail are those of the individual and not
> necessarily the company. This e-mail and attachment[s] are confidential to
> the sender and are solely for use by the intended recipient.
>
> Saga Services Limited: Company Registration No. 732602
> Saga Publishing Limited: Company Registration No. 2152564
> The above companies are wholly owned subsidiaries of Saga Group Limited.
>
> Saga Holidays is a registered trading name of Acromas Holidays Limited:
> Company Registration No. 2174052
> Saga Shipping is a registered trading name of Acromas Shipping Limited:
> Company Registration No. 3267858
> Saga Personal Finance is a registered trading name of Acromas Financial
> Services Limited: Company Registration No. 3023493
>
> Saga Group Limited: Company Registration No. 638891
> All companies registered at: Enbrook Park, Sandgate, Folkestone, Kent CT20
> 3SE
> Saga Charitable Trust is a UK registered charity No. 291991
>
> Saga Services Limited is authorised and regulated by the Financial
> Services Authority.
> Acromas Financial Services Limited is authorised and regulated by the
> Financial Services Authority.
> Acromas Holidays Limited is an appointed representative of Automobile
> Association Insurance Services Limited which is authorised and regulated by
> the Financial Services Authority.
> Acromas Insurance Company Limited is authorised by the Financial Services
> Commission, Gibraltar.
>
> This e-mail and attachment[s] has been scanned for the presence of
> computer viruses. Saga accept no responsibility for computer viruses once
> this e-mail has been transmitted.
>
> ____________________________________________________________
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
> http://www.sudo.ws/mailman/listinfo/sudo-users
>



More information about the sudo-users mailing list