Questions tagged [cifs]

CIFS is a virtual file system in use by samba, and Windows servers to share files between different system.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

CIFS mount share with IPv6 link-local address on Ubuntu

I'm trying to mount a Windows share on a headless Linux computer with the following systemd unit file: [Unit] Description=mount network drive from harvester OBC Requires=network-online.target ...
Joooeey's user avatar
  • 123
1 vote
1 answer
69 views

Any way to enable user_xattr on tmpfs?

I am trying to cache CIFS share files on a ramdisk with cachefilesd, however cachefilesd requires the cache directory filesystem to support user_xattr. tmpfs does not by default. Is there any way to ...
kataba's user avatar
  • 11
0 votes
0 answers
46 views

Debian Linux error on logoff because cifs

I try to avoid the cifs_put_smb_ses: Session Logoff failure rc=-512 error on logoff which came up after about 30 seconds. If I umount the share manually before shutdown, the error does not appear. ...
Marlowe's user avatar
  • 101
0 votes
1 answer
48 views

How does nginx work with accessing files on mounted SAMBA/CIFS share?

I have a server running nginx as a web server for video streaming and am considering using an external CIFS/SMB storage share mounted to the server. As the server would need to download and upload for ...
kataba's user avatar
  • 11
2 votes
3 answers
190 views

How to auto-mount CIFS share if the server is only ready later?

