From: Ciaran McCreesh <ciaranm@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] how to access mounted dir with non-root?
Date: Fri, 12 Aug 2005 20:54:37 +0100 [thread overview]
Message-ID: <20050812205437.3c6eedad@snowdrop.home> (raw)
In-Reply-To: <42FCFC68.9050703@planet.nl>
[-- Attachment #1: Type: text/plain, Size: 1224 bytes --]
On Fri, 12 Aug 2005 21:45:44 +0200 Holly Bostick <motub@planet.nl>
wrote:
| If umask masks bits off of the 'default' permissions, then what is the
| point of umask=000? It seems that it would leave the permissions as
| the default, which appear to be 755 (is there a creation mask of 022
| somewhere in the 'default' settings? I can't find it, if so), unless
| you've explicitly set them to soemthing else.
umask 'masks' the bits. So umask=000 means "use whatever the
application uses when creating things without knocking off any bits".
Most system calls that create files or directories also take a
parameter for mode, which is where the 755 comes from. For example, for
mkdir(2):
> int mkdir(const char *pathname, mode_t mode);
> (...)
> The parameter mode specifies the permissions to use. It is
> modified by the process's umask in the usual way: the permissions of
> the created directory are (mode & ~umask & 0777). Other mode bits
> of the created directory depend on the operating system. For Linux,
> see below.
--
Ciaran McCreesh : Gentoo Developer (Vim, Shell tools, Fluxbox, Cron)
Mail : ciaranm at gentoo.org
Web : http://dev.gentoo.org/~ciaranm
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-08-12 20:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-12 15:33 [gentoo-user] how to access mounted dir with non-root? danielhf
2005-08-12 16:07 ` Uwe Thiem
2005-08-12 19:18 ` Neil Bothwick
2005-08-12 19:45 ` Holly Bostick
2005-08-12 19:54 ` Ciaran McCreesh [this message]
2005-08-12 20:36 ` Neil Bothwick
2005-08-12 17:47 ` Stefan Kögl
2005-08-13 14:22 ` danielhf
2005-08-15 6:15 ` Dirk Heinrichs
-- strict thread matches above, loose matches on Subject: below --
2005-08-13 22:59 Michael Swanson
2005-08-13 20:54 ` Neil Bothwick
2005-08-14 3:10 ` danielhf
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=20050812205437.3c6eedad@snowdrop.home \
--to=ciaranm@gentoo.org \
--cc=gentoo-user@lists.gentoo.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