Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 97068

Summary: wrong perms when installing squirrelmail-1.4.4-r1 using webapp-config-1.11
Product: Gentoo Linux Reporter: david somers <dsomers>
Component: New packagesAssignee: Stuart Herbert (RETIRED) <stuart>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: net-mail+disabled, web-apps
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---

Description david somers 2005-06-25 14:31:51 UTC
$ webapp-config -I -h webmail -d /webmail squirrelmail 1.4.4-r1   
   
The install works, but the permissions are a bit strange. webapp-config is   
setting the owner/group correctly to lighttpd... but on  data/ its set to apache  
instead of lighttpd!  
   
/var/www/webmail/root/webmail # ls -l   
total 64   
drwxr-xr-x   5 lighttpd lighttpd 4096 Jun 25 23:14 class/   
drwxr-xr-x   2 lighttpd lighttpd 4096 Jun 25 23:14 config/   
-rwxr-xr-x   2 lighttpd lighttpd   92 Jun 25 22:37 configure*   
drwxr-xr-x   3 lighttpd lighttpd 4096 Jun 25 23:14 contrib/   
drwxrwxr-x   2 apache   apache   4096 Jun 25 23:14 data/   
drwxr-xr-x   3 lighttpd lighttpd 4096 Jun 25 23:14 doc/   
drwxr-xr-x   4 lighttpd lighttpd 4096 Jun 25 23:14 functions/   
drwxr-xr-x   3 lighttpd lighttpd 4096 Jun 25 23:14 help/   
drwxr-xr-x   2 lighttpd lighttpd 4096 Jun 25 23:14 images/   
drwxr-xr-x   3 lighttpd lighttpd 4096 Jun 25 23:14 include/   
-rw-rw-r--   1 apache   apache    338 Jun 25 23:14 index.php   
drwxr-xr-x   2 lighttpd lighttpd 4096 Jun 25 23:14 locale/   
drwxr-xr-x  25 lighttpd lighttpd 4096 Jun 25 23:14 plugins/   
drwxr-xr-x   2 lighttpd lighttpd 4096 Jun 25 23:14 po/   
drwxr-xr-x   2 lighttpd lighttpd 4096 Jun 25 23:14 src/   
drwxr-xr-x   3 lighttpd lighttpd 4096 Jun 25 23:14 themes   

Reproducible: Always
Steps to Reproduce:
 
Actual Results:  
 

Expected Results:  
All the directories would be chown'd lighttpd/lighttpd (since that's what I've   
configured webapp config to do.. its worked on all the dirs except data/).
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2005-07-02 16:25:02 UTC
It's supposed to be owned by apache so the web server can write to it.
Comment 2 david somers 2005-07-02 16:43:38 UTC
D'uh.  
 
"It's supposed to be owned by apache so the web server can write to it." 
 
is, pardon me for being blunt, complete crap. Read my initial comment.. I'm complaining that the right 
owner/group isn't being set. In webapp-config I've explicitly set VHOST_DEFAULT_UID and 
VHOST_DEFAULT_GID to be "lighttpd", so why isn't it applying it to those files? Its a bug. Please fix it. 
 
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2005-07-02 17:29:18 UTC
well then you should've provided that info with the bug report... reassigning as
this isn't a squirrelmail bug
Comment 4 Renat Lumpau (RETIRED) gentoo-dev 2005-07-02 17:31:56 UTC
David,

Not being nice in bug reports is a good way to have your request ignored. We are
doing this for free, you know.

Reassigning to Stu
Comment 5 david somers 2005-07-02 22:23:21 UTC
(In reply to comment #3)   
> well then you should've provided that info with the bug report...   
   
Didn't I cover it in the "Expected Results" bit? Or is it my bad for not explicitly stating VHOST_DEFAULT_UID/ 
VHOST_DEFAULT_GID? 
   
   
Comment 6 Stuart Herbert (RETIRED) gentoo-dev 2005-11-20 09:54:10 UTC
Hi,

Please re-test with webapp-config v1.50.  This should resolve your issue.

Best regards,
Stu