HtPasswdStore mode: update to passwd file changes files group
|Reported by:||anonymous||Owned by:||mgood|
|Severity:||normal||Keywords:||htpasswd mangle file permission|
This problem is particularly a problem if a the setup is on Dreamhost. Following this tutorial almost allows this plugin to be used flawlessly: http://wiki.dreamhost.com/Troubleshoot_Trac_One-Click_Install. However, when any change is made to the password, the htpasswd file's group ownership is changed from dhapache to the group that the user is a part of (i.e. pg*). I don't know the inner workings of this plugin, but am starting to look into them more to see if I can see why this is happening. The file is writable, so it should be able to be edited while keeping the group ownership unchanged.
This essentially crashes the installation until you manually get it changed back either by a Dreamhost admin, and one other method through the Dreamhost panel.
If I need to clarify on this more, please let me know. This may just be a limitation of the plugin that can't be changed, but I'd like to be sure.
Before password changed through plugin -rw-r----- 1 theuser dhapache 154 2010-07-21 10:00 thefile.passwd
After password changed through plugin -rw-r----- 1 theuser pg* 154 2010-07-21 10:00 thefile.passwd