From: "Mgr. Peter Tuharsky" <tuharsky@misbb.sk>
To: Bart Oldeman <bartoldeman@users.sourceforge.net>,
linux-msdos@vger.kernel.org
Subject: Re: Problem: DOSEMU ignores Linux user file access settings -solved
Date: Wed, 21 Jan 2004 13:18:13 +0100 [thread overview]
Message-ID: <400E6E05.60304@misbb.sk> (raw)
In-Reply-To: <Pine.LNX.4.44.0401191326570.22529-100000@enm-bo-lt.enm.bris.ac.uk>
Thank You very much.
I tested the way You suggested and I figured out that fault was mine.
Maybe it was matter of too much stress :o)
The bash.profile umask was set ok, but when I ran DOSEMU directly from X
and not from terminal, the bash.profile was of course not interpreted.
Solution was quite simple -add umask command to dosemu start script.
Your help was valuable cause I was able to find and solve problem thanks
to Your advice.
Thanks to You all that answered my question. Also thanks to DOSEMU team
for their great work!
Sincerely Peter
Bart Oldeman wrote:
>On Mon, 19 Jan 2004, Mgr. Peter Tuharsky wrote:
>
>
>
>> DOSEMU uses one strict policy when creating new file from inside
>>emulated environment: It creates new file with 600 attrib mask and
>>user-only gid/uid. DOSEMU fully IGNORES both bash.profile setting, and
>>folder's SetUid/SetGid setting!! And this is the reason of my big problem.
>>
>>
>
>no, DOSEMU doesn't ignore them. Be careful here. What is your umask
>setting from bash.profile? Try a simple
>umask
>to be sure about that (in Linux)
>
>If it's 007 then new DOSEMU files (with archive bit set) are
>normally created as
>-rw-rw----
>
>Also DOSEMU doesn't do chown on files so I can't see how it could ignore
>setgid attributes on directories -- the files will have the same
>owner/group as a simple file created with
>echo hello > file
>would do. Try this command in Linux *and* in DOSEMU in the same
>directory and look at the permissions.
>
>
>
>>directory dosen't help either, because DOSEMU takes .dosemurc strictly
>>from user's home directory and this way the printing is directed to only
>>one printer.
>>
>>
>
>Try -f. Also the environment variable dosemu__printer can do the trick as
>long as you do *not* define it in .dosemurc.
>
>Bart
>
>
>
prev parent reply other threads:[~2004-01-21 12:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-19 12:16 Problem: DOSEMU ignores Linux user file access settings Mgr. Peter Tuharsky
2004-01-19 12:33 ` Bartos-Elekes Zsolt
2004-01-19 13:35 ` Bart Oldeman
2004-01-21 12:18 ` Mgr. Peter Tuharsky [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=400E6E05.60304@misbb.sk \
--to=tuharsky@misbb.sk \
--cc=bartoldeman@users.sourceforge.net \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox