As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [smb]

smb is an abbreviation for Server Message Block, a network protocol for sharing files and printers implemented by Windows, Samba and others.

Filter by
Sorted by
Tagged with
0 votes
1 answer
21 views

Error connecting to samba share

I am running a samba server on a Raspbian 11 device and I'm trying to connect to it from an Ubuntu 20 device. When I open the file manager, I can see the samba share but when I try to access to it (...
giovi321's user avatar
  • 787
0 votes
0 answers
33 views

Make linux samba share visible in windows with subnets

How do I make my linux samba share visible from a windows client, where the server and the client are in two different subnets? For my samba share I use the linux fileserver turnkey image. I use wsdd ...
Johannes's user avatar
  • 101
2 votes
1 answer
27 views

On-the-fly SMB shares conf to quickly share files

I want to use samba to quickly and easily share files on occasions. I set up a smbuser to which I forbid login with chsh -s /bin/false smbuser I give the smbuser's password to people and I have my ...
Steve-no-Jobs's user avatar
0 votes
1 answer
130 views

cache smb mount on local hard drive

I have a smb mount on my linux server, but occasionally it loses connection, interrupting the software using the mounted directory. Is there a way to cache the smb mount on local disk?
8bit's user avatar
  • 113
0 votes
0 answers
138 views

Problems connecting to the Samba server over the Internet

My problem: When my friend tries to connect to the network drive he gets an error message. "Make sure the name is spelled correctly. There may be a network error." But he entered ...
Rufius's user avatar
  • 1
0 votes
0 answers
47 views

Check accessibility nfs mount disk

Server Debian 10 I have multiple mapped network drives, like this: //10.0.1.101/db/ /mnt/db cifs rw,cache=none,credentials=/mnt/creds/.db,nounix,file_mode=0755,dir_mode=0755,actimeo=1 0 0 //10.0.1.111/...
rootbeer's user avatar
2 votes
2 answers
94 views

Why does the output of testparm differ from /etc/samba/smb.conf?

This is the output of the [global] section of the /etc/samba/smb.conf of a random Synology NAS: ~# cat /etc/samba/smb.conf [global] printcap name=cups winbind enum groups=yes ...
mgutt's user avatar
  • 347
1 vote
0 answers
164 views

Mount smb3 folder with SmbServerNameHardeningLevel=2

TLDR: Is the mount.smb3 command compatible with Windows endpoints with the policy SmbServerNameHardeningLevel set to 2? How can I make it work? Description of the error: I am on Ubuntu Desktop 22.04....
Jorge Yanes Diez's user avatar
0 votes
0 answers
206 views

Samba 4.17.4 - share access issue

I have Samba installed on Arch Linux. With the latest Samba update to 4.17.4 version I cannot browse smb server without specifying the share, i.e. if I do smb://192.168.1.10 in file browser it lists ...
z0mb1e_kgd's user avatar
2 votes
1 answer
26 views

Printer stuck on insecure Samba version

I have an HP OfficeJet 8600 printer in my office that's around 10 years old but still works perfectly fine. I occasionally use this printer to scan to a samba share hosted on my DD-WRT router. I ...
Ryan Knutson's user avatar
3 votes
1 answer
410 views

Using 'get' to transfer contents of folders using smbclient

Using smbclient and the 'get' command to move files from a Windows network share over to a Linux box. I can smbclient from Linux to the network share and bring individual files over by doing ...
Shroom's user avatar
  • 31
0 votes
0 answers
452 views

How can I mount a cifs share as a volume from a rootless podman container?

Say I create a named volume podman volume create --opt type=cifs --opt o=async --opt device=//mynas.lan/steamcache steamcache According to podman volume inspect, this volume's mountpoint is /home/me/....
Krateng's user avatar
  • 143
0 votes
1 answer
319 views

CentOS 6: Show supported SMB protocol

I have a CentOS 6 that can mount a share from a Windows Server 2008. However, it can't mount share from a newly purchased NAS or from a share on a Windows 11 machine. How to I view the supported SMB ...
supmethods's user avatar
0 votes
0 answers
210 views

