On Sat, Mar 7, 2015 at 9:25 AM, leif <not.rea...@online.de> wrote: > On 03/07/2015 04:56 PM, William Stein wrote: >>>> (1) the group for that directory is the user (which is standard on >>>> Linux, btw, but not other os's) and >>> Well, obviously checking which users belong to the file's group would be >>> too expensive. >> >> It's not obvious to me that checking for the very common case of >> user=group would be too expensive... > > In general, having uid==gid in the ownership of a file alone doesn't > mean anything, in particular neither that the user (owner) is at all > part of the group the file is also owned by, nor (in the case the former > happens to be true) he/she's the only member of that group.
But this isn't just some random directory in the directory hierarchy, it's ~/.sage/.python-eggs You would have to seriously go out of your way to have uid=gid != user's uid. > > To assure that, you'd also have to examine /etc/group each time. > > (Likewise, in the case of uid!=gid the owner may still be the only > member of the group the file is owned by.) > > > -leif > > -- > You received this message because you are subscribed to the Google Groups > "sage-release" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-release+unsubscr...@googlegroups.com. > To post to this group, send email to sage-release@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-release. > For more options, visit https://groups.google.com/d/optout. -- William (http://wstein.org) -- You received this message because you are subscribed to the Google Groups "sage-release" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-release+unsubscr...@googlegroups.com. To post to this group, send email to sage-release@googlegroups.com. Visit this group at http://groups.google.com/group/sage-release. For more options, visit https://groups.google.com/d/optout.