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
0 answers
82 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 ...
user avatar
  • 117
0 votes
1 answer
242 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 ...
user avatar
  • 283
1 vote
1 answer
175 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 ...
user avatar
  • 73
2 votes
0 answers
53 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 ...
user avatar
  • 133
0 votes
0 answers
42 views

Some subdirectories created on Linux via SMB not visible on macOS

I have the following network shares setup with 3 machines: Machine A (Ubuntu 20.04) owns a directory dir and exposes it with SMB smbd --version → Version 4.13.14-Ubuntu Machine B (Ubuntu 20.04) ...
user avatar
  • 101
1 vote
0 answers
24 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 ...
user avatar
0 votes
3 answers
2k 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=...
user avatar
0 votes
0 answers
31 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/...
user avatar
2 votes
1 answer
43 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 ...
user avatar
0 votes
0 answers
175 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 ...
user avatar
0 votes
0 answers
24 views

Trying to remotely change Windows 10 user account properties from Linux with "net sam" command - getting an error

I have a desktop computer on the LAN running Windows 10 Pro with two users - the priviledged "w10_admin" and restricted "w10_user" and 192.168.1.100 local IP address. I need to ...
user avatar
1 vote
0 answers
31 views

Viewing Pictures via SMB much slower than copying the picutre

I have an NAS in my local network that I connect to via SMB from my laptop. When I try to view a single picture that is stored on my NAS via feh or nomacs, it takes 30s sometimes longer. Copying over ...
user avatar
  • 123
0 votes
0 answers
11 views

Sharing from OSx with Linux guest

I need to share a directory from OSx and access it from Linux. What is my best option, SMB or AFP (I am not mentioning NFS because I read of its poor performance)? I need support for extended ...
user avatar
  • 441
0 votes
1 answer
24 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....
user avatar
  • 115
1 vote
0 answers
188 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. ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
1 vote
2 answers
951 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:...
user avatar
0 votes
1 answer
591 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,...
user avatar
  • 143
0 votes
0 answers
66 views

How to allow legacy Windows 3.11 client to connect to modern Samba share?

I'm using Debian 10.9 and Samba 4.9.5 on my server but I'd like to allow a legacy Windows 3.11 (!) client to connect to an SMB share. Is it possible to allow this and restrict any legacy settings to ...
user avatar
  • 283
0 votes
1 answer
43 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 ...
user avatar
  • 139
0 votes
0 answers
177 views

Unable to mount samba share (cifs_mount failed w/return code = -13)

I have a Fedora 34 server edition machine, in which I'm trying to make a guest accessible samba share. My smb.conf looks like this: [global] workgroup = WORKGROUP server string = sambaserver netbios ...
user avatar
  • 1,467
1 vote
1 answer
2k 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 /...
user avatar
  • 31
2 votes
0 answers
38 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 ...
user avatar
  • 463
0 votes
0 answers
257 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 ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
0 votes
1 answer
123 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 ...
user avatar
2 votes
0 answers
595 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 ...
user avatar
  • 430
0 votes
0 answers
63 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 ...
user avatar
1 vote
0 answers
14 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 ...
user avatar
0 votes
1 answer
335 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 ...
user avatar
  • 10.9k
1 vote
1 answer
324 views

Cannot scan (documents) to Samba share when using SMBv2

On my Debian Buster I have a Samba share that works fine from both Windows and Linux clients. I've configured the Samba with min protocol = SMB2 in smb.conf and with local user/password authentication ...
user avatar
  • 530
0 votes
1 answer
4k views

How to make this Samba share accessible without any user/password login?

I have modified /etc/samba/smb.conf to create a [public] share: [global] workgroup = WORKGROUP log file = /var/log/samba/log.%m max log size = 1000 logging = file panic action = /usr/share/samba/panic-...
user avatar
  • 2,245
0 votes
1 answer
382 views

Creating Symbolic link in SMB share

I am connecting to an SMB share, i have read and write permission. I am trying to create a sym link to a file outside the share, but i get the following error: ln: failed to create symbolic link '9' : ...
user avatar
1 vote
1 answer
2k views

smbclient protocol negotiation failed: NT_STATUS_IO_TIMEOUT not supported SMB dialect?

I'm trying to do some enumeration on the kioptrix vm from vulnhub and failing to list available shares using smbclient. According to nmap tcp/139 is open. I've used metasploits auxiliary smb_version ...
user avatar
  • 346
0 votes
1 answer
49 views

CentOS: Mount SMB remotly

