mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Steve French" <smfrench@gmail.com>
To: "Anton Altaparmakov" <aia21@cam.ac.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: UID/GID override on CIFS mounts to Samba and proposed new mount parameter to disable Unix Extensions on the client
Date: Mon, 30 Apr 2007 14:11:35 -0500	[thread overview]
Message-ID: <524f69650704301211g5e816210s5bb03f4b3231c4b@mail.gmail.com> (raw)
In-Reply-To: <FF9E865E-BD98-477F-A48D-1E501F516FB2@cam.ac.uk>

The CIFS Unix Extensions are used by multiple clients now (not just
Linux) but originally I thought that it might be confusing to Linux
users  to call the configuration setting for that in /proc/fs/cifs
"Unix" instead of "Linux" (and since it has been there for years and
is externally visible, it is probably not a good idea to change its
name in proc) but for a mount option it might make sense to refer to
them as "unixextensions=no" (similar to Samba server's smb.conf
setting name).  I also though about calling it:

"noposix" or "noposixpaths" ("posix paths" are one of the capabilities
negotiated when Unix Extension are turned on) but that might imply
that the client is turning off compensations that is can use for
mounting to Windows (like JRA's byte range lock emulation, and the
optional SFU-like emulation of device files and symlinks)

On 4/30/07, Anton Altaparmakov <aia21@cam.ac.uk> wrote:
> On 30 Apr 2007, at 15:26, Steve French wrote:
> > When CIFS Unix Extensions are negotiated we get the Unix uid and gid
> > owners of the file from the server (on the Unix Query Path Info
> > levels), but if the server's uids don't match the client uid's users
> > were having to disable the Unix Extensions (which turned off features
> > they still wanted).   The attached patch allows users to override uid
> > and/or gid for file/directory owner with a default uid and/or gid
> > specified at mount (as is often done when mounting from Linux cifs
> > client to Windows server).  The attached patch also displays the uid
> > and gid used by default in /proc/mounts (if applicable).
> >
> > I also would like suggestions on what we should call a proposed mount
> > option (not coded yet) which would disable the CIFS Unix Extensions on
> > a per-mount basis (or more likely actually would require it on the
> > first mount to the server, subsequent mounts would probably inherit
> > the capabilities).  Current cifs code can disable mount options before
> > a mount by specifying
> >
> >     "echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled")
> >
> > but it might be easier to specify it on mount (e.g.
> > "nolinuxextensions" or "linuxextensions=no" ?).    Slightly harder
> > would be disabling Unix Extensions after the user has already mounted
> > (with Unix Extensions) to the same server (perhaps to a different
> > share).  How important would it be to have two mounts to the same
> > server one with unix extensions and one without?
>
> Why "linuxextensions"?  I thought those are the "UNIX extensions"
> that Samba provides no matter on which platform it is run such as
> Linux, Mac OS X, Solaris, etc...
>
> Best regards,
>
>         Anton


-- 
Thanks,

Steve

  reply	other threads:[~2007-04-30 19:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-30 14:26 Steve French
2007-04-30 14:59 ` Anton Altaparmakov
2007-04-30 19:11   ` Steve French [this message]
2007-04-30 15:30 ` Randy Dunlap
2007-04-30 20:27   ` Steve French

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=524f69650704301211g5e816210s5bb03f4b3231c4b@mail.gmail.com \
    --to=smfrench@gmail.com \
    --cc=aia21@cam.ac.uk \
    --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®