Skip to content

Instantly share code, notes, and snippets.

@AllanGH
AllanGH / mount-windows-share-on-unix-with-kerberos.md
Created March 27, 2025 11:00
How to mount a Windows share with Kerberos on Linux

How to mount a Windows share with Kerberos authentication on Linux

This approach relies on the Unix server being joined to the Active Directory domain. The share is mounted using Kerberos authentication, which is more secure than using a username and password.

Share the Windows folder

  1. On the Windows machine, right-click on the folder you want to share and select "Properties".
  2. Go to the "Sharing" tab and click on "Advanced Sharing".
  3. Check the box that says "Share this folder".
  4. Click on "Permissions" and add the server where you want to mount the share.
  5. The Object Types should include "Computers", and then search for the server name. Set the permissions as needed.
  6. Click "OK" to close the permissions window, and then click "OK" again.
@AllanGH
AllanGH / get_request.py
Last active April 12, 2024 10:16
Make an AWS SIGV4 signed request to AWS
import hmac
import hashlib
from datetime import datetime
import httpx
# Define the AWS request details, url is defined as the API Gateway endpoint where host is the actual host of the API
method = "GET"
url = "<vpce-dns-name>"
host = "<api-id>.execute-api.eu-west-1.amazonaws.com"
path = "/sandbox/test"