summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-05-07getcifsacl: Add support for -R(recursive) option.Kenneth D'souza2-5/+30
Add support for -R option so we can list the ACLs of all files and directories recursively. Signed-off-by: Kenneth D'souza <kdsouza@redhat.com>
2019-05-07smbinfo: add GETCOMPRESSION supportRonnie Sahlberg2-0/+50
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
2019-04-18getcifsacl: Fix usage message to include multiple filesPavel Shilovsky1-2/+2
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2019-04-18smbinfo: Add bash completion support for smbinfo.Kenneth D'souza1-0/+42
This help us better populate options using <tab> <tab>. Signed-off-by: Kenneth D'souza <kdsouza@redhat.com> Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2019-04-18getcifsacl: Add support to accept more pathsKenneth D'souza1-36/+44
Accept more than one path on the getcifsacl command line. Signed-off-by: Kenneth D'souza <kdsouza@redhat.com>
2019-04-17smbinfo: Improve help usage and add -h option.Kenneth D'souza2-6/+26
Call usage only for -h case. This avoids cluttering the screen with long help output. As we are adding more options to the utility, the end error is just hidden. Call short_usage wherever necessary. Signed-off-by: Kenneth D'souza <kdsouza@redhat.com>
2019-04-09secdesc-ui.py: a UI to view the security descriptors on SMB2+ sharesRonnie Sahlberg1-0/+436
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
2019-04-08Update authors listPavel Shilovsky1-0/+1
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2019-04-05cifs-utils: bump version to 6.9cifs-utils-6.9Pavel Shilovsky1-1/+1
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2019-04-05smbinfo: use constant for input buffer lengthPavel Shilovsky1-3/+3
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2019-04-05Fix authors and maintainersPavel Shilovsky3-5/+6
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2019-04-05mount.cifs.rst: mention kernel version for snapshotsPavel Shilovsky1-1/+2
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Reviewed-by: Paulo Alcantara <palcantara@suse.de>
2019-04-05Update man page for mount.cifs to add new optionsSteve French1-38/+60
Add description of "snapshot" and "handletimeout" mount options and a security section noting that the use of cifs is discouraged, and various minor updates. Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Reviewed-by: Paulo Alcantara <palcantara@suse.de>
2019-04-05mount.cifs: detect GMT format of snapshot versionPavel Shilovsky1-7/+47
In order to provide an easy way to access snapshots a GMT token string should be allowed as a "snapshot" mount option argument, not SMB 100-nanoseconds time only. Detect if the argument is in GMT format and convert it to SMB 100-nanoseconds time before passing to the kernel. Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Reviewed-by: Paulo Alcantara <palcantara@suse.de>
2019-04-05mount.cifs: add more options to help messagePavel Shilovsky1-5/+7
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Reviewed-by: Paulo Alcantara <palcantara@suse.de>
2019-04-05mount.cifs Add various missing parms from the help textSteve French1-3/+11
When you type mount.cifs --help there were more than 40 mount parms missing. Add 12 of the more common ones to what is displayed by help. Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Paulo Alcantara <palcantara@suse.de>
2019-04-05smbinfo: make argument order consistentPavel Shilovsky1-12/+12
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Reviewed-by: Paulo Alcantara <palcantara@suse.de>
2019-04-05smbinfo: Add ability to query snapshots (previous versions)Steve French2-1/+109
"smbinfo list-snapshots" Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Reviewed-by: Paulo Alcantara <palcantara@suse.de>
2019-04-02smbinfo: missing help for fsctl-getobjidSteve French1-1/+3
Add usage description for new option fsctl-getobjid See section 2.1.3.1 of MS-FSCC Signed-off-by: Steve French <stfrench@microsoft.com>
2019-03-16cifs.upcall: fix a compiler warningPavel Shilovsky1-0/+1
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2019-03-16smbinfo: add fsctl-getobjid supportRonnie Sahlberg2-0/+75
This will print the ObjectID buffer for the object. This is an example on how to fetch FSCTL data for an object using the passthrough API. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
2019-03-08smbinfo: fix code stylePavel Shilovsky1-592/+583
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2019-03-08setcifsacl: fix adding ACE when owner sid in unexpected locationSteve French1-5/+24
If owner information is after the ACEs instead of before (e.g. Azure servers) in the ACL query then we would get "invalid argument" returned on setcifsacl -a (adding an ACE). This fixes that. Signed-off-by: Steve French <stfrench@microsoft.com>
2019-03-08smbinfo: decode the ACEsRonnie Sahlberg2-34/+168
Decode the most common ACE types and provide a [-V]erbose option to show the individual mask bits by name. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
2019-03-08getcifsacl: Improve help usage and add -h option.Kenneth D'souza1-9/+18
Call getcifsacl_usage only for -h and default case. For others error out with appropriate message. Signed-off-by: Kenneth D'souza <kdsouza@redhat.com>
2019-03-08getcifsacl: Do not go to parse_sec_desc if getxattr fails.Kenneth D'souza1-2/+6
Add more to the error message by printing the filename and error. Signed-off-by: Kenneth D'souza <kdsouza@redhat.com> Reviewed-by: Steve French <stfrench@microsoft.com>
2019-02-15mount.cifs.rst: update vers=3.1.1 option descriptionPavel Shilovsky1-1/+1
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2019-02-15Update mount.cifs with vers=default mount option and SMBv3.0.2Kenneth D'souza1-1/+5
Add vers=3.0.2 as a valid option for SMBv3.0.2 and explain behavior of vers=default. Signed-off-by: Kenneth D'souza <kdsouza@redhat.com>
2019-02-15Added rst2man.py to the search list.Hank Leininger1-1/+1
Gentoo Linux and (historically?) OSX install with the .py suffix. Signed-off-by: Hank Leininger <hlein@korelogic.com>
2019-02-14mount.cifs: be more verbose and helpful regarding mount errorsAurelien Aptel1-1/+11
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
2019-02-14cifs: Allow DNS resolver key to expirePaulo Alcantara2-23/+64
This patch introduces a new '--expire' option that allows the user to set a timeout value for the dns resolver key -- which is typically useful for hostnames that may get their ip addresses changed under long running mounts. The default timeout value is set to 10 minutes. Signed-off-by: Paulo Alcantara <palcantara@suse.de>
2019-02-14smbinfo: add FileFsFullSizeInformationRonnie Sahlberg2-0/+51
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
2019-02-14smbinfo: Update the usage text with the new infolevelsRonnie Sahlberg1-1/+17
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
2019-02-14smbinfo: update help textSteve French1-0/+2
Add description for fileallinfo query option. Note that there are eight other recently added query options, but they are mostly a subset a "fileallinfo" so could be of little value (and may even be very confusing if we documented all nine in the help text in smbinfo, instead of just this one). The man page has a full description of them. Signed-off-by: Steve French <stfrench@microsoft.com>
2019-02-14smbinfo: Add more File*Information classesRonnie Sahlberg2-20/+497
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
2019-02-14smbinfo.rst: document kernel versionAurelien Aptel1-1/+1
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
2018-11-05smbinfo: add a utility to display smb specific information about objectsRonnie Sahlberg4-0/+398
For example smbinfo secdesc <file> will print the security descriptor smbinfo quota <file> will print the quotas for the volume Signed-off-by: Aurelien Aptel <aaptel@suse.com> Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
2018-08-17mount.cifs.rst: document vers=3.02 mount optionPavel Shilovsky1-0/+1
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2018-08-17mount.cifs.rst: document vers=3 mount optionPavel Shilovsky1-0/+1
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2018-08-17mount.cifs.rst: more cleanupsAurelien Aptel1-32/+29
* remove duplicates (netbiosname, rdma) * remove snapshot * document nostrictsync, domain, domainauto better * point to vers= when talking about version requirements * typos Signed-off-by: Aurelien Aptel <aaptel@suse.com>
2018-08-17checkopts: report duplicated options in man pageAurelien Aptel1-3/+16
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
2018-08-17cifs-utils: support rst2man-3Alexander Bokovoy2-4/+4
Python3 version of rst2man is called rst2man-3 Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Aurelien Aptel <aaptel@suse.com>
2018-07-15mount.cifs.rst: document missing options, correct wrong onesAurélien Aptel1-32/+79
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
2018-07-15checkopts: add python script to cross check mount optionsAurélien Aptel1-0/+240
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
2018-07-15manpage: update mount.cifs manpage with info about rdma optionKenneth Dsouza1-0/+5
Signed-off-by: Kenneth Dsouza <kdsouza@redhat.com>
2018-07-10mount.cifs.rst: document new (no)handlecache mount optionAurelien Aptel1-0/+10
Signed-off-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Steve French <smfrench@gmail.com> Reviewed-by: Pavel Shilovsky <piastryyy@gmail.com>
2018-07-10docs: cleanup rst formatingAurelien Aptel8-434/+201
Signed-off-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Steve French <smfrench@gmail.com> Reviewed-by: Pavel Shilovsky <piastryyy@gmail.com>
2018-03-09cifs-utils: bump version to 6.8cifs-utils-6.8Pavel Shilovsky1-1/+1
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2018-03-09update mount.cifs manpage with info about echo_interval option.Kenneth Dsouza1-0/+9
Adds information regarding reconnection time. Acked-by: Sachin Prabhu <sprabhu@redhat.com> Signed-off-by: Kenneth D'souza <kdsouza@redhat.com>
2018-03-09cifscreds: check optind before accessing argv[optind]Ronnie Sahlberg1-0/+3
Redhat bugzilla: 1278543 This fixes a segfault for some incorrect usage, for example cifscreds -u test Reviewed-by: Steve French <smfrench@gmail.com> Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>