[Adduser-devel] Ditch full paths in favor of locally set PATH?

Stephen Gran sgran at debian.org
Sat Apr 29 11:32:13 UTC 2006


This one time, at band camp, Stephen Gran said:
> This one time, at band camp, Marc Haber said:
> > Hi,
> > 
> > in reply to #357978, I intend to drop the explicitly listed paths from
> > the adduser code. Instead, ENV{"PATH"} will be reset to
> > /sbin:/usr/sbin:/usr/local/sbin to allow local diversions while still
> > preferring the system binaries.
> > 
> > Any comments?
> 
> I think if the sysadmin really wants to override one of the important
> system utilities, it should be allowed.  Indeed, I do this at one site
> at work to make passwd talk to LDAP.
> 
> This patch looks for the right executable in $PATH, instead of
> hardcoding, which feels correct to me.

And has a bunch of brokenness in it.  Let me rework it.  Sorry - I
really need to get a real test environment going on that laptop.
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran at debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20060429/10a2658b/attachment.pgp


More information about the Adduser-devel mailing list