php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61209 configurable shell for exec in linux (not always sh)
Submitted: 2012-02-29 15:09 UTC Modified: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: maarten at ba dot be Assigned:
Status: Open Package: Program Execution
PHP Version: Irrelevant OS: linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-02-29 15:09 UTC] maarten at ba dot be
Description:
------------
i can understand that you can't use the $SHELL variable, because likely under apache it'll be /sbin/nologin anyway.

however, using always sh can be quite irritating when you're trying to make something and install it on a production environment, when finding out that sh is not the shell you're wanting to have. for a while now we've just changed the sh symlink to the shell we want, but now (for this particular machine) we can't workaround like this.

you can't always workaround by just putting /bin/shell before your command, especially if you're using shell constructs...

interesting would be a exec_shell=/bin/sh variable, which could then be used by the various program execution functions (for me in particular exec)


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Sep 24 09:01:26 2019 UTC