confused newbie
-
- Level 1
- Posts: 7
- Joined: Mon Aug 03, 2009 5:18 pm
confused newbie
To launch a Windows exe from a command line, is it "wine <program>" or "wine start <program>"? I've seen both mentioned in the documentation.
From what I can tell, every Wine user has their own copy of everything in the ~/.wine dir. Would it make more sense to install apps in a common location for everyone to use? This doesn't seem to be addressed in any FAQ that I have seen.
Having a list of what Windows apps (or clones thereof) are included in the standard Wine install would be useful, but I haven't found anything like this. Am I just missing it?
From what I can tell, every Wine user has their own copy of everything in the ~/.wine dir. Would it make more sense to install apps in a common location for everyone to use? This doesn't seem to be addressed in any FAQ that I have seen.
Having a list of what Windows apps (or clones thereof) are included in the standard Wine install would be useful, but I haven't found anything like this. Am I just missing it?
confused newbie
On Tue, Aug 4, 2009 at 11:12 AM, ChristTrekker<[email protected]> wrote:
It sets paths properly, and supports more file formats.
can cause corruption.
cmd, msiexec, etc.
--
-Austin
Wine program is more common, but wine start program is 'more proper'.To launch a Windows exe from a command line, is it "wine <program>" or "wine start <program>"? Â I've seen both mentioned in the documentation.
It sets paths properly, and supports more file formats.
No, this isn't supported. Multiple people using the same wineprefixFrom what I can tell, every Wine user has their own copy of everything in the ~/.wine dir. Â Would it make more sense to install apps in a common location for everyone to use? Â This doesn't seem to be addressed in any FAQ that I have seen.
can cause corruption.
Such as? Many builtin programs are included, e.g., wordpad, notepad,Having a list of what Windows apps (or clones thereof) are included in the standard Wine install would be useful, but I haven't found anything like this. Â Am I just missing it?
cmd, msiexec, etc.
--
-Austin
-
- Level 1
- Posts: 7
- Joined: Mon Aug 03, 2009 5:18 pm
Re: confused newbie
I assume "corruption" refers to various config files. So use a different wineprefix - just put binaries in a common place, using symlinks if this "binary path" isn't separately configurable. (~/.wine/drive_c/Program\ Files -> /usr/local/share/wine/Program\ Files) Executables aren't written to, so how would they be corrupted?austin987 wrote:No, this isn't supported. Multiple people using the same wineprefixFrom what I can tell, every Wine user has their own copy of everything in the ~/.wine dir. Â Would it make more sense to install apps in a common location for everyone to use? Â This doesn't seem to be addressed in any FAQ that I have seen.
can cause corruption.
confused newbie
On Tue, Aug 4, 2009 at 11:34 AM, ChristTrekker<[email protected]> wrote:
are written to, e.g., ini files and the like.
--
-Austin
Depends on the executable. Most programs come with other files thataustin987 wrote:I assume "corruption" refers to various config files. Â So use a different wineprefix - just put binaries in a common place, using symlinks if this "binary path" isn't separately configurable. Â (~/.wine/drive_c/Program\ Files -> /usr/local/share/wine/Program\ Files) Â Executables aren't written to, so how would they be corrupted?No, this isn't supported. Multiple people using the same wineprefixFrom what I can tell, every Wine user has their own copy of everything in the ~/.wine dir. Â Would it make more sense to install apps in a common location for everyone to use? Â This doesn't seem to be addressed in any FAQ that I have seen.
can cause corruption.
are written to, e.g., ini files and the like.
--
-Austin
-
- Level 1
- Posts: 7
- Joined: Mon Aug 03, 2009 5:18 pm
Re: confused newbie
Ahhh... And since Windows wasn't designed as a timesharing OS with concurrent users in mind, it has single ini files rather than per-user ini files. Is that what I'm hearing? That would make sense.austin987 wrote:On Tue, Aug 4, 2009 at 11:34 AM, ChristTrekker<[email protected]> wrote:Depends on the executable. Most programs come with other files thatI assume "corruption" refers to various config files. Â So use a different wineprefix - just put binaries in a common place, using symlinks if this "binary path" isn't separately configurable. Â (~/.wine/drive_c/Program\ Files -> /usr/local/share/wine/Program\ Files) Â Executables aren't written to, so how would they be corrupted?
are written to, e.g., ini files and the like.
But... If I knew the deployment environment would only ever have one user at a time, would it be possible (and safe) to set up users to share a single wineprefix? I can't help but think there's an alternative to installing the same app multiple times.
confused newbie
On Tue, Aug 4, 2009 at 12:01 PM, ChristTrekker<[email protected]> wrote:
explained before several times.
--
-Austin
Exactly.austin987 wrote:Ahhh... Â And since Windows wasn't designed as a timesharing OS with concurrent users in mind, it has single ini files rather than per-user ini files. Â Is that what I'm hearing? Â That would make sense.On Tue, Aug 4, 2009 at 11:34 AM, ChristTrekker<[email protected]> wrote:
Depends on the executable. Most programs come with other files thatI assume "corruption" refers to various config files. Â So use a different wineprefix - just put binaries in a common place, using symlinks if this "binary path" isn't separately configurable. Â (~/.wine/drive_c/Program\ Files -> /usr/local/share/wine/Program\ Files) Â Executables aren't written to, so how would they be corrupted?
are written to, e.g., ini files and the like.
You'd have to patch the source code. Search the forum, it's beenBut... Â If I knew the deployment environment would only ever have one user at a time, would it be possible (and safe) to set up users to share a single wineprefix? Â I can't help but think there's an alternative to installing the same app multiple times
explained before several times.
--
-Austin
-
- Level 1
- Posts: 7
- Joined: Mon Aug 03, 2009 5:18 pm
Re: confused newbie
Ack, that sounds messy. Maybe it would be easier to run wine via sudo, so all the Windozey stuff stays under one user as intended.austin987 wrote:You'd have to patch the source code. Search the forum, it's been explained before several times.
confused newbie
On Tue, Aug 4, 2009 at 1:59 PM, ChristTrekker<[email protected]> wrote:
Furthermore, sudo is intentionally made hard to use, to prevent people
breaking their installs (to work around it, you need to patch the
source code, or run as root itself, which is definitely a unix no-no).
--
-Austin
No. Using sudo will give windows apps full access to your computer.austin987 wrote:Ack, that sounds messy. Â Maybe it would be easier to run wine via sudo, so all the Windozey stuff stays under one user as intended.You'd have to patch the source code. Search the forum, it's been explained before several times.
Furthermore, sudo is intentionally made hard to use, to prevent people
breaking their installs (to work around it, you need to patch the
source code, or run as root itself, which is definitely a unix no-no).
--
-Austin
-
- Level 1
- Posts: 7
- Joined: Mon Aug 03, 2009 5:18 pm
Re: confused newbie
No...using sudo won't give any more access to the computer than the user running sudo has to begin with. As long as that user isn't root, what's the concern?austin987 wrote:No. Using sudo will give windows apps full access to your computer. Furthermore, sudo is intentionally made hard to use, to prevent people breaking their installs (to work around it, you need to patch the source code, or run as root itself, which is definitely a unix no-no).
confused newbie
On Tue, Aug 4, 2009 at 3:56 PM, ChristTrekker<[email protected]> wrote:
--
-Austin
Do you not know what sudo does?austin987 wrote:No...using sudo won't give any more access to the computer than the user running sudo has to begin with. Â As long as that user isn't root, what's the concern?No. Using sudo will give windows apps full access to your computer. Â Furthermore, sudo is intentionally made hard to use, to prevent people breaking their installs (to work around it, you need to patch the source code, or run as root itself, which is definitely a unix no-no).
--
-Austin
confused newbie
On Tue, 2009-08-04 at 15:56 -0500, ChristTrekker wrote:
limit the users who can run programs with it and restrict the programs a
specific user can run, those programs are still run as root and so they
can do as much damage as if the user had logged in as root or used su to
become root before running them.
Martin
Thats not quite right. While its true that sudo's configuration canNo...using sudo won't give any more access to the computer than the
user running sudo has to begin with. As long as that user isn't root,
what's the concern?
limit the users who can run programs with it and restrict the programs a
specific user can run, those programs are still run as root and so they
can do as much damage as if the user had logged in as root or used su to
become root before running them.
Martin
-
- Level 1
- Posts: 7
- Joined: Mon Aug 03, 2009 5:18 pm
Re: confused newbie
It lets one user execute a command as another user, as long as he is authorized to do so in the sudoers file.austin987 wrote:Do you not know what sudo does?
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".
Re: confused newbie
A regular "sudo" is exactly that - "Super User DO". Using the -u flag rather temporarily logs you in as a different user for the duration of the command.ChristTrekker wrote:It lets one user execute a command as another user, as long as he is authorized to do so in the sudoers file.austin987 wrote:Do you not know what sudo does?
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".
confused newbie
On Tue, Aug 4, 2009 at 4:46 PM, ChristTrekker<[email protected]> wrote:
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
Didn't know you were sudoing to a specific user (not root), sorry.austin987 wrote:It lets one user execute a command as another user, as long as he is authorized to do so in the sudoers file.Do you not know what sudo does?
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".
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
confused newbie
Austin English wrote:
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
Austin:On Tue, Aug 4, 2009 at 4:46 PM, ChristTrekker<[email protected]> wrote:
Didn't know you were sudoing to a specific user (not root), sorry.austin987 wrote:
It lets one user execute a command as another user, as long as he is authorized to do so in the sudoers file.Do you not know what sudo does?
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".
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.
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
-
- Level 1
- Posts: 7
- Joined: Mon Aug 03, 2009 5:18 pm