Austin English wrote: > On Tue, Aug 4, 2009 at 4:46 PM, ChristTrekker<wineforum-user@xxxxxxxxxx> wrote: > >> austin987 wrote: >> >>> Do you not know what sudo does? >>> >> It lets one user execute a command as another user, as long as he is authorized to do so in the sudoers file. >> >> ct@mybox$ sudo -u winuser wine start someapp.exe >> >> This would let me (ct) run wine out of wineprefix ~winuser/.wine - right? How does any root access occur? Am I missing something? >> >> Sudo also has many other options to configure the environment for commands thus executed, that may be useful to get this to work "correctly". >> > > Didn't know you were sudoing to a specific user (not root), sorry. > > May work...the winuser would need to own the .wine directory and > parent directory. You'd need to make sure that $DISPLAY and other > variables are properly set. > > Austin: Correct. Sudo should handle loading the user's environment as well, including switching the $HOME directory if needed. If not, you may have a file/folder ownership issue. Overcoming this is may be as easy as making sure the group has read/write/execute access if both users are in the same primary group. I don't recommend opening directory structure to world access unless absolutely necessary. James McKenzie