[Wine] confused newbie

James McKenzie jjmckenzie51 at earthlink.net
Tue Aug 4 22:32:41 CDT 2009


Austin English wrote:
> On Tue, Aug 4, 2009 at 4:46 PM, ChristTrekker<wineforum-user at winehq.org> 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 at 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




More information about the wine-users mailing list