Remote location mountable with gio but not mount

I have a remote disk on my router accessible via samba. I can do gio mount smb://192.168.1.1/StratoCumulus and this will mount it as a Network connection (accessible under nemo left panel, in the ...
sayanel's user avatar
  • 271
0 votes
1 answer
533 views

Mount SMB share without specifying shared directory in remote path

I was about to change mount from "//192.168.1.x/SomeFolder" to "//192.168.1.x/" so i could choose which dataset i want to access with my docker containers. It gave me error like: ...
Pheggas's user avatar
1 vote
0 answers
301 views

Using server-side copy on a SMB share

According to the SMB docs server-side copy should work on recent versions of SMB via cp --reflink When trying this with a server running smbd 4.15 (via crazy-max/docker-samba) and a share mounted with ...
frsc's user avatar
  • 111
0 votes
0 answers
129 views

copying file to mounted SMB share changes the file date

I'm using KDE 5.20.5 on MX-21.2. I have mounted SMB shares with fstab. If I copy files to the mounted share with Dolphin the file date is changed to the current date. If I copy the file with Dolphin ...
badmem's user avatar
  • 1
0 votes
0 answers
58 views

Cannot log in to samba from host win10 to guest vmware ubuntu 22.04

I have a Windows 10 host, on which I run guest VMware Ubuntu 22.04. Samba is installed on the guest. I've added the [homes] section in /etc/samba/smb.conf [homes] comment = Home Directories ...
hudac's user avatar
  • 689
2 votes
0 answers
1k views

What SELinux setting is preventing Samba from displaying and allowing me access to shares?

