[Gtkradiant] [Bug 785] ~/.radiant has wrong ownership and permissions

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Sat, 06 Sep 2003 11:23:44 -0500


http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=785

ttimo@idsoftware.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED



------- Additional Comments From ttimo@idsoftware.com  2003-09-06 11:23 -------
so if I understand right what happens is that when it runs as root, it uses
/Users/original-user/.radiant ?

there are several things:

- it's bad to run as root. maybe radiant on OSX should simply refuse to start as
root. The install needs to run as root usually, but that's a different issue.

- if you run once as root, but then run as user, you're screwed because of that
.radiant directory that's in the wrong place with the wrong permissions.

proposed change would be:

if radiant is running as root it should use /root/.radiant to store it's
settings, and never do something under /Users etc.

or radiant should simply refuse to start as root, ensuring that bad directory
doesn't get created

if there's a permissions denied when opening the prefs, radiant should probably
point to this particular bug item / url just in case

patches welcome!