On Tue, 06 Aug 2013 11:25:07 +0100 Simon McVittie <smcv-ioqua...@pseudorandom.co.uk> wrote:
> On 06/08/13 09:08, Richard Allen wrote: > > If you are running this as root, try: > > > > # su - ioq3 -c "/usr/games/quake3/ioq3ded.i386 +exec yugiohjcj.config" > > For completeness, if sudo is your preferred > privilege-changing tool, this would work > (-H is the important option here): > > sudo -H -u ioquake3 /usr/games/quake3/ioq3ded.i386 +exec yugiohjcj.config > > (Or you could even reset $HOME via env(1), but don't do that. > Switching privilege levels without clearing the environment > is not reliable in general.) This is the result with the -H option of sudo: # sudo -H -u ioq3 /usr/games/quake3/ioq3ded.i386 +exec yugiohjcj.config ioq3 1.36 linux-i386 Sep 23 2012 ----- FS_Startup ----- Unable to create directory "/root/.q3a", error is Permission denied(13) Filesystem call made without initialization recursive error after: Filesystem call made without initialization ... recursive error after: Filesystem call made without initialization Segmentation fault As you can see it continues to write to the "/root" directory. Why it doesn't work ? _______________________________________________ ioquake3 mailing list ioquake3@lists.ioquake.org http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org By sending this message I agree to love ioquake3 and libsdl.