I have a very basic /etc/samba/smb.conf configuration: [global] workgroup = WORKGROUP server string = Samba server (%v) on %h security = user passdb backend = tdbsam [...
Zhro's user avatar
  • 2,435
1 vote
1 answer
45 views

Whose fault is it that opening the same Samba-shared file does not give updated file?

In the scenario below, the app on Windows does not get the updated version of the file, but gets the old version of the file. I have two methods to get the new version in this case: (1) restart the ...
Damn Vegetables's user avatar
0 votes
0 answers
308 views

NAS issues with SMB/CIFS; how to 'see' client-server messaging?

I have a new Synology NAS (DS1621+), and have begun integration into my home network. I'm having some problems using it with my Linux hosts. I can mount the NAS, but the permissions (as seen from ...
Seamus's user avatar
  • 2,473
0 votes
0 answers
222 views

smbclient path not recognized in file transfer smbserver.py

I hope is all well. So I am trying smberver.py to transfer file whoami.exe here is what I did so far: smbserver.py temp /usr/share/windows-binaries/whoami.exe Impacket v0.10.0 - Copyright 2022 ...
user531955's user avatar
0 votes
0 answers
319 views

smbclient showing this error: NT_STATUS_CONNECTION_DISCONNECTED listing \* when I am trying to list files

What I am trying to is that to try and transfer whoami.exe. But I am facing few challenges. First, I did this: sudo /usr/share/doc/python3-impacket/examples/smbserver.py temp /usr/lib/x86_64-linux-...
user531955's user avatar
0 votes
0 answers
175 views

rsync to Windows Server NTFS share always copies all files/folders

I am using rsync to backup the /var/www/ folder on my Lubuntu 20.04 host to an NTFS share on a Windows 2022 Server. The command below always copies every file and folder, despite the fact that no ...
user1175461's user avatar
0 votes
0 answers
426 views

Can `mount.cifs` but can't access smb path in nautilus

Trying to access a shared folder on Win 7 (to both Anyone and Guest, with password disabled) from an Ubuntu 22 machine. If I try to browse path smb://192.168.0.2 in Nautilus, I get "...
d9ngle's user avatar
  • 309
1 vote
0 answers
228 views

How to find out with which user gvfs has connected to smb share

I can connect to network drives with the following command: ( echo myusername; echo MYDOMAIN; echo password123 ) | gio mount smb://127.0.0.1/Sharename And I can get some file attributes of the mount ...
Daniel's user avatar
  • 790
1 vote
0 answers
520 views

Mount SMB: mount error(40): Too many levels of symbolic links - How to debug and resolve?

running the command: sudo mount -t cifs //<IP>/Folder /mnt/Folder -o username=some_user,password="some_pass",gid=<ID>,uid=<ID> Gives the error: mount error(40): Too many ...
Tanasis's user avatar
  • 127
1 vote
1 answer
4k views

How can I auto mount an SMB share on KDE + Arch Linux? (re: kio-fuse?)

I'm using a Steam Deck which runs Arch Linux and KDE Plasma. It has a read-only filesystem (for system files) but does include kio-fuse (5.0.1). What's the best practice to automatically mount an SMB ...
SofaKng's user avatar
  • 303
1 vote
1 answer
1k views

mount smb share after wireguard with fstab or systemd

I'm trying to mount an SMB-share after a wireguard connection has been established. Therefore I did the following things: created a wireguard config made systemd start the connection on startup ...
nioerd's user avatar
  • 73
3 votes
0 answers
701 views

list all network storage based mounted filesystems in Linux

My requirement is to find out all such directories in Linux which are mount points for network based storage/file systems (like NFS , SSHFS, CIFS, SMB, etc) I did some research, and there is no ...
dig_123's user avatar
  • 143
1 vote
0 answers
29 views

How can/should I cache a CIFS network mount for offline browsing of the directory tree? [duplicate]

I have a very large CIFS mount containing ~500,000 files on big slow 5400rpm drives. I only ever access it from my one laptop. Lately, I've been organizing it, which means lots of searching and ...
GreenTriangle's user avatar
1 vote
3 answers
10k views

CIFS: Status code returned 0xc000006d STATUS_LOGON_FAILURE

Linux: 4.18.0-305 OS: CentOS 8.4 I have an SMB folder that is mounted with the following command: mount -t cifs -o iocharset=utf8,rw,credentials=${_passwordFile},nobrl,nounix,file_mode=0644,dir_mode=...
Rico R.'s user avatar
  • 11
0 votes
0 answers
53 views

Read password from variable when executing a command

I have a network share I mount on a Linux-computer using the following command: sudo mount -t cifs -o credentials=/path/to/credentials,uid=1000,gid=1000,file_mode=0600,dir_mode=0700 //192.168.6.9/...
Ratatosk's user avatar
2 votes
1 answer
190 views

Securing Samba on debian 10

I'm configuring a debian 10 VPS and recently installed samba. I was impressed -- in a bad way :) -- about how quickly /var/log/samba started filling up with all sorts of attempts to access the one ...
Mark Olbert's user avatar
0 votes
0 answers
2k views

Mount SMB Share

I am trying to mount an SMB share in Debian that is hosted on Server 2019 so that I can run a nightly bash script and copy some data over to it. Its been working well until we turned off SMB V1.0 for ...
MrLizard's user avatar
0 votes
1 answer
34 views

Manually calling mount point

In my /etc/fstab file, i defined a network shared folder mount. Like so: //172.16.30.50/secret2/secret3 /media/secret1/secret2/secret3 cifs credentials=/home/myuser/aux/some_file.txt,x-systemd....
Skywarth's user avatar
  • 115
1 vote
0 answers
594 views

cifs mount without owner or permissions on RHEL8 (but fine with RHEL7)

So on RHEL8, I'm connecting to an Isilon storage appliance via CIFS. The mount options in fstab are rw,vers=2.1,nobrl,credentials=*****,uid=sviibtst,gid=mqbrkrs,dir_mode=0770,file_mode=0770,_netdev. ...
Ziferius's user avatar
1 vote
1 answer
3k views

How to connect to old Samba-server with new smbclient?

A Linux-based multimedia-box I have runs smbd, which reports its version as 3.0.30. smbclient 4.10 used to be able to connect to it, but, after upgrading the client to 4.13.8, I'm getting ...
Mikhail T.'s user avatar
2 votes
2 answers
3k views

Samba has a module vfs_full_audit, what does each object actually mean within the module?

The module vfs_full_audit in Samba lists objects that can be added to the module to increase the logging specificity or verbosity generally of syscalls. Example: # defaults for auditing full_audit:...
firespasm's user avatar
0 votes
1 answer
2k views

Try to mount SMB share on NAS and get "Operation not supported"

I have several Synology NAS, running DSM 6.2.2-24922 Update 5, which I successfully mount on Ubuntu 18.04 with: sudo mount -t cifs //192.168.x.y/folder_name -o username=user,password=???????,uid=1000,...
Omroth's user avatar
  • 143
0 votes
1 answer
258 views

Is it possible to make a mounted SMB share behave as a system directory?

Sorry for the ambiguous title, I am not really sure the correct terminology for what I am asking (which is also making searching for an answer kid of tricky). Basically, I have a TrueNas box on the ...
PsychoMo's user avatar
  • 139
4 votes
2 answers
7k views

cifs mount error(2): No such file or directory

I have a Buffalo Neworkstorage (NS) installed. I am able to mount the NS from my Rock Pi N10 running Debian (buster) using the following command: sudo mount.cifs //<<ip.address>>/SHARE /...
paul's user avatar
  • 61
2 votes
0 answers
46 views

Is it possible to have two sources for a mount?

I have NAS which is accessible via both SMB and FTP. I currently have the share mounted on my Fedora 33 laptop using curlftpfs, but I'd like to know if it's possible to configure it to first try ...
Dave F's user avatar
  • 533
0 votes
0 answers
507 views

Problems connecting Debian to Windows SMB share using smbclient?

I'm having problems connecting my Debian Linux system to my Windows SMB share. The other windows VMs have no problem mounting the drive, just Linux. This VM is connected to the AD by realmd, and ...
Hughesey's user avatar
  • 101
1 vote
2 answers
7k views

smbclient throws "ERROR NT_STATUS_IO_TIMEOUT"

I am trying to get a SMB connection to a HTB box with an open SMB port. But smbclient throws an "ERROR NT_STATUS_IO_TIMEOUT" error every time. I've added client min protocol = CORE client ...
Lil Peep's user avatar
0 votes
1 answer
461 views

Remount SMB file system if unmounted

I have a SMB share via my router that I use to share docs between 4 rPi4B's. I mount the drive on boot via gstab with the following line: //fritz.box/fritzbox/NAS_USB /home/pi/Documents/Dateiserver ...
Phill Healey's user avatar
2 votes
0 answers
1k views

SMB mount with Kerberos

I have set up a server with Fedora 33 and joined it to an Active Directory. This worked successful and users can authenticate themselves with their Active Directory user names. I can also see my Linux ...
T. Pluess's user avatar
  • 470
0 votes
0 answers
123 views

Why is the filesize of my disk twice as small in 'df -h' compared to 'lsblk'?

I just bought and installed a 4TB NAS HDD to use as a SMB Share. Through windows it only shows me a capcity of 2TB instead of 4, which I found out is because Samba uses the 'df -h' command, whereas I ...
Kasper van der Pol's user avatar
1 vote
0 answers
19 views

Use ethernet port for smb share transfers, but smb should still be accessible over wifi

I'm pretty new to Linux networking and I'm not sure how to fix a file transfer issue I have. I have two Raspberry Pis. One is running Raspberry Pi OS and the other is running OSMC. Both are connected ...
Appelman's user avatar
0 votes
1 answer
663 views

Solaris 11: zfs smb share works only as guest

I'm on Solaris 11.4 I create a zfs fs zfs create rpool/share and I set for sharing via smb zfs set share=name=zfssmb1,path=/rpool/share,prot=smb,csc=auto,guestok=false rpool/share When I try to ...
elbarna's user avatar
  • 11.9k