[Fwd: [Fwd: [sudo-users] Config sudo for installation]]

edwardspl at ita.org.mo edwardspl at ita.org.mo
Mon Feb 19 03:52:21 UTC 2007


FuziOK wrote:

>Mikkel L. Ellertson wrote:
>  
>
>>edwardspl at ita.org.mo wrote:
>>    
>>
>>>Dear All,
>>>
>>>How can we config sudores, then assign a user ( without root ) to running
>>>the following : Install source code package, include the command of tar,
>>>configure, make and make install.
>>>
>>>Edward.
>>>      
>>>
>>You would only need sudo for the make install command - you can do
>>the rest as a normal user. (At least for almost all packages...) I
>>have not tried it, but I suspect that if you created a group called
>>install, and put a rule something like this in /etc/sudoers:
>>
>>%install	localhost=make install
>>
>>You could also use something like thins if you do not want it to be
>>limited to users at the console:
>>
>>%install	ALL=make install
>>
>>If you do not want the user asked for his password when running the
>>command, you can add "NOPASSWD: ALL" at the end.
>>
>>Mikkel
>>--
>>
>>  Do not meddle in the affairs of dragons,
>>for thou art crunchy and taste good with Ketchup!
>>    
>>
>
>I think it's not a good idea to use sudo to run 'make install'.
>If you write a Makefile like this:
>
>install:
>	rm -rf /
>
>then
>	%install	localhost=/usr/bin/make install
>is equal to
>	%install	localhost=/bin/rm -rf /
>in /etc/sudoers.
>
Hello,

If so, what a good ( best ) solution for the problem ?
Due to some user may need to install the source code packages by using
sudo...

Edward.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070219/da28181f/attachment-0001.htm>


More information about the fedora-list mailing list