fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] Running a remote command with sudo


From: Chris Withers
Subject: Re: [Fab-user] Running a remote command with sudo
Date: Fri, 23 Nov 2012 08:01:51 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0) Gecko/20110624 Thunderbird/5.0

Didn't realise the client could specify what shell it wanted to use, wouldn't this be a bit of a security hole?

Chris

On 14/11/2012 15:14, Rahul Menon wrote:
You can use env.shell = '/bin/bash' or what ever you want to enable this
execution.

Rahul

On Wed, Nov 14, 2012 at 7:18 PM, Tim T. <address@hidden
<mailto:address@hidden>> wrote:

    Hi,

       Just started using fabric.. Finding it very easy and intuitive so
    far.

    However, I'm getting a bit stuck on the following:

    I want to install software remotely, using some python scripting. I
    can create a user and allow all commands through sudo. However, I
    don't want to leave this account as an available login for others.

    Setting the shell to /sbin/nologin stops the sudo command from
    executing. Using /bin/false and /bin/true also don't work.

    Any suggestions ? This is on RHEL6 by the way.

    Thanks,

       TimT.


    _______________________________________________
    Fab-user mailing list
    address@hidden <mailto:address@hidden>
    https://lists.nongnu.org/mailman/listinfo/fab-user




--
- Rahul


______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________


_______________________________________________
Fab-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user

--
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]