id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release 4276,[patch] HtPasswdStore changes ownership of htpasswd file (due to bad file IO in Python fileinput used here),Dav Clark,Steffen Hoffmann,"TSSIA! But for completeness: First off, you could kind of call this a bug in python's fileinput.input( ... , inplace=True)... this actually moves the existing file to .bak and then writes a new file. This has the additional effect of deleting obviously named backup files that might be living there! At a minimum, I'd say you should supply a less likely argument to fileinput.input's backup argument! That's really screwed me over once now! The plugin should definitely not be deleting such files! When I manage an htpasswd file with AccountManagerPlugin, it changes group and user to whatever that process is running as. This is a big problem for shared hosting, where for example, an htpasswd file needs to be readable by the shared apache server. This server might be running under something like an ""apache"" group, but then this plugin changes the group to my personal user's default group. Anyway, I've attached a diff against the htfile.py which uses more ""old-school"" file IO. I'm using it now without troubles. It could certainly be improved, and doesn't actually handle as many corner cases (e.g. duplicate entries) as the old version. But it's a step in the right direction, and I'm not personally worried about such corner cases!",defect,closed,high,AccountManagerPlugin,critical,fixed,htpasswd mangle file permission,Felix Schwarz,0.10