#11676: sage-pkg does not force world-readable permissions
-------------------------------+--------------------------------------------
   Reporter:  AlexanderDreyer  |          Owner:  AlexanderDreyer         
       Type:  enhancement      |         Status:  needs_info              
   Priority:  major            |      Milestone:  sage-4.7.2              
  Component:  scripts          |       Keywords:  chmod umask install mode
Work_issues:                   |       Upstream:  N/A                     
   Reviewer:                   |         Author:  Alexander Dreyer        
     Merged:                   |   Dependencies:                          
-------------------------------+--------------------------------------------

Comment(by AlexanderDreyer):

 Replying to [comment:23 jdemeyer]:
 > Partially off-topic but highly important question: what does your
 "broken" filesystem do to executable permissions?  If it doesn't preserve
 permissions, it might also change the executable bit which is very bad
 anyway.
 The (owner) execetable bit is not affected.

 > Could you please tell me which OS you are using, which filesystem it is
 precisely and what happens when you do
 > {{{
 > $ chmod 644 some_file
 > $ ls -l some_file
 > $ chmod 755 some_file
 > $ ls -l some_file
 > }}}
 > on that filesystem?  I'm just trying to understand the situation better
 so I can find out the best fix.
 It is Linux, in particular SuSE Enterprise 11, but that's not part of the
 problem. The file are on an standalone file server which caches a lot of
 things. It seems there is a bug in the fileserver's system or in the
 driver, so that permissions are sometimes "stuck", i.e. chmod doesn't to
 anything (resp. the changes last some minutes to become active).

 But anyway, as I understand from #11664 the sources ''must'' be world
 readable in any case. So Sage should provides a tool to ensure this while
 packaging - at least optionally.  Alternatively, {{{sage-pkg}}} should
 test the permissions and give a warning if necessary.

 BTW: For the second part of the patch - namely changing the user/group to
 root - this should be done for privacy reasons anyway. (This can only be
 done in the tar file)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11676#comment:26>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to