[Adduser-devel] Bug#357978: adduser calls /usr/bin/chfn instead of invoking chfn from PATH

Marc Haber mh+debian-packages at zugschlus.de
Sat Apr 29 11:41:52 UTC 2006


tags #357978 confirmed
thanks

On Mon, Mar 20, 2006 at 04:02:21PM +0000, Ian Jackson wrote:
> Can't exec "/usr/bin/chfn": No such file or directory at
> /usr/sbin/adduser line 892, <FIND> line 9.
> adduser: `/usr/bin/chfn naath' returned error code 16777215.
> Aborting.
> 
> # type chfn
> chfn is /usr/local/bin/chfn
> #
> 
> (I have diverted /usr/bin/chfn so that I can replace it with my own,
> which is a compatible replacement/wrapper.)

Hm. We are using hard-coded paths since we avoid using a shell for
subprocess invocation. We're going to change to a PATH-honoring setup
in one of the next versions, but we're going to set our own PATH on
startup to avoid privilege escalation issues. Most probably, the PATH
will be /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin,
so you'd really need to divert /usr/bin/chfn away to have
/usr/local/bin/chfn used.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835




More information about the Adduser-devel mailing list