Last active
September 11, 2025 14:48
-
-
Save alimbada/954dc9de4f90f3c8b27a43e23c86b786 to your computer and use it in GitHub Desktop.
Revisions
-
alimbada revised this gist
Sep 11, 2025 . 1 changed file with 1 addition and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,8 @@ #### Mount SMB share as non-root user with write permissions ```sh sudo mount -t cifs -o "uid=$local_user,username=$smb_user,addr=$host" //$host/$share $mount_path ``` For errors: -
alimbada revised this gist
Feb 11, 2025 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,10 @@ sudo mount -t cifs -o "uid=$local_user,username=$smb_user,addr=$host,vers=1.0" / >`vers=1.0` only applies because I have a very old NAS running SMB 1.0. <br> > Yes, it's insecure. No, it can't be updated. Yes, it's in the process of being retired. For errors: * `mount: $mount_path: cannot mount //$host/$share read-only` * `mount: $mount_path: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.` Install `cifs-utils`: -
alimbada revised this gist
Jan 30, 2025 . 2 changed files with 16 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ #### Mount SMB share as non-root user with write permissions ```sh sudo mount -t cifs -o "uid=$local_user,username=$smb_user,addr=$host,vers=1.0" //$host/$share $mount_path ``` > [!NOTE] >`vers=1.0` only applies because I have a very old NAS running SMB 1.0. <br> > Yes, it's insecure. No, it can't be updated. Yes, it's in the process of being retired. #### For error: mount: $mount_path: cannot mount //$host/$share read-only Install `cifs-utils`: ```sh sudo apt install cifs-utils ``` This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +0,0 @@ -
alimbada revised this gist
Jan 30, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # vers=1.0 only applies because I have a very old NAS running SMB 1.0. # Yes, it's insecure. No, it can't be updated. Yes, it's in the process of being retired. sudo mount -t cifs -o "uid=$LOCAL_USER,username=$SMB_USER,addr=$HOST,vers=1.0" //$HOST/$SHARE $MOUNT_PATH -
alimbada created this gist
Jan 30, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ # vers=1.0 only applies because I have a very old NAS running SMB 1.0. # Yes, it's insecure. No, it can't be updated. Yes, it's in the process of being retired. sudo mount -t cifs -o "uid=$LOCAL_USER,username=$SMB_USER,addr=$HOST,vers=1.0" //$HOST/$SHARE /$MOUNT_PATH