newbie question: why do I see root directory in wine, when n

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Csillag Kristof

newbie question: why do I see root directory in wine, when n

Post by Csillag Kristof »

Hi,

This might be a stupid question; I checked the FAQ, but could not find a
solution.

In Wine Config, I have only two drives configured:

C: is ~/.wine/drive_c
D: is ~

Still, when I run winefile (or any other wine app), besides drives "C"
and "D", there is a "/" drive, which is the root directory of my real
file system.

Why is it still there, even if I don't have any such mapping?
(And how can I disable it?)

Thank you for your help:

Kristof
Frédéric Delanoy

newbie question: why do I see root directory in wine, when n

Post by Frédéric Delanoy »

2011/12/14 Csillag Kristof <[email protected]>:
Hi,

This might be a stupid question; I checked the FAQ, but could not find a
solution.

In Wine Config, I have only two drives configured:

C: is ~/.wine/drive_c
D: is ~
No "Z:" under Drives tab in winecfg?
Csillag Kristof

newbie question: why do I see root directory in wine, when n

Post by Csillag Kristof »

At 2011-12-14 13:58, Frédéric Delanoy wrote:
2011/12/14 Csillag Kristof<[email protected]>:
Hi,

This might be a stupid question; I checked the FAQ, but could not find a
solution.

In Wine Config, I have only two drives configured:

C: is ~/.wine/drive_c
D: is ~
No "Z:" under Drives tab in winecfg?
Precisely.

I intentionally deleted it, so that wine processes can not access the
stuff of other users.

Kristof
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: newbie question: why do I see root directory in wine, wh

Post by dimesio »

Csillag Kristof wrote:
No "Z:" under Drives tab in winecfg?
Precisely.

I intentionally deleted it, so that wine processes can not access the
stuff of other users.
If you've removed the Z: drive then Wine won't be able to open, save, or execute files in those directories, but there's no way to stop it from seeing whatever directories your user can access.
Csillag Kristof

newbie question: why do I see root directory in wine, when n

Post by Csillag Kristof »

Csillag Kristof wrote:
No "Z:" under Drives tab in winecfg?
Precisely.

I intentionally deleted it, so that wine processes can not access the
stuff of other users.
If you've removed the Z: drive then Wine won't be able to open, save, or execute files in those directories, but there's no way to stop it from seeing whatever directories your user can access.
I see. (Well, kind o f.)
Now I tested it, and indeed, I can not open those files ...
... but then what is the point of exposing these files in the winefile
tool?

Kristof
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: newbie question: why do I see root directory in wine, wh

Post by dimesio »

Csillag Kristof wrote: ... but then what is the point of exposing these files in the winefile
tool?
I think it's more a matter of not hiding them. As to whether there are reasons they can't be hidden or it's simply a matter of no one thinking it's important enough to submit a patch for it, that I don't know.

Wine is not a sandbox; it can do anything the user can do. If your goal is simply to prevent Wine from messing with other users' files, set the file permissions appropriately.
Frédéric Delanoy

newbie question: why do I see root directory in wine, when n

Post by Frédéric Delanoy »

2011/12/14 Csillag Kristof <[email protected]>:
At 2011-12-14 13:58, Frédéric Delanoy wrote:
2011/12/14 Csillag Kristof<[email protected]>:
Hi,

This might be a stupid question; I checked the FAQ, but could not find a
solution.

In Wine Config, I have only two drives configured:

C: is ~/.wine/drive_c
D: is ~
No "Z:" under Drives tab in winecfg?
Precisely.

I intentionally deleted it, so that wine processes can not access the stuff
of other users.
Maybe you should look in ~/.wine/dosdevices (or whatever wineprefix
you use) to check if there's still a Z: in there.
Csillag Kristof

newbie question: why do I see root directory in wine, when n

Post by Csillag Kristof »

2011-12-14 16:53 keltezéssel, Frédéric Delanoy írta:
2011/12/14 Csillag Kristof<[email protected]>:
At 2011-12-14 13:58, Frédéric Delanoy wrote:
2011/12/14 Csillag Kristof<[email protected]>: No "Z:" under Drives tab in winecfg?
Precisely.

I intentionally deleted it, so that wine processes can not access the stuff
of other users.
Maybe you should look in ~/.wine/dosdevices (or whatever wineprefix
you use) to check if there's still a Z: in there.
No, only C and D.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: newbie question: why do I see root directory in wine, wh

Post by vitamin »

dimesio wrote:I think it's more a matter of not hiding them. As to whether there are reasons they can't be hidden or it's simply a matter of no one thinking it's important enough to submit a patch for it, that I don't know.
It was decided that *NIX root shell view should show all directories and files accessible to user. This makes it simpler and closer to other native programs.
Locked