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: 2021-04-21 12:11 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: maarten at ba dot be Assigned:
Status: Suspended Package: Program Execution
PHP Version: Irrelevant OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: maarten at ba dot be
New email:
PHP Version: OS:

 

 [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

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-04-21 12:11 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2021-04-21 12:11 UTC] cmb@php.net
Well, yes, makes some sense, but would likely not work for
escapeshellarg() and friends, and as such the details need to be
figured out carefully.  If you're still looking for this feature,
please pursue the RFC process[1].  For the time being, I suspend
this ticket.

[1] <https://wiki.php.net/rfc/howto>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 23:01:34 2024 UTC