On 05/08/2013 13:18, YuGiOhJCJ Mailing-List wrote:
> When I am running the ioquake3 1.36 server on linux at booting, I don't want 
> to run it as the "root" user because it is not safe.
> I prefer to use an "ioq3" user dedicated to this task.
> This is what happened when I run the server as the "ioq3" user using sudo as 
> "root":
> # sudo -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)
> 
> ...
> 
> We can see that the program wants to write into the "/root" directory.
> The "ioq3" user has not the permission to write to this directory.
> What is the best strategy to correct this behavior ?

The problem is that sudo does not update the HOME environment variable
by default. Run sudo with the -H flag and you should be fine.

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? 
_______________________________________________
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.

Reply via email to