All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cifs-utils: clarify use of backupuid and backupgid
@ 2015-11-19 19:48 Uri Simchoni
       [not found] ` <1447962495-14738-1-git-send-email-uri-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Uri Simchoni @ 2015-11-19 19:48 UTC (permalink / raw)
  To: linux-cifs-u79uwXL29TY76Z2rM5mHXA
  Cc: samba-technical-w/Ol4Ecudpl8XjKLYN78aQ, Uri Simchoni

Hi,
Attached pls find a patch which, I hope, clarifies the use of  backupuid
and backupgid mount options. On reading the current manpage, it seemed to
me like backup intent is always attempted and only specifying those options
would restrict the use of backup intent, where as the behavior, I believe,
is quite the reverse - only if those parameters are specified, users matching
those parameters (and only those users) will open files with backup intent.

Uri Simchoni (1):
  manpage: clarify use of backupuid and backupgid in mount.cifs.8

 mount.cifs.8 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
2.4.3

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] manpage: clarify use of backupuid and backupgid in mount.cifs.8
       [not found] ` <1447962495-14738-1-git-send-email-uri-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
@ 2015-11-19 19:48   ` Uri Simchoni
  2016-01-07 12:57     ` Jeff Layton
  0 siblings, 1 reply; 3+ messages in thread
From: Uri Simchoni @ 2015-11-19 19:48 UTC (permalink / raw)
  To: linux-cifs-u79uwXL29TY76Z2rM5mHXA
  Cc: samba-technical-w/Ol4Ecudpl8XjKLYN78aQ, Uri Simchoni

Assert that backup intent shall only be attempted if the user matches
the backupuid or backupgid parameter.

Signed-off-by: Uri Simchoni <uri-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
---
 mount.cifs.8 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mount.cifs.8 b/mount.cifs.8
index 2643145..af6b097 100644
--- a/mount.cifs.8
+++ b/mount.cifs.8
@@ -310,14 +310,14 @@ for more information\&.
 .PP
 backupuid=\fIarg\fR
 .RS 4
-Restrict access to files with the backup intent to a user. Either a name or an id must be provided as an argument, there are no default values.
+File access by this user shall be done with the backup intent flag set. Either a name or an id must be provided as an argument, there are no default values.
 .sp
 See section \fIACCESSING FILES WITH BACKUP INTENT\fR for more details
 .RE
 .PP
 backupgid=\fIarg\fR
 .RS 4
-Restrict access to files with the backup intent to a group. Either a name or an id must be provided as an argument, there are no default values.
+File access by users who are members of this group shall be done with the backup intent flag set. Either a name or an id must be provided as an argument, there are no default values.
 .sp
 See section \fIACCESSING FILES WITH BACKUP INTENT\fR for more details
 .RE
@@ -767,7 +767,7 @@ But the user testuser, if it becomes part of the group Backup Operators, can ope
 Any user on the client side who can authenticate as such a user on the server,
 can access the files with the backup intent. But it is desirable and preferable for security reasons amongst many, to restrict this special right.
 
-The mount option backupuid is used to restrict this special right to a user which is specified by either a name or an id. The mount option backupgid is used to restrict this special right to the users in a group which is specified by either a name or an id. These two mount options can be used together.
+The mount option backupuid is used to restrict this special right to a user which is specified by either a name or an id. The mount option backupgid is used to restrict this special right to the users in a group which is specified by either a name or an id. Only users maching either backupuid or backupgid shall attempt to access files with backup intent. These two mount options can be used together.
 .SH "FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS"
 .PP
 The core CIFS protocol does not provide unix ownership information or mode for files and directories\&. Because of this, files and directories will generally appear to be owned by whatever values the uid= or gid= options are set, and will have permissions set to the default file_mode and dir_mode for the mount\&. Attempting to change these values via chmod/chown will return success but have no effect\&.
-- 
2.4.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] manpage: clarify use of backupuid and backupgid in mount.cifs.8
  2015-11-19 19:48   ` [PATCH] manpage: clarify use of backupuid and backupgid in mount.cifs.8 Uri Simchoni
@ 2016-01-07 12:57     ` Jeff Layton
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Layton @ 2016-01-07 12:57 UTC (permalink / raw)
  To: Uri Simchoni; +Cc: linux-cifs, samba-technical, Uri Simchoni

On Thu, 19 Nov 2015 21:48:15 +0200
Uri Simchoni <urisimchoni@gmail.com> wrote:

> Assert that backup intent shall only be attempted if the user matches
> the backupuid or backupgid parameter.
> 
> Signed-off-by: Uri Simchoni <uri@samba.org>
> ---
>  mount.cifs.8 | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/mount.cifs.8 b/mount.cifs.8
> index 2643145..af6b097 100644
> --- a/mount.cifs.8
> +++ b/mount.cifs.8
> @@ -310,14 +310,14 @@ for more information\&.
>  .PP
>  backupuid=\fIarg\fR
>  .RS 4
> -Restrict access to files with the backup intent to a user. Either a name or an id must be provided as an argument, there are no default values.
> +File access by this user shall be done with the backup intent flag set. Either a name or an id must be provided as an argument, there are no default values.
>  .sp
>  See section \fIACCESSING FILES WITH BACKUP INTENT\fR for more details
>  .RE
>  .PP
>  backupgid=\fIarg\fR
>  .RS 4
> -Restrict access to files with the backup intent to a group. Either a name or an id must be provided as an argument, there are no default values.
> +File access by users who are members of this group shall be done with the backup intent flag set. Either a name or an id must be provided as an argument, there are no default values.
>  .sp
>  See section \fIACCESSING FILES WITH BACKUP INTENT\fR for more details
>  .RE
> @@ -767,7 +767,7 @@ But the user testuser, if it becomes part of the group Backup Operators, can ope
>  Any user on the client side who can authenticate as such a user on the server,
>  can access the files with the backup intent. But it is desirable and preferable for security reasons amongst many, to restrict this special right.
>  
> -The mount option backupuid is used to restrict this special right to a user which is specified by either a name or an id. The mount option backupgid is used to restrict this special right to the users in a group which is specified by either a name or an id. These two mount options can be used together.
> +The mount option backupuid is used to restrict this special right to a user which is specified by either a name or an id. The mount option backupgid is used to restrict this special right to the users in a group which is specified by either a name or an id. Only users maching either backupuid or backupgid shall attempt to access files with backup intent. These two mount options can be used together.
>  .SH "FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS"
>  .PP
>  The core CIFS protocol does not provide unix ownership information or mode for files and directories\&. Because of this, files and directories will generally appear to be owned by whatever values the uid= or gid= options are set, and will have permissions set to the default file_mode and dir_mode for the mount\&. Attempting to change these values via chmod/chown will return success but have no effect\&.

Merged...

Apologies for not spotting this sooner. In the future if you send the
patches to me directly, I'm more likely to see them.

Thanks,
-- 
Jeff Layton <jlayton@samba.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-07 12:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-19 19:48 [PATCH] cifs-utils: clarify use of backupuid and backupgid Uri Simchoni
     [not found] ` <1447962495-14738-1-git-send-email-uri-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2015-11-19 19:48   ` [PATCH] manpage: clarify use of backupuid and backupgid in mount.cifs.8 Uri Simchoni
2016-01-07 12:57     ` Jeff Layton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.