From: "Ph. Marek" <philipp.marek@bmlv.gv.at>
To: linux-kernel@vger.kernel.org
Subject: "mount --bind" with user/group/mode definition?
Date: Thu, 11 Oct 2007 10:35:37 +0200 [thread overview]
Message-ID: <200710111035.38644.philipp.marek@bmlv.gv.at> (raw)
Hello everybody,
is there some way to duplicate a directory somewhere else (like
with "mount --bind"), but having different owner/group/mode bits?
I'd like to mount a directory I have no control over (think NFS, or
floppy, ...) with clearly defined rights - like root:<some group>, mode 0550
for all directories, and 0440 for all files.
(Here I want to have full *read* control, regardless of the original
permissions).
[ I know that this special case can be (mostly) done by a read-only binding
mount; the part that is missing is eg. files with a different owner being
0700. ]
I know that something like this is possible for eg. VFAT, which has no right
descriptors for itself; but I'd need that for arbitrary directory trees, who
themselves *have* permissions set.
Is there some way to achieve that?
Regards,
Phil
next reply other threads:[~2007-10-11 9:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-11 8:35 Ph. Marek [this message]
2007-10-11 9:46 ` Kyle Moffett
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=200710111035.38644.philipp.marek@bmlv.gv.at \
--to=philipp.marek@bmlv.gv.at \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®