php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71714 Permission in session.save_path not working corretly
Submitted: 2016-03-05 06:43 UTC Modified: 2016-03-05 07:33 UTC
From: lampacz at gmail dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.6.19 OS: Debian jessie
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lampacz at gmail dot com
New email:
PHP Version: OS:

 

 [2016-03-05 06:43 UTC] lampacz at gmail dot com
Description:
------------
Setting 
php_value session.save_path "0;0660;/var/lib/php5/sessions" or
php_value session.save_path "0;660;/var/lib/php5/sessions"

doesn't set write for group

From http://en.php.net/manual/en/session.configuration.php#ini.session.save-path is possible to set different mode. And should not be affected by umask.

Expected result:
----------------
file session permission (0660/-rw-rw----)

Actual result:
--------------
(0600/-rw-------)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-05 07:33 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2016-03-05 07:33 UTC] requinix@php.net
It *is* affected by the umask.

Perhaps you're misunderstanding the
> Setting MODE does not affect the process umask.
comment: setting the mode will not affect (change) the umask for the process. That is the opposite of saying that the umask for the process will not affect (influence) the mode.
 [2016-03-07 07:30 UTC] lampacz at gmail dot com
Ohh, sorry my fault. It's not a bug ;)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 12:01:31 2024 UTC