I have two servers on my home network: A Linux server. (Currently running Debian with systemd, but I don't think there is anything Debian-specific here.) A NAS server. (Network Attached Storage.) ...
Denilson Sá Maia's user avatar
1 vote
1 answer
716 views

modprobe: FATAL: Module cifs not found in directory (Wrong version)

Running Ubuntu 22 in a Windows VM. Trying to give it access to a shared folder on my windows drive. mount -t cifs -o username=user '//ip/folder' /folder_on_ubuntu mount error: cifs filesystem not ...
HarryH's user avatar
  • 21
0 votes
0 answers
51 views

qBittorrent to CIFS share strange write spikes

This will probably get deleted, but I don't know how to write this without going on for paragraphs. I am having huge trouble trying to get qBittorrent to play nice with my new NAS (Synology DS1511+) ...
dhenry437's user avatar
0 votes
0 answers
39 views

How to symlink with cifs ext3 disk? Permission denied

$ sudo ln -s ~/somefile /media/fritz fails with Permission denied. I'm perfectly able to $ touch /media/fritz/foo.txt /etc/fstab/: //fritz.box/FRITZ.NAS/ /media/fritz cifs credentials=/home/me/....
jjk's user avatar
  • 411
0 votes
0 answers
101 views

mount folder directly to subdirectory of cifs share - RHEL 9

I have a cifs share that is currently mounted on serverA (in fstab - RHEL7) as: //<servername>/SHARE/folder /cifshared cifs credentials=<path to creds file> This works fine on ServerA. I ...
Andi's user avatar
  • 51
0 votes
1 answer
256 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
137 views

Samba/CIFS permissions (server Debian 10, client Ubuntu 22.04)

As in the subject: samba server running on a Debian 10 machine (inside my home LAN, 192.168.1.x); client is my PC, running Ubuntu 22.04 (1) Files on my PC show with permission 644, regardless of the ...
Cal-linux's user avatar
  • 111
1 vote
1 answer
252 views

Autofs with CIFS for home directories not really working

I'm having a bit of grief trying to get home directories that are automounted from a CIFS share working. In auto.master I have added the line /home/ /etc/auto.home and in /etc/auto.home I have * -...
BumpySiren's user avatar
1 vote
2 answers
2k views

Rocky Linux 9 can't mount share because CIFS is a dummy module

I have tried to mount an SMB share using cifs with this command: sudo mount.cifs -o vers=3.0,uid=user,credentials=/home/user/credentials,file_mode=0644,dir_mode=0755 //path/to/share /mnt/share And I ...
Noft's user avatar
  • 105
0 votes
0 answers
60 views

NAS starts to slow for mounting via fstab

To save energy, the NAS is shut down at night, and is started again by the first booting computer via WakeOnLan. After that, shares should be mounted by the computer. Unfortunately, the NAS is taking ...
Residuum's user avatar
  • 1,056
3 votes
1 answer
238 views

Horrible wget download speed to CIFS mount; local download and cp to share is fine

I'm having a horrible wget download speed to a CIFS share. This is the speed of wget download directly to the share: d64-18ef-43d5-b295- 2%[ ] 100.18M 11.7MB/s eta 6m 2s This ...
Janne Paalijarvi's user avatar
0 votes
0 answers
48 views

Cifs mount block writing to mount folder on disconnect

I'm not sure if this is the best title or explanation, I've been having difficulties with my media where some files would work and others wouldn't yet all were visible to clients, I was in the process ...
james barrett's user avatar
0 votes
1 answer
3k views

mount.cifs permission denied

I failed to mount a network drive and got mount.cifs permission denied $ nano ~/.smbcredentials username=xxx password=CwF $ sudo nano /etc/fstab //192.168.1.4/xxx /home/pi/mycloud cifs credentials=/...
user3523406's user avatar
0 votes
0 answers
278 views

CIFS with WD NAS

I use a My Cloud Home Duo from WD. Rather than using the web interface I would like to use CIFS under Linux. I tried the following commands based on: sudo mount -t cifs //192.168.1.3/Public ~/mycloud ...
user3523406's user avatar
1 vote
0 answers
497 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
1 answer
156 views

/etc/fstab syntax incompatible between auto-mount and manual mount of CIFS

When I use this fstab syntax: # grep raven /etc/fstab \\raven.example.com\raven /raven cifs vers=2.0,credentials=/root/creds_smb_raven,\ uid=5000,gid=6000,file_mode=0664,dir_mode=...
Jim L.'s user avatar
  • 7,922
0 votes
1 answer
68 views

Running a script from CIFS mount point location

I have a shell script located in Windows file share. The file share is mounted on a Linux VM via CIFS mount point. Now, if I execute the shell script from the Linux VM, where will this script actually ...
Pritam Guha's user avatar
0 votes
1 answer
56 views

cifs mount oddity: adds directory with the name of the share?

I am trying to mount a samba share on Ubuntu using cifs (either by an fstab entry or by just using the mount command). My share is //hostname/data My mountpoint is /mnt/project1 I mount using sudo ...
jpp1's user avatar
  • 101
0 votes
0 answers
719 views

How to fix persistent "stale file handle" for mounted network attached storage

I have a Linux server running Ubuntu that I am trying to have our network attached storage drive successfully set up on. I'm able to mount it fine, but the issue is that within a few hours the folder ...
user3037237's user avatar
2 votes
0 answers
84 views

Transparently fallback writing to local disk when CIFS mount is down?

I have a CIFS share that is recording data 24/7 and would like files written to it to be saved locally if the network goes down and the share hangs. Is there any way to do this? I don't have the ...
Ian Smith's user avatar
0 votes
0 answers
106 views

How to add or modify systemd mount targets/conditions in unit file

I've got a .mount file that I globbed together as /etc/systemd/system/opt-hass-config.mount [Unit] Description=Mount the config dir of hass.mydomain.com [Mount] What=//[IP ADDRESS]/config Where=/opt/...
HilarieAK's user avatar
  • 101
2 votes
1 answer
414 views

cifs multiuser mount works at first, but "Permission denied" after a while

I have several Samba shares hosted on a TrueNAS-Scale server, and mount them with the "multiuser" option from an Arch Linux machine. After cifscreds add as my user, I can access the share, ...
twisteroid ambassador's user avatar
1 vote
0 answers
965 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
  • 153
1 vote
1 answer
580 views

Issue mounting a network drive using fstab

I'm having a bit of a mare at the moment: I recently rebooted my host server, any my Ubuntu server 20.04 server was unable to mount a network drive again. I had a small issue where the systemd-...
fbarker92's user avatar
1 vote
1 answer
421 views

Opening a file with O_WRONLY flag but without write permissions

I've noticed that it's possible to open(...) a file with O_CREAT|O_WRONLY flags, but with 0400 mode (that is without w), then write data to the file and close it. This is somewhat contradictory to me, ...
aioobe's user avatar
  • 384
4 votes
0 answers
1k views

How can I troubleshoot a CIFS mount that breaks after 15 minutes?

Context I mount two Samba shares in a large corporate network (e.g. share A and B) on a machine with Ubuntu 20.04.5 LTS. Both mounts start out fine, but share B stops working after some time. This is ...
Saaru Lindestøkke's user avatar
1 vote
1 answer
1k views

Can't change ownership of cifs mounted Samba Share

In my Home Lab, I have an Ubuntu 20.04 Server and a Raspberry Pi as a VPN. I have two separate Samba shares on both machines. What I'm trying to do is mounting the Samba share on the Ubuntu server to ...
Emre Talha's user avatar
2 votes
1 answer
384 views

Strange permissions issue krb/windows domain/synology: within existing subfolders all access is denied

There are three machines in a network for this minimal example. A windows server acts as a domain (with everything that involves), a Synology NAS that's used to store some data and backups, and a ...
aphid's user avatar
  • 179
0 votes
1 answer
327 views

Linux Share Permission Error 13 When Mounting Share Remotely

Running a pc with Linux Mint 20.1 and Fedora 34, a share from the Linux Mint machine could be accessed on the Fedora machine. After updating Fedora to 35, share ceased being accessible from the Fedora ...
GreatMagusKyros's user avatar
1 vote
0 answers
503 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
505 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,885
0 votes
1 answer
3k views

smbclient works but mount.cifs doesn't (NT_STATUS_MORE_PROCESSING_REQUIRED)

I am attempting to access a file share on an old machine which uses SMBv1. This is a remote machine which I do not have physical access to, but I believe it runs Windows XP. I can access it fine using ...
SystemParadox's user avatar
1 vote
0 answers
2k views

Mounting cifs drive gives: mount error(22): Invalid argument

I'm trying to run: mount -t cifs //192.168.56.24/cifsnetapp_share /cifs -o credentials=/root/secrets/secrets,gid=5103,_netdev However I keep on getting the following error: mount error(22): Invalid ...
Omprakash Prajapati's user avatar
0 votes
1 answer
2k views

Unable Mount Shared Windows Server Drive in Ubuntu 18.04

I am attempting to mount a shared drive located on a 2019 windows server(192.168.1.180) to my linux machine(Ubuntu 18.04). I've updated my fstab as you can see below and created a new directory for ...
dakota_man's user avatar
1 vote
1 answer
261 views

How does CIFS work when opening a file?

After I mount a network drive using mount -t cifs ... /mnt ... on /mnt directory on a linux machine, how exactly does the system read files from it? Is it opened as a stream whenever an app requests ...
donaastor's user avatar
  • 214
0 votes
1 answer
959 views

Boot customized Ubuntu image over PXE via Serva encounter Kernel panic

Background I made an Ubuntu 20.04 "customized" img via dd command from a USB disk drive. I use Serva as PXE server following Serva tutorial. The official Ubuntu 20.04.4 ISO PXE boots ...
laudai's user avatar
  • 35
0 votes
0 answers
3k views

mount error(13): Permission denied on GNU/Linux

I need help with mounting a Windows shared drive on Linux. I tried searching for the solution on Google and on this site, but unable to find one. I verified the user is having access to the shared ...
user avatar
2 votes
1 answer
1k views

Kubuntu 20.04.4 LTS cannot mount domain samba shares (either from terminal or fstab)

I have been trying to mount a simple share. All domain users should have read permissions. Kubuntu was configured for domain, I can see domain and log in with domain user. When I access shares with ...
pormulsys's user avatar
  • 125
1 vote
0 answers
698 views

how to know what is the mount folder that generate STATUS_LOGON_FAILURE or STATUS_WRONG_PASSWORD?

We have a linux red hat 7.9 server with a lot of user that mount folders. during the mount there are asked for their account password (to access the network folder that is source of the mount). but ...
iostrym's user avatar
  • 11
0 votes
1 answer
3k views

Mounting a share in fstab (Debian 11) fails with BAD_NETWORK_NAME

I can run sudo mount -t cifs -o guest,user=root //SERVER_NAME/SHARE /mnt/FOLDER without issue. However, I cannot run mount -a or mount /mnt/folder when I have this line in fstab: //SERVER_NAME/SHARE /...
Hifihedgehog's user avatar
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
0 votes
1 answer
361 views

mount cifs: how to retrieve the status of the command execution from the terminal?

The following mount cifs code works fine: sudo mount -t cifs //192.168.1.77/something /mnt/192.168.1.77/something \ -o username=alpha,rw,uid=alpha,gid=tango,dir_mode=0770,file_mode=0770,...
Manuel Jordan's user avatar
0 votes
1 answer
97 views

mount cifs: How split in multiple lines the values of the o parameter?

The following command works: sudo mount -t cifs //192.168.1.77/something /mnt/192.168.1.77/something \ -o username=alpha,rw,uid=alpha,gid=tango,dir_mode=0770,file_mode=0770,nounix,sec=...
Manuel Jordan's user avatar
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
1 answer
2k views

How to mount WDMyCloud to Ubuntu Server via terminal

So a little context first. I'm a first time linux server user :) never tried it before but I'm slowly getting the hang of things. Still learning my way around syntax and the terminal. I'm trying to ...
Harith Gunewardene's user avatar
4 votes
3 answers
4k views

mount -t cifs only mounts as root and no longer honours uid and gid

I can only mount a remote cifs share as root even though I am using uid and gid with a valid user. This did work for years, with fstab remaining unchanged. I have been patching (this is openSUSE Leap ...
Marcus G's user avatar

1
2 3 4 5
8