[LRUG] Ruby environment under Solaris

Aleksandar Simic asimic at gmail.com
Mon Mar 21 09:05:22 PDT 2011


Solaris has pfexec, which is sort of like sudo, but somewhat less flexible.

Aleksandar

On Mon, Mar 21, 2011 at 3:53 PM, Jared Patterson
<Jared.Patterson at betfair.com> wrote:
> Hey Riccardo,
>
>
>
> To allow you to update your own gems using sudo, just ask your admin to add
> something like the following into ‘/etc/sudoers’, which is based on your
> username:
>
>
>
> riccardo  ALL=(ALL) NOPASSWD: /usr/bin/gem *
>
>
>
> Ofcourse, being Solaris, you will need to check where the gem binary
> resides, (which gem) should do the trick. Also, if sudo was installed with
> the solaris package, the sudoers file is likely to be in
> ‘/opt/sfw/etc/sudoers’.
>
>
>
> Incase you cant locate it, trying using truss to find it (as root):
>
>
>
> truss –o /tmp/truss.out sudo ls
>
> grep sudoers /tmp/truss.out
>
>
>
> you should see something like:
>
> open("/opt/sfw/etc/sudoers", O_RDONLY) = 4
>
>
>
>
>
> Cheers
>
>
>
> Jared Patterson
>
> Unix Engineer
>
> IS Unix Frontend – Product Delivery
>
>
>
> Office: +44 (0) 20 8834 6506
>
> Yahoo IM: patterson.jared84
>
> Betfair. The World’s Biggest Betting Community.
>
> Betfair Limited | Winslow Road | Hammersmith Embankment | London | W6 9HP
>
> Registered in England and Wales under company number 5140986
>
>
>
>
>
>
>
>
>
>
>
> From: chat-bounces at lists.lrug.org [mailto:chat-bounces at lists.lrug.org] On
> Behalf Of Riccardo Tacconi
> Sent: 21 March 2011 15:33
> To: London Ruby Users Group
> Subject: [LRUG] Ruby environment under Solaris
>
>
>
> Hi,
>
> I am not the sys admin but a developer having my apps in a Solaris
> environment without root privileges. Now we have a new server, but in the
> previous one the admin install multiruby and I was able to update the gems
> and even update Passenger and Mysql gem via sudo. In the new environment
> there is not multiruby and not the same sys admin and I would like to be
> able to manage my gems. To you have any suggestions. I know about rvm (I use
> it in my Mac) but it has issues on Solaris since it uses GNU commands. Do
> you have any simple solution, easy to configure that might work under
> Solaris?
>
> --
> Riccardo Tacconi
> Ruby on Rails and PHP development - System Administration
> VIRTUELOGIC LIMITED
>
> http://github.com/rtacconi
> http://riccardotacconi.blogspot.com
> http://twitter.com/rtacconi
> http://www.linkedin.com/in/riccardotacconi
>
> ________________________________________________________________________
> In order to protect our email recipients, Betfair Group use SkyScan from
> MessageLabs to scan all Incoming and Outgoing mail for viruses.
>
> ________________________________________________________________________
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>



More information about the Chat mailing list