Missing OS2008 cmdline apps (was Re: how to install OS2007?)

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

 



On Sun, Dec 30, 2007 at 07:54:44PM +0200, Tuomas Kulve wrote:
> hendrik at topoi.pooq.com wrote:
> 
> > There's a big difference between setuid root ahd having to be root.
> 
> Ping is just a link to busybox and setting busybox as setuid wouldn't
> probably be a good solution either.

How about a /usr/bin/ping like this

  #!/bin/sh
  exec /usr/bin/sudo /bin/ping "$@"

with

  user ALL = NOPASSWD: /usr/bin/ping

in /etc/sudoers?

In the default $PATH /usr/bin comes before /bin, so it would work.

Marius Gedminas
-- 
World domination.  Fast.
		-- Linus Torvalds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.maemo.org/pipermail/maemo-users/attachments/20071230/c9d4a780/attachment.pgp 


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux