Questions tagged [cifs]

SMB / CIFS is a network protocol that allows sharing of files across a network of nodes. The protocol is based on a design where the customer requests it sends packets to the server, the server in turn sends response packets to the client.

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

Mount SMB share (CIFS) to container using secured credentials or token

I have a docker-compose setup that runs my Linux development environment on Windows. A number of these containers need to mount smb drives using LDAP credentials. The way this woks now is by adding a ...
user avatar
0 votes
2 answers
34 views

How to encrypt cifs mount password?

In my /etc/fstab, I have credentials=/etc/cifspw, but the cifspw file is in clear. Is there a way to encrypt this file so that the username and password are not in clear, and still be able to mount ...
user avatar
  • 541
0 votes
0 answers
40 views

Mount of shared windows drive in /etc/fstab failing

I’m having problems mounting /mnt/data on my newest vmware VM. I’m not sure what next to try next to get /mnt/data to show me my shared folder – I’m doing it through /etc/fstab in Ubuntu. So I ...
user avatar
  • 11
0 votes
0 answers
19 views

Need ansible task to open CIFS share on localhost

I an creating a "recovery" ansible playbook, and I need to link to a read-only share on the backup machine so I can copy files. The share on the backup machine is //io.hcs/backup. In windows ...
user avatar
  • 171
1 vote
1 answer
72 views

KDE Dolphin not preserving modified date of files when copying to samba share

This is my first post here, but I've been an avid reader. I have not been able to resolve this on my even after reading a lot of articles on the matter. I am using kubuntu 21.10 at the moment, but I ...
user avatar
  • 11
4 votes
1 answer
773 views

How do you configure Windows Subsystem for Linux 2 (WSL2) to use fstab to automatically mount a Windows Network File Share?

I'm trying to mount a windows share (SMB/CIFS) using a Debian 10 linux distribution running on Windows 10's Subsystem for Linux using fstab to automount on startup. My software specs are OS: Windows ...
user avatar
1 vote
0 answers
32 views

CIFS share can no longer mount

I used to have a CIFS share pointing to a Windows machine's C drive, however it broke some time ago (I assume following an update, but I don't use the share all that often, so I don't know exactly how ...
user avatar
0 votes
1 answer
359 views

File exists in directory, but not able to access it

I am able to see a file in the directory listing using ls -lh and it has 75kb file size. However, when I try to view the file using cat or move it using mv, I get No such file or directory. The file ...
user avatar
0 votes
0 answers
160 views

Why is a file having 0 hard links?

I need to access a file using Java and I get NoSuchFileException. The file seems to have 0 hard links. The file however has an associated inode number. I am able to use the inode number to find the ...
user avatar
0 votes
0 answers
76 views

I can't change file permission

I have a interesting situation. I have Windows Fileshare Server and I want to connect with Linux and I connected but I cant change any permission. I want to give a stikcy bit but it's not working. I ...
user avatar
0 votes
2 answers
480 views

I have 2 network interfaces in an Ubuntu 20.04 build, how can I force SMB/CIFS connections over the secondary network interface?

As the title says, I have 2 network interfaces in an Ubuntu 20.04 build - 1 1GbE link for internet etc. and a secondary 10GbE link that is directly connected to a file server. The 10GbE link has been ...
user avatar
0 votes
0 answers
54 views

cifs mount rdma failing

I have a clean but updated Ubuntu 21.04 install and want to mount an SMB share on a Windows Server 2019 machine using SMB Direct, but mounting fails. SMB Direct (and multichannel) works fine when ...
user avatar
0 votes
1 answer
87 views

Connecting to a Windows 10 share via its DNS hostname or IP address

I have two Win 10 Home machines, both signed in to the same Microsoft account. Both machines use a password sign-in. TLDR: Accessing a public share via its DNS hostname or IP address fails. Details: ...
user avatar
1 vote
0 answers
247 views

Mounting CIFS using hostname doesn't work

This comes from an old suggestion https://github.com/moby/moby/pull/39250 on an issue. I am trying to mount a CIFS volume, config it via IP worked for me but when I try to config it using a hostname ...
user avatar
  • 11
3 votes
1 answer
1k views

mount.cifs: Any way to mount with kerberos using the machine credentials

When a Linux machine joins a domain, a computer account is created in Active Directory. Can this account be used to mount a network share with cifs and Kerberos?
user avatar
  • 351
1 vote
0 answers
89 views

FRITZ!Box Samba share works using smbclient but not CIFS

I am trying to mount a disk attached to my FRITZ!box router NAS on my Manjaro Linux. FRITZ!box OS only supports SMBv1.0 at the moment, so I need to force the old protocol. The following commandline ...
user avatar
0 votes
1 answer
300 views

NFS mount based on user

I have a linux station (ubuntu 20.04) and I have a mountpoint /share (that is currently mounted as CIFS but I could also use NFS if needed). I’d like that two different users with local accounts, ...
user avatar
  • 626
0 votes
1 answer
75 views

Does pam_cifscreds module work with sudo access?

I have an RHEL (7.9) server with a remote drive mounted as a multiuser CIFS volume. With multiuser CIFS shares, users need to execute an additional command (cifscreds add) in order to access it. This ...
user avatar
0 votes
0 answers
2k views

CIFS VFS: cifs_mount failed w/return code = -22

I currently face an issue that I wasn't able to connect to a Windows Share. Following my used command, fstab doesn't helped either, it will get the same error. The kernel log isn't useful @ all. The ...
user avatar
2 votes
0 answers
110 views

Error splicing files when copying from NAS

This is a desperation repost of this issue I created way back in the Ubuntu forums and never fixed. I'm getting this error message while copying files from my Samba/Cifs NAS to my drive. I'm running ...
user avatar
0 votes
0 answers
53 views

how can i specific data offset option in smbclient command?

How can i set data offset value in smbclient get command? I have a scenario where i need to download file from where it fails. Here is the command i am using as of now: smbclient -U 'username' -c 'get ...
user avatar
0 votes
0 answers
1k views

Mount Windows folder on Hyper-V Ubuntu without user password

I have a Windows 10 Pro host with Hyper-V and Ubuntu 18.04.4. I want to mount a Windows folder in the VM to enable file exchange, for which I used this tutorial. Unfortunatly when I try to run the ...
user avatar
2 votes
0 answers
103 views

Samba CIFS mount only works after SSH connection to samba server

CIFS mount of my remote samba share for some reason unmounts from client in the middle of nowhere and doesn't mount back (log below) until I do an SSH connection from client to server, which, for some ...
user avatar
  • 21
0 votes
0 answers
37 views

eliminate win10 network mapped driver disconnect delay

I have a smb server on linux, and I connect it using net use command on win10. When I monitor net traiffic using wireshark, I find that when using net use Y: /delete to disconnect the mapped drive, ...
user avatar
0 votes
1 answer
484 views

Connecting to network share from Windows Server fails with "organizations's security policies block unauthenticated guest access"

I am trying to connect from Windows Server to CIFS share. Either using command net use z: \\ip\sharename /USER:user pasword /PERSISTENT:yes or using mouse click on This PC and then *Map Network Drive&...
user avatar
0 votes
1 answer
356 views

How do I mount a filesystem without the mount point changing owner to root?

I have two samba shares on a remote server (Debian 10, stable) on my home network. On my laptop (Debian 10 stable), I would like to automatically mount these shares to my local filesystem tree. To ...
user avatar
1 vote
1 answer
1k views

Mount CIFS - permission denied

I try to mount a folder shared by Windows 10. The Win10 client is part of a corporate domain. The user login is also part of the domain (local users are forbidden by domain policy). Using smbclient , ...
user avatar
  • 111
2 votes
0 answers
135 views

can't mount windows cifs share from ubuntu

I'm trying to mount a folder on a Windows 10 host from Ubuntu 18. Flat wired network, 192.168.1.xxx. Let's keep things really simple. On Windows, net share shows (among others) the default share ...
user avatar
0 votes
1 answer
478 views

Mounting zfs network shares in Ubuntu LTS 20.04 using cifs- mount error(2): No such file or directory

I have 3 Thecus NAS servers: a N5500 (Firmware: 5.03.02), a N5200XXX (Firmware: 5.03.02), and a N5550, (firmware 2.06.02.5.cdv) each configured as RAID 5. The N5500 and the N5200XXX are using zfs and ...
user avatar
1 vote
0 answers
25 views

How to handle Win file server permissions when connecting from Linux?

Situation: We have a file server in Windows Server 2012 R2, and until now the workstations are running Windows. We are trying to use Linux in some workstations (CentOS 8), since all our apps run on a ...
user avatar
  • 37
0 votes
0 answers
2k views

Arch Linux - Cannot mount SMB Share with mount.cifs, but gvfs and smbclient work

I am trying to access a NAS over a Cisco AnyConnect VPN. I can access it fine on: Macbook (Finder's "Connect to server") Windows 10 (Map Network Drive) Arch Linux gvfs (thunar and gio mount) Arch ...
user avatar
3 votes
1 answer
848 views

How can I mount a CIFS share from an MS-DOS computer

I am using 2 MS-DOS computers + 1 Windows 7 computer + 1 Raspberry Pi are connected to Cisco router through ethernet. I am easily able to map DOS shared folder in wWindows computer, \\DOSMCJB\DAT ...
user avatar
0 votes
0 answers
66 views

mount CIFS share failed after FreeNAS server upgrade

I upgraded a FreeNAS server from Ver 9.X to the latest 11.3. Configuration has been saved prior the upgrade and restored on the new installation. Currently, a remote Linux machine is unable to mount ...
user avatar
1 vote
0 answers
1k views

set ACLs on a cifs mounted folder: possible?

In short: I have mounted a CIFS folder from a remote server. I would now like to share this folder with my local samba server, which is part of a domain, using windows ACLs. Is this possible? How ...
user avatar
0 votes
1 answer
316 views

cant get cifs to mount network drive during boot using fstab

Im trying to get a network share to mount on startup using cifs. I can get the share to mount after linux boots, but for some reason I cant get it to work when editing the /etc/fstab file. Here's the ...
user avatar
  • 103
1 vote
0 answers
44 views

How to print samba share options?

Considering a standalone samba server. Looks like the number of share options goes over a couple of hundreds, like presented in https://www.oreilly.com/openbook/samba/book/appc.pdf. The options set ...
user avatar
  • 514
1 vote
1 answer
2k views

"Stale file handle" on CIFS mounted share

So I have a Kali Linux 2019.4 box on which I run a monthly script that mounts 4 CIFS shares from which I go grab a couple of files. That script has always ran well without any issue, but since ...
user avatar
  • 271
0 votes
0 answers
265 views

How can a macOS SMB share be mounted on Linux so that symbolic links can be created on it?

There is lots of conflicting information about it and it seems to depend a lot on the versions of various modules, and specific mount options. I'm not looking for the symlink "emulation" (mfsymlinks),...
user avatar
1 vote
1 answer
22 views

Same mnt but different rigth

I Have 2 server and the same mount ( CIFS windows machine ) but the files and folder print different permissions. Server1 redhat7 //10.XXX.XXX.XX/nas_usil 500G 460G ...
user avatar
  • 13
0 votes
1 answer
411 views

how can I write to dfs share with different users other than mount user on the linux server

I want to write dfs share with active directory groups on the Linux server. I mounted CIFS with ad user who is in the same active directory group. When I write to the directory with other than mount ...
user avatar
  • 192
0 votes
1 answer
35 views

bash expansion adding single quotes causing error

I have a command to mount a cifs fileshare. The share path and mount point are added with variables in the bash script like so; sudo mount -t cifs -o user="$USERNAME",cruid="$USERNAME",sec=krb5 "$...
user avatar
  • 155
4 votes
2 answers
12k views

Windows share folder mount error: cifs filesystem not supported by the system

I am trying to mount a windows share folder that is on the local network on the windows ubuntu terminal The command is: sudo mount -t cifs //xxx.xxx.x.xxx/foldername /mnt/x -o user=username But I ...
user avatar
  • 78
4 votes
2 answers
2k views

CIFS mounted on Linux from Windows shows corrupt/distorted images

I have mounted a Windows (NAS) folder onto a Turnkey-Linux server using cifs-utils. When viewing some of the images on the Linux side they will visually show distortion/corruption but will be fine on ...
user avatar
  • 101
0 votes
1 answer
1k views

SMB CIFS OpLocks - where is the danger?

I had some CIFS messages in my dmesg output [15064.932559] CIFS VFS: Cancelling wait for mid 37736 cmd: 5 [15064.932592] CIFS VFS: Cancelling wait for mid 37737 cmd: 16 [15064.932610] CIFS VFS: ...
user avatar
  • 2,084
0 votes
1 answer
808 views

Unable to mount FSx on EC2 Ubuntu

I'm trying to mount Amazon FSx on Ubuntu using below command but getting an error as given below Command: sudo mount -t cifs -o vers=3.0,sec=krb5,cruid=Admin@test.com //fs-of760d3a18765yh8u.test.com/...
user avatar
5 votes
2 answers
9k views

"user" CIFS mounts not supported - fedora 30

I have a number of smb v1 shares. (I know that smbv1 is old and vulnerable but I can't change it) Because of the old smb protocol, I cannot use nautilus to open then. Instead, I used fstab entries to ...
user avatar
1 vote
0 answers
303 views

Linux fstab cifs NAS mount shows empty folder

I am trying to mount my Nas in my home directory. This is also no problem at first, but when I restart my laptop Linux mounts it as a network, but the folder is empty. It also only shows the available ...
user avatar
0 votes
1 answer
1k views

How to delete (rm) files on a CIFS mount when filename contains a colon (:) or other special characters?

On my LAN, I have a Synology NAS with encrypted shared folders. They are mounted on my Debian computer through CIFS (NFS is only available for unencryted shared folders). //<NAS_IP_ADDRESS>/<...
user avatar
  • 51
0 votes
1 answer
27 views

CIFS isn't using the specified username when mounting

I am attempting to run a development server using Hyper-V. The goal is to do my front-end and back-end development in Windows while keeping my back-end files on the virtual server. The server is ...
user avatar
0 votes
1 answer
196 views

Change SE Linux context label of a specific folder inside a cifs mount

I have cifs mount on my setup mounted via /etc/fstab with context set to system_u:object_r:cifs_t:s0. There are some specific folders that I want to override default context to set public_content_t ...
user avatar

1
2 3 4 5