Re: runuser(1) and su(1) -g/-G

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

 



Pádraig Brady <P@xxxxxxxxxxxxxx> writes:

> setuidgid
>   coreutils internal only

The name setuidgid for this tool was introduced by daemontools, and
various other projects have have their own versions of it:

  http://cr.yp.to/daemontools/setuidgid.html
  http://www.skarnet.org/software/s6/s6-setuidgid.html
  http://b0llix.net/perp/site.cgi?page=runuid.8
  http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f=src/setuidgid.c
  http://offog.org/darcs/freedt/setuidgid.c

(It would often be helpful for the tool to do a bit more than just
setting the uid and gids -- e.g. setting $HOME...)

perp has a suite of "runtools" like this that do some sort of
environment setup before execing another program:

  http://b0llix.net/perp/site.cgi?page=manual

The most useful ones (for me!) have equivalents in util-linux already:

- runsession is setsid;

- runlimit is prlimit;

- runlock is flock -- but flock only has an su-style -c argument, so it
  would probably be worth fixing that at the same time as runuser?

Thanks,

-- 
Adam Sampson <ats@xxxxxxxxx>                         <http://offog.org/>
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux