plainblack.com
Username Password
search
Bookmark and Share
View All Tickets
upload directorys permission user is numeric  (#10006)
Issue

hi. In my public/uploads, any new files that has been created are given: webgui:429496729, whereas, it should be webgui:webgui.

The number does not match any uid or gui for that matter.  It does however happen to be MagickQuantumRange for ImageMagick and other stuff in perl 5.8.8

It doesn't appear to affect any functionality.

Solution Summary
Comments
elnino
0
3/21/2009 11:39 pm
wre v.84
elnino
0
3/21/2009 11:42 pm
sorry, title should be: "...gid is numeric" and it pertains to all 2 character named subdirectories that have been created since install and the files within those subdirectories.
JT
0
6/3/2009 10:29 am
I don't know how anything image magick could get in there, as the permissions aren't set by image magick or WebGUI. Apache sets them. What I'd do is check the User and Group directives in your modperl.conf to make sure they are both set to the webgui user.

Also, WRE 0.9.3 and WebGUI 7.6.25 are out. I'd consider upgrading.
martink
0
6/4/2009 3:01 am
This is due to the 'Group #-1' setting in /data/wre/etc/modperl.conf. As far as I know this is the equivalent of a nobody group. The reason why you see the big number is that that gid is not defined in your /etc/groups and (I guess) the #-1 is shorthand for the highest numbered group (ie. gid 0 -1).

If you want the upload dirs to be run as Group webgui then you should change the Group directive in the aforementioned config file.
Graham
0
6/8/2009 9:43 am
According to the Apache documentation, Group #-1 is the default setting, and it means to use the group of the user that is set.  It may still be leading to the group id problems though.
elnino
0
6/8/2009 3:11 pm
I've never modified modperl.conf before.  It's the default:
User webgui
Group #-1
elnino
0
6/8/2009 3:12 pm
So by default, your installation does webgui:nobody?
elnino
4
6/8/2009 3:48 pm
after chatting in IRC.... it appears that if you edit the modperl.conf file, and change "group #-1" to "group webgui", and restart modperl, any file uploaded thereafter will be given to the webgui group.

"#(number) refers to a group by number, #-1 refers to User's primary group"
doesn't seem to be mentioned in the Groups directive docs:
http://httpd.apache.org/docs/2.2/mod/mpm_common.html#group
Graham
0
6/9/2009 9:41 am
I'm not sure where I saw that but it definitely seems to be incorrect.

So the solution will be to use a real group name.  Not certain if the best way to handle it is just to use the specified user's primary group or if we should prompt for it like we do the user.
perlDreamer
0
6/9/2009 7:10 pm
Fixed in WRE 0.9.4.

The WRE will now do a lookup on the user, and insert the name of their default group into the apache config files.  If this is a problem for existing sites, it will need to be manually changed.

Resolved by perlDreamer
Details
Ticket Status Resolved  
Rating4.0 
Submitted Byelnino 
Date Submitted2009-03-21 
Assigned To unassigned  
Date Assigned2019-08-25 
Assigned By 
Severity Cosmetic (misspelling, formatting problems)  
What's the bug in? WebGUI Stable  
WebGUI / WRE Version 7.5.24  
URLbugs/tracker/10006
Keywords
Ticket History
6/10/2009
12:10 AM
Resolved perlDreamer
6/4/2009
8:01 AM
Pending martink
6/3/2009
3:29 PM
Feedback Requested JT
3/22/2009
4:34 AM
Ticket created elnino
© 2019 Plain Black Corporation | All Rights Reserved