Skip to main content

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
1 vote
1 answer
32 views

Discrepancy between "df" and "du" on a CIFS network drive

When I run df -H, my network mount reports 100% usage: user@system:/mnt/backup$ df -H Filesystem Size Used Avail Use% Mounted on ... //192.168.71.2/Linux-Database-...
widavies's user avatar
  • 113
0 votes
1 answer
66 views

Linux automated SMB connection attempts: has my server been compromised?

We have a Linux server running CentOS 7.  A few days ago, we found out that it has started continuously attempting to connect to a Windows server share via port 445 using a certain user's AD ...
swami's user avatar
  • 205
0 votes
1 answer
89 views

Rsync throwing errors but files appear to be fine

I am doing a massive 200TB transfer with rsync. I used a shell script I found off the internet to spawn a few processes but here is the relevant rsync command itself: rsync --recursive \ ...
john cs's user avatar
  • 164
0 votes
1 answer
41 views

smbclient deltree with read-only directories

I'm trying to delete files on a NetApp server using smbclient //servername/share -c "deltree directory_to_delete". It works except for folders which have the read-only flag set. In this case,...
Schorschii's user avatar
0 votes
0 answers
14 views

Why can't user access restricted folder via smb when member of a group?

I have a server running CentOS 7 with a samba share folder set up. There is a subfolder that I would only like certain users to be able to access. However, when I mount the samba share folder I am ...
jsjs12345's user avatar
0 votes
0 answers
81 views

How to view SMB share file history in Fedora 39

I've got some SMB shares mounted through fstab. The shares themselves are hosted on a TrueNAS Scale machine. My computer is running Fedora 39. The NAS is configured to regularly take snapshots of my ...
Cas's user avatar
  • 103
2 votes
0 answers
316 views

Linux SMB Client Failed to Connect to SMB Server Forcing AES-256?

I'm trying to connect to SMB share on my TrueNAS from my Fedora. It works well until I decided to enable encryption of SMB data. I put following in the service config on TrueNAS (global settings) unix ...
citrate's user avatar
  • 151
0 votes
1 answer
22 views

systemctl not using full share path on boot

I have a samba server that is running on my home router that I am attempting to connect to on system startup. Importantly the router will automatically setup the share names for me and they are in the ...
Andy McCall's user avatar
0 votes
0 answers
42 views

Samba 4.7 - issue with UNC access via hostname/fqdn

Running Samba 4.7.6 on U18.04. Everything was working prior to a recent shutdown, in that you could access the shares via \\hostname\ or \\hostname.domain.com\. Now, these fail on Windows clients with ...
Will Dennis's user avatar
0 votes
0 answers
59 views

Gnome Files (Nautilus) cannot retrieve SMB share list of a server when double-clicking

I am running Gnome Arch. In Files, Other Locations, Networks, there is Server. If I double-click it, Files says "Unable to access location." If I type the server name smb://server and then ...
Damn Vegetables's user avatar
0 votes
1 answer
74 views

unix permissions (and repercussions with smb shares)

I have a NAS on which years ago (I was using a Linux box at the time) I copied some files mounting it as a NFS share. Years later... few days ago, I tried to access to the same files/folders from a ...
alberto4986548376's user avatar
0 votes
0 answers
61 views

"bogon" instead of "hostname" in MacOS File Sharing

As the above picture shows, when I turned on "File Sharing", MacOS tells me to access it by "smb://bogon", however, I think the correct item here should be "smb://<hostname&...
Siris Li's user avatar
0 votes
0 answers
37 views

cups authinforequirement set domain

I want to change the default value WORKGROUP when cups authinforequired is set to "domain,username,password". Then the user has to enter his credentials in a popup windows when printing a ...
Thomas Greulich's user avatar
1 vote
0 answers
67 views

echo or >> (or something) fails when network connection has been idle for a long period?

I have a script that takes several hours to finish (the script runs whisper and it is the whisper . At the end I echo and >> some results to a network volume mounted using SMB. This often fails ...
d-b's user avatar
  • 1,937
0 votes
1 answer
380 views

Permission Denied CIFS. Tried everything I can think of

//192.168.1.64/d /media/d cifs credentials=/home/nick/.smbcredentials,uid=nick,gid=media,file_mode=0777,dir_mode=0777,nofail,user 0 0 Here's my ls- l of the share once mounted: drwxrwxrwx 2 nick ...
Nick's user avatar
  • 3
0 votes
0 answers
66 views

Mac Cannot unmount Disk Images that are mounted from Samba Shares

I am on a Mac OS 12.6.8. I have gotten Samba to work great with TimeMachine and general sharing of directories off the server which is running FreeBSD 13.2 with Samba Version 4.16.10. The one issue I ...
Alex's user avatar
  • 1
0 votes
3 answers
817 views

Do Linux file security settings work on SMB?

I've tried all kinds of Google searches, but I can't find a straight answer to my question. Do Unix concepts like owner, group, permissions bits, etc., work with SMB? My first thought is that SMB is ...
MathematicalOrchid's user avatar
0 votes
1 answer
468 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
  • 907
2 votes
1 answer
60 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
580 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?
hobyte's user avatar
  • 113
0 votes
0 answers
256 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
3 votes
2 answers
254 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
  • 487
1 vote
0 answers
585 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
2 votes
1 answer
30 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
11k 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
2 votes
0 answers
1k 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
  • 163
0 votes
1 answer
825 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
1 answer
1k 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
554 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
2 votes
0 answers
3k 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,679
2 votes
1 answer
87 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
579 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
  • 3,022
0 votes
0 answers
226 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
1 vote
0 answers
310 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
  • 788
1 vote
0 answers
818 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
7k 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
  • 333
1 vote
1 answer
2k 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
2k 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 utility ...
dig_123's user avatar
  • 143
1 vote
0 answers
38 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
3 votes
4 answers
18k 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
  • 31
0 votes
0 answers
131 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
3 votes
1 answer
302 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
86 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
  • 135
1 vote
0 answers
874 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
5k 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
4 votes
3 answers
4k 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
1 vote
1 answer
3k 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
  • 153
0 votes
1 answer
343 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
  • 159
4 votes
2 answers
11k 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

1
2 3 4 5