Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: bugs

[Bug 1360] Permission denied errors on files in /comp

 

 

Bricolage bugs RSS feed   Index | Next | Previous | View Threaded


bugs at lists

Sep 30, 2008, 6:25 AM

Post #1 of 6 (195 views)
Permalink
[Bug 1360] Permission denied errors on files in /comp

http://bugs.bricolage.cc/show_bug.cgi?id=1360


David Wheeler <david[at]kineticode.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED




--
Configure bugmail: http://bugs.bricolage.cc/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


bugs at lists

Sep 30, 2008, 6:25 AM

Post #2 of 6 (184 views)
Permalink
[Bug 1360] Permission denied errors on files in /comp [In reply to]

http://bugs.bricolage.cc/show_bug.cgi?id=1360


David Wheeler <david[at]kineticode.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |david[at]kineticode.com
AssignedTo|bugs[at]lists.bricolage.cc |david[at]kineticode.com




--
Configure bugmail: http://bugs.bricolage.cc/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


bugs at lists

Sep 30, 2008, 1:51 PM

Post #3 of 6 (186 views)
Permalink
[Bug 1360] Permission denied errors on files in /comp [In reply to]

http://bugs.bricolage.cc/show_bug.cgi?id=1360





--- Comment #1 from David Wheeler <david[at]kineticode.com> 2008-09-30 16:51:06 ---
(In reply to comment #0)
> While inst/files.pl does set some permissions, not all the files that should be
> readable by the apache proces get the correct permissions. Probably every file
> in /comp should be readable by the apache proces?
>
> [Tue Sep 30 14:49:55 2008] [error] [client 127.0.0.1] read_file: could not open
> file '/usr/local/bricolage/comp/login/dhandler' for reading: Permission denied

Bricolage applies the same permissions as the original files have. In
inst/files.pl, where $_ is the file just copied to $targ:

chmod((stat($_))[2], $targ)
or die "Unable to copy mode from $_ to $targ: $!";

So what this means is that, when you untarred the source, the permissions were
set wrong. What do you see, in the source tree from which you installed
Bricolage, when you do:

% ls -l comp/login/dhandler

? Is it different if you untar the sources using --preserve-permissions?

Best,

David


--
Configure bugmail: http://bugs.bricolage.cc/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


bugs at lists

Oct 3, 2008, 12:39 AM

Post #4 of 6 (180 views)
Permalink
[Bug 1360] Permission denied errors on files in /comp [In reply to]

http://bugs.bricolage.cc/show_bug.cgi?id=1360





--- Comment #2 from Roland van Ipenburg <ipenburg[at]xs4all.nl> 2008-10-03 03:39:04 ---
Yes, untarring using the preserve permissions option makes them -rw-r--r--
while without preserving it's -rw-------. But untarring as root without
preserve permissions also makes them -rw-r--r--.

Man tar says:
-x
Extract files from an archive. The owner, modification
time, and file permissions are restored, if possible.

I think I don't understand the "if possible" part, never had this issue before,
just ran into it installing Bricolage.


--
Configure bugmail: http://bugs.bricolage.cc/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


bugs at lists

Oct 3, 2008, 12:57 AM

Post #5 of 6 (183 views)
Permalink
[Bug 1360] Permission denied errors on files in /comp [In reply to]

http://bugs.bricolage.cc/show_bug.cgi?id=1360





--- Comment #3 from Roland van Ipenburg <ipenburg[at]xs4all.nl> 2008-10-03 03:57:44 ---
Looks like a umask issue. Umask seems to prevent the "if possible" of the
untar, and needs the preserve permissions option of tar to make it possible. So
untarring without the preserve permissions option combined with a user with a
restrictive umask keeps the permissions not readable by the apache proces
during the installation.


--
Configure bugmail: http://bugs.bricolage.cc/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


bugs at lists

Oct 3, 2008, 6:59 AM

Post #6 of 6 (181 views)
Permalink
[Bug 1360] Permission denied errors on files in /comp [In reply to]

http://bugs.bricolage.cc/show_bug.cgi?id=1360


David Wheeler <david[at]kineticode.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED




--- Comment #4 from David Wheeler <david[at]kineticode.com> 2008-10-03 09:59:23 ---
Fixed in r8336. The installer now explicitly sets permissions on installed
files, rather than relying on the unpackaged permissions for their default
values. I also took the opportunity to limit the permissions on configuration
files so that they're no longer world-readable.

Leaving this in trunk for now, as it's a change that could have unexpected
side-effects, so it's best to try it in the wild with a dev release rather than
backpatch rev_1_10. We can always backpatch later, though.


--
Configure bugmail: http://bugs.bricolage.cc/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

Bricolage bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.