[MS-SMB2]: SMB2 SET_INFO Request (2024)

  • Article

The SMB2 SET_INFO Request packet is sent by a client to setinformation on a file or underlying object store. This request consists of an SMB2 header, as specifiedin section 2.2.1, followed by this request structure.


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

StructureSize

InfoType

FileInfoClass

BufferLength

BufferOffset

Reserved

AdditionalInformation

FileId

...

...

...

Buffer (variable)

...

StructureSize (2 bytes): The client MUST setthis field to 33, indicating the size of the request structure, not includingthe header. The client MUST set this field to this value regardless of how longBuffer[] actually is in the request being sent.

InfoType (1 byte): The type of informationbeing set. The valid values are as follows.

Value

Meaning

SMB2_0_INFO_FILE

0x01

The file information is being set.

SMB2_0_INFO_FILESYSTEM

0x02

The underlying object store information is being set.

SMB2_0_INFO_SECURITY

0x03

The security information is being set.

SMB2_0_INFO_QUOTA

0x04

The underlying object store quota information is being set.

FileInfoClass (1 byte): For setting fileinformation, this field MUST contain one of the followingFILE_INFORMATION_CLASS values, as specified in section 3.3.5.21.1 and [MS-FSCC]section 2.4:

For setting underlying objectstore information, this field MUST contain one of the following FS_INFORMATION_CLASSvalues, as specified in [MS-FSCC] section 2.5:

  • FileFsControlInformation

  • FileFsObjectIdInformation

For setting quota and securityinformation, this field MUST be 0.

BufferLength (4 bytes): The length, in bytes,of the information to be set.

BufferOffset (2 bytes): The offset, in bytes,from the beginning of the SMB2 header to the information to be set.<78>

Reserved (2 bytes): This field MUST NOT beused and MUST be reserved. The client MUST set this field to 0, and the serverMUST ignore it on receipt.

AdditionalInformation (4 bytes): Providesadditional information to the server.

If security information is being set, this valueMUST contain a 4-byte bit field of flags indicating what security attributesMUST be applied. For more information about security descriptors, see [MS-DTYP]section 2.4.6.

Value

Meaning

OWNER_SECURITY_INFORMATION

0x00000001

The client is setting the owner in the security descriptor of the file or named pipe.

GROUP_SECURITY_INFORMATION

0x00000002

The client is setting the group in the security descriptor of the file or named pipe.

DACL_SECURITY_INFORMATION

0x00000004

The client is setting the discretionary access control list in the security descriptor of the file or named pipe.

SACL_SECURITY_INFORMATION

0x00000008

The client is setting the system access control list in the security descriptor of the file or named pipe.

LABEL_SECURITY_INFORMATION

0x00000010

The client is setting the integrity label in the security descriptor of the file or named pipe.

ATTRIBUTE_SECURITY_INFORMATION

0x00000020

The client is setting the resource attribute in the security descriptor of the file or named pipe.

SCOPE_SECURITY_INFORMATION

0x00000040

The client is setting the central access policy of the resource in the security descriptor of the file or named pipe.

BACKUP_SECURITY_INFORMATION

0x00010000

The client is setting the backup operation information in the security descriptor of the file or named pipe.

For all other set requests, thisfield MUST be 0.

FileId (16 bytes): An SMB2_FILEID identifier ofthe file or named pipe on which to perform the set. Set operations forunderlying object store and quota information are directed to the volume onwhich the file resides.

Buffer (variable): A variable-length bufferthat contains the information being set for the request, as described by the BufferOffsetand BufferLength fields. Buffer format depends on InfoType andthe AdditionalInformation, as follows.

InfoType

AdditionalInformation

Buffer format specification

SMB2_0_INFO_FILE

See [MS-FSCC] section 2.4.

SMB2_0_INFO_FILESYSTEM

See [MS-FSCC] section 2.5.

SMB2_0_INFO_SECURITY

Any combination of the values:

OWNER_SECURITY_INFORMATION

GROUP_SECURITY_INFORMATION

LABEL_SECURITY_INFORMATION

DACL_SECURITY_INFORMATION

SACL_SECURITY_INFORMATION