Issue & solution: /srv/samba ownership was root:root; changing its group with chgrp prv /srv/samba/ allowed me mount it using user prv:prv from a remote machine. Note that /srv/samba/foo's ...
user avatar
  • 243
0 votes
1 answer
105 views

Transfer files between two Ubuntu machines over ftp

I wonder how I can transfer files between two machines running ubuntu using FTP? Also what is the best fastest configurations to transfer files over ubuntu (cifs, smb, ftp,...)? Also is it worth it to ...
user avatar
  • 517
0 votes
0 answers
2k views

RHEL - Mounting CIFS Permission Denied (Error code - 13)

I understand that a lot of people have posted on this issue, I have read through a whole lot of them before I try to post this question. I have tried the many of the provided solution, none have works ...
user avatar
  • 1
2 votes
1 answer
1k views

linux - smb/cifs Stale cp: cannot open 'file.JPG' for reading: Stale file handle

I've got the following entry in my /etc/fstab: //fritz.box/fritz.nas /mnt/smb/fritz.nas cifs user,cache=loose,nohandlecache,username=name,workgroup=WORKGROUP,password=pwd,vers=3.0 0 0 ...
user avatar
  • 79
0 votes
2 answers
3k views

Debian 10 samba (smb) share - cannot connect with any OS

I am attempting to deploy a samba share from a Debian 10 server, which I intend to use with both Windows, Mac OS X and other Debian 10 machines. I have been at this for a few days now and not been ...
user avatar
2 votes
0 answers
158 views

Using subversion on an CIFS mounted share

I am setting up an ubuntu svn/apache2 server for our production environment. Also, it is mandatory, that the actual data is saved on a centralized location in our environment(different server, mounted ...
user avatar
  • 121
5 votes
2 answers
5k views

smbclient can access Windows share content, mount.cifs cannot

I have been given an account on a Windows file server. The (to me) very strange situation is that I can connect with smbclient, change to the (deep) subdirectory or show its content I can mount the ...
user avatar
  • 81.4k
1 vote
0 answers
982 views

Freenas and ACL permissions

I have been trying to set up the ACL on FreeNas 11.3 all day and it just does not work the way I think it should I am wondering what I am doing wrong. All I want to do is when a user creates a file in ...
user avatar
  • 121
0 votes
1 answer
554 views

Start SMBD (Samba) with profiling parameter (For NetData)

I am trying to set up Netdata monitoring on my debian server. Netdata works with everything but Samba. To get it to recognize samba I have to do the following: smbd must be started either with the -P ...
user avatar
1 vote
1 answer
4k views

In OpenMediaVault, how do I secure an SMB share with login and password?

I'm running a NAS server with https://www.openmediavault.org/ on a Raspberry PI. I've made a "shared folder", activated SMB sharing and within it created a share for this folder with "only guests" ...
user avatar
1 vote
2 answers
5k views

How to copy a directory from smb server to linux?

I'm trying to copy a directory from an smb link smb://source/path to a Linux machine I have tried rsync -av //source/path /destination/path and rsync -av smb://source/path /destination/path but ...
user avatar
1 vote
1 answer
805 views

Mount SMB share on Ubuntu without kernel support [Linux Deploy - Linux on Android App]

I'm trying to mount a SMB share on Ubuntu, but this install is in the Android application Linux Deploy. This version of Ubuntu doesn't seems to have the cifs module in the kernel. $ find /lib/...
user avatar
  • 21
0 votes
1 answer
1k views

Cannot log in into samba share with smbclient but mount it via cifs

The problem We have a NAS, which I can easily mount via CIFS, but I cannot access it via smbclient. On the NAS itself I have very little influence. I just got a permission for a set of shares there. ...
user avatar
  • 123
0 votes
1 answer
297 views

File corruption on samba share

I have a Samba 2.0 share, setup with a Western Digital WDTVLIVE device. I'm playing mp3 files from this share (from MacOS Music, Windows MusicBee and iOS Evermusic apps). What happened some days ...
user avatar
0 votes
1 answer
553 views

Accessing a directory on an SMB share without access to the parent directory

I have an SMB share from a Windows 2019 host: \\server\share I can mount this using mount.cifs to my Linux server on /mnt/ I'm then trying to access a directory a few levels down: \\server\share\...
user avatar
0 votes
0 answers
868 views

Mount cifs between two centos vms as user gives mount error(13): Permission denied

I am trying to mount a folder from centos vm (ver 8) to another cent os vm (ver 7) but getting the following error. Can someone let me know what is going wrong here. mount.cifs -vvv //server-ip//...
user avatar