The security descriptor data structure, as specified in [MS-DTYP] section 2.4.6, populated with the data specified by the AdditionalInformation value.

SMB2_0_INFO_QUOTA

See [MS-FSCC] section 2.4.36.

[MS-SMB2]: SMB2 SET_INFO Request (2024)

FAQs

[MS-SMB2]: SMB2 SET_INFO Request? ›

The SMB2 SET_INFO Request packet is sent by a client to set information on a file or underlying object store. This request consists of an SMB2 header, as specified in section 2.2. 1, followed by this request structure.

How to enable SMB2 on Windows 10? ›

To enable SMBv2, you want to confirm your operating system can run it. Most Windows 10 operating systems can. Open the Powershell and type in Get-SmbServerConfiguration | Select EnableSMB2Protocol. You should receive a True in response, meaning you can run SMB2 on your computer.

What is the SMB2 protocol used for? ›

The Server Message Block (SMB) Protocol Versions 2 and 3, hereafter referred to as "SMB 2 Protocol", is an extension of the original Server Message Block (SMB) Protocol (as specified in [MS-SMB] and [MS-CIFS]). Both protocols are used by clients to request file and print services from a server system over the network.

What is SMB2 error response? ›

The SMB2 ERROR Response packet is sent by the server to respond to a request that has failed or encountered an error. This response is composed of an SMB2 Packet Header (section 2.2. 1) followed by this response structure.

How to send a SMB request? ›

First, the client (e.g., a user's computer, mobile device, or printer) sends an SMB request to the server to initiate a connection. The server receives this request and sends an SMB response back to the client.

How to check if SMB is enabled? ›

Under the More Windows features panel, scroll to the SMB Direct selection and ensure it is checked. You may need to restart your Windows system after performing this change for it to take effect. The SMB 1.0 CIFS File Sharing choice, shown immediately above SMB Direct, should not be enabled.

Does Windows support SMB2? ›

The SMBv2 protocol was introduced in Windows Vista and Windows Server 2008, while the SMBv3 protocol was introduced in Windows 8 and Windows Server 2012. For more information about SMBv2 and SMBv3 capabilities, see the following articles: Server Message Block overview. What's New in SMB.

Is SMB2 still used? ›

Windows Vista/Server 2008 and later operating systems use SMB2 when communicating with other machines also capable of using SMB2. SMB1 continues in use for connections with older versions of Windows, as well various vendors' NAS solutions. Samba 3.5 also includes experimental support for SMB2.

What is SMB2 set info? ›

The SMB2 SET_INFO Request packet is sent by a client to set information on a file or underlying object store. This request consists of an SMB2 header, as specified in section 2.2. 1, followed by this request structure.

Should SMB2 be disabled? ›

SMB2 is still fine and if disabled may cause some scanners to stop scan to folder and other options (and other devices might stop working as well as most have only just stopped using SMB1). Disable SMB1 first and check the effects. Some equipment such as printers may only work with SMB1 and are not upgradeable.

What is the default port for SMB2? ›

SMB uses either IP port 139 or 445. Port 139: SMB originally ran on top of NetBIOS using port 139. NetBIOS is an older transport layer that allows Windows computers to talk to each other on the same network. Port 445: Later versions of SMB (after Windows 2000) began to use port 445 on top of a TCP stack.

Does SMB2 require signing? ›

SMB 2.02 and later signing is controlled solely by being required or not. This setting is used when either the server or client requires SMB signing. Only if both have signing set to 0 will signing not occur.

What is the SMB2 protocol? ›

Server Message Block version 2 and 3. SMB2 is a new version of the old Windows filesharing protocol SMB and is used for filesharing on modern and future Windows hosts. Windows 8 introduced several new features, so Microsoft has decided to bump the revision number up to SMB v3.

How do I access my SMB connection? ›

How to connect via SMB on a Windows machine:
  1. Make sure that your Windows computer has one or several shared folders.
  2. Open Documents on your iPad or iPhone and tap the Plus button > Add Connection .
  3. Select Windows SMB server.
  4. Put your Windows machine's IP address or local hostname into the URL field.

How do I setup a SMB network? ›

Turn on SMB file sharing

Click Options, then turn on “Share files and folders using SMB.” If you're sharing files with Windows computers, select the On checkbox for each user that needs to share files with a Windows computer, then enter the password for that user's account. Click Done.

How do I enable old SMB in Windows 10? ›

[Network Place (Samba) Share] How to access the files on Network Devices using SMBv1 in Windows 10 ?
  1. Open Control Panel in your PC/Notebook.
  2. Click on Programs.
  3. Click on Turn Windows features on or off link.
  4. Expand the SMB 1.0/CIFS File Sharing Support option.
  5. Check the SMB 1.0/CIFS Client option.
  6. Click the OK button.
Sep 28, 2023

How to setup SMB share on Windows 10? ›

4. Windows 10
  1. Right click on the created folder and select Properties.
  2. Click on the Sharing tab.
  3. Click the Share button.
  4. Type "Everyone" in the text box and click Add. ...
  5. The folder is now shared. ...
  6. Click on Advanced Sharing to check the advanced share properties.
Dec 8, 2023

How do I enable SMB in Windows 10 Group Policy? ›

To enable SMB signing in Group Policy, perform the following steps: Select Start, type gpedit. msc, then hit Enter . In the Local Group Policy Editor, navigate to Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options.

Top Articles
Advantages and Disadvantages of a Virtual Workforce
Walmart Rolls Out Major Changes For In-Person Customers
Sdn Md 2023-2024
Citibank Branch Locations In Orlando Florida
Kansas Craigslist Free Stuff
Alpha Kenny Buddy - Songs, Events and Music Stats | Viberate.com
Fnv Turbo
Fototour verlassener Fliegerhorst Schönwald [Lost Place Brandenburg]
Big Y Digital Coupon App
Find your energy supplier
Sports Clips Plant City
Breakroom Bw
Jack Daniels Pop Tarts
Lenscrafters Huebner Oaks
Craigslist Farm And Garden Cincinnati Ohio
Missouri Highway Patrol Crash
Eine Band wie ein Baum
Scout Shop Massapequa
Cbssports Rankings
Never Give Up Quotes to Keep You Going
Stoney's Pizza & Gaming Parlor Danville Menu
Greenville Sc Greyhound
Thick Ebony Trans
Wkow Weather Radar
Dark Entreaty Ffxiv
Craigslist Pennsylvania Poconos
Skycurve Replacement Mat
Violent Night Showtimes Near Amc Dine-In Menlo Park 12
Harrison County Wv Arrests This Week
Keshi with Mac Ayres and Starfall (Rescheduled from 11/1/2024) (POSTPONED) Tickets Thu, Nov 1, 2029 8:00 pm at Pechanga Arena - San Diego in San Diego, CA
Dl.high Stakes Sweeps Download
Uky Linkblue Login
Panchang 2022 Usa
Mg Char Grill
Greencastle Railcam
Iban's staff
Laurin Funeral Home | Buried In Work
Dr. John Mathews Jr., MD – Fairfax, VA | Internal Medicine on Doximity
Wal-Mart 2516 Directory
Main Street Station Coshocton Menu
Spn-523318
Adam Bartley Net Worth
Wasmo Link Telegram
Newsweek Wordle
Clausen's Car Wash
Grizzly Expiration Date Chart 2023
Craigslist Binghamton Cars And Trucks By Owner
Trending mods at Kenshi Nexus
R/Gnv
Movie Hax
Madden 23 Can't Hire Offensive Coordinator
What your eye doctor knows about your health
Latest Posts
Article information

Author: Aron Pacocha

Last Updated:

Views: 5905

Rating: 4.8 / 5 (48 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Aron Pacocha

Birthday: 1999-08-12

Address: 3808 Moen Corner, Gorczanyport, FL 67364-2074

Phone: +393457723392

Job: Retail Consultant

Hobby: Jewelry making, Cooking, Gaming, Reading, Juggling, Cabaret, Origami

Introduction: My name is Aron Pacocha, I am a happy, tasty, innocent, proud, talented, courageous, magnificent person who loves writing and wants to share my knowledge and understanding with you.