Questions tagged [cifs]
CIFS is a virtual file system in use by samba, and Windows servers to share files between different system.
372
questions
0
votes
0
answers
23
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 "...
0
votes
1
answer
40
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 ...
0
votes
0
answers
18
views
Samba share in fstab, setuid root not working but for one share
I'm mounting different SMB Shares from a server. All of the shares have the exact same server side configuration (minimum SMB 2.1, maximum 3.0, enforce encryption, ...).
On my client side (laptop) all ...
0
votes
0
answers
72
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 ...
0
votes
0
answers
62
views
CIFS - no target servers for DFS failover
I have 2 windows shares i mounted to Ubuntu server
Content of /etc/fstab
//fs.example.local/data$ /data cifs vers=3.0,credentials=/root/.cifsauth,noserverino,rw 0 0
//fs.example.local/data$/mapis/...
0
votes
1
answer
98
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 ...
1
vote
1
answer
52
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 ...
0
votes
0
answers
63
views
How to mount a cifs Partition for docker-compose?
I want docker-compose to mount one of the volumes to a mounted CIFS partition.
I used the seafile docker-compose file and changed the volumes to
...
db:
...
volumes:
- /mnt/nas_share/...
0
votes
0
answers
126
views
Boot customized Ubuntu image over PXE via Serva encounter Kernel panic
Background
I had make a customized img on Ubuntu 20.04 via dd command from a usb disk driver.
Using serva as pxe server like serva tutorial.
It is successful completion boot over pxe on official ...
0
votes
0
answers
315
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 ...
1
vote
1
answer
194
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 ...
1
vote
0
answers
187
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 ...
0
votes
1
answer
259
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 /...
0
votes
0
answers
55
views
cifs mount and filesystem
I have a cifs mount on a Linux server pointing on a Windows share.
If I do a df I have this
Filesystem Size Used Avail Use% Mounted on
//xx.xx.xx.xx/Repo/client/Err 1.0T 700G 300G ...
1
vote
1
answer
256
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
...
0
votes
1
answer
48
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,...
0
votes
0
answers
20
views
File manager's upload progress freezes for cifs mount
I've observed this on Arch (with Dolphin) and Mint (with Nemo). If I try to move/copy a large file to or from a CIFS mounted drive (via a file manager), the progress window pops up and the progress ...
0
votes
1
answer
65
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=...
2
votes
0
answers
79
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 ...
0
votes
1
answer
221
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 ...
2
votes
3
answers
352
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 ...
0
votes
0
answers
191
views
How to mount a unix directory on windows using WSL or powershell
I have this directory on Unix machine which I am trying to mount on my windows machine using WSL.
mkdir ldp
sudo mount //IPADDRESS/var/log/Log_Files -o username=root,password='password',domain=rdc-...
0
votes
1
answer
128
views
CIFS share mounting but not able to read contents
I have cifs share coming out of an Isilon server. Let's say the share name is //server/path/subdir1/subdir1-1
Here - the account im using to mount, has full read/write permissions (in the isilon ...
0
votes
0
answers
751
views
samba access denied: "session closed for user nobody"
I am seeking to add a Samba share to a host running Linux Mint.
Desired features of the share are discoverability of the host and share through broadcast, accessibility of files only by users with ...
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 ...
0
votes
1
answer
171
views
cifs missing from Fedora 34
Attempting to mount a windows filesystem with -t cifs yields:
mount error: cifs filesystem not supported by the system
Sure enought:
lsmod | grep cifs
Shows nothing. Doing modprobe cifs gives me:
...
0
votes
3
answers
3k
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=...
1
vote
1
answer
53
views
How to check if mount is ready (not busy) (opensuse)?
If I create the following mount:
mount -o user=root,pass=test123 //samba1/testshare /mnt/d928a47b-9ee0-40cd-a356-fa382a7ea8e5
I can view it by running mount:
mount
...
//samba1/testshare on /mnt/...
0
votes
0
answers
34
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/...
0
votes
1
answer
64
views
mount with cifs: parameter to replace uid and gid by their names instead
About Samba in Ubuntu, if in the server exists an user created for example with the omicron name with uid=1003 gid=1003 and executed:
sudo smbpasswd -a omicron
Then, if in the client is tried (...
0
votes
0
answers
52
views
Mount CIFs on Linux and have users to create dir/files
We have Linux admin mounted CIFs on Linux rhel7 like options,
//abc-01/my_data /usersdata cifs user,username=xyz,password=xyz,domain=usax.ad.root,setuids,uid=abc,gid=abc,dir_mode=0777,file_mode=0777,...
0
votes
0
answers
672
views
Cannot mount CIFS share on boot (from /etc/fstab) if it depends on ip route
On a Debian Linux 10 I have a CIFS share defined in /etc/fstab:
//192.168.120.1/Share /mnt/Share cifs credentials=/etc/fstab-share.password,auto,nofail 0 0
On system boot this share does not mount ...
0
votes
0
answers
244
views
Unable to mount cifs: return code -61
I am trying to mount a dfs windows share and am getting an error when trying to do so. I have been unable to find any references to the specific error code I keep getting. I am pretty sure it has to ...
2
votes
0
answers
203
views
Problem with files on a mounted CIFS filesystem
We do have several servers (CentOS 7) with the same CIFS storage, and have an issue with the files created on one server, and unstable after that.
The process is
server1 is creating data on /DATA/...
1
vote
0
answers
86
views
can't stat file more than once?
So I've got a bizarre error that occurs when I use ffmpeg.ffprobe on an MP4 file that is hosted my NAS.
When I login to a shell and switch to any directory on my network storage that contains a MP4 ...
0
votes
2
answers
103
views
Efficient way to move similarly named log files into multiple directories
I have a directory on an CIFS share with 10000+ files that contains a number of server log files in the format CCLLLTTTFFFFNNN YYYY-MM-DD at a minimum.
Where:
Server name consisting of:
CC = ISO ...
0
votes
2
answers
234
views
Unable to change files/folder attributes on NAS sharing through samba server
My situation:
Client (Windows 10) -> Server (Debian 10 / Samba Version 4.9.5-Debian) -> NAS (Lenovo ix2)
From Client (Windows 10), I can create, rename, delete, change files and folders ...
2
votes
1
answer
2k
views
How do I connect to a smb (samba) share using midnight commander?
After I select left/SMB link... and enter the urn and user name and password I see this error message
Cannot chdir to "/smb://host.network/share"
I've tried different variant of the urn
smb:...
0
votes
1
answer
40
views
Can't write to guest cifs partition
When I try to write to a network CIFS drive I consistently get
~/RetroPie/roms $ touch test
touch: cannot touch 'test': Permission denied
The network drive is an LVM volume mounted on one raspberry ...
1
vote
1
answer
110
views
No longer able to mount NAS using CIFS
I am following notes made previously on mounting my NAS on my Debian system:
sudo mount -t cifs -o user=***,password=***,vers=1.0 //NAS_IP_ADDRESS/NAS_DIR /mnt/NAS
This is generating the below error:
...
0
votes
1
answer
348
views
Cifs share on Windows host disconnects, but can still be reached using smblient
My small home network includes a Wandboard running Arch Linux ARM and a Windows 7 desktop. The Linux box mounts a cifs share hosted on the Windows 7 machine at boot with no problem. But after a ...
1
vote
0
answers
233
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.
...
4
votes
0
answers
59
views
Why usual commands can't see a file within a cifs mounted directory?
I have a case where an existing file within a CIFS mount hosted DELL/EMC Unity appliance can't be seen by ls, find or tree. Only giving the absolute path of the unseen file makes ls and other commands ...
1
vote
1
answer
195
views
Building ksmbd on Debian Buster (+bpo)
I am trying to build the ksmbd kernel module. I tried the tag version:
$ wget https://github.com/namjaejeon/ksmbd/archive/refs/tags/3.2.1.tar.gz
$ tar xvfz 3.2.1.tar.gz
$ cd ksmbd-3.2.1
$ make
[...]
...
0
votes
1
answer
764
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,...
3
votes
1
answer
195
views
How does mount know that it's a cifs mount without -t?
So this command: /bin/mount -o soft,cache=none,rw,nosuid,noexec,pass="" //$ServerIP/share $LocalDir works, but I thought it'd need -t cifs added.
I see the man page says
If no -t option is ...
5
votes
2
answers
864
views
Unable to rename files in samba share
I'm accessing a samba share on a Windows Server 2019 from a PC with an updated Debian 10 buster OS with the command:
sudo mount -t cifs -o vers=3.11,username=myname,uid=1000,gid=1000 //the.server/some/...
1
vote
1
answer
198
views
mkdir says folder exists even though it doesn't show with ls -a
Arch linux.
I have a CIFS mount from my NAS that was mounted with full permissions
# line from my fstab
//IP_ADDRESS/path/to/dir /path/to/local/dir cifs uid=my_user,gid=my_group,dir_mode=0777,...
0
votes
1
answer
1k
views
Can't mount samba-share: cifs_mount failed w/return code = -13
I have samba-server on debian-PC and I trying to connect to there from another ubuntu-PC:
mount -t cifs -o user=USERNAME -o noacl -o vers=2.1 SERVER MOUNTPOINT
After enter password, I received error ...
1
vote
0
answers
31
views
How to manage CIFS permissions on a mounted drive in linux?
I have copied over from a cifs mounted volume to another cifs mounted volume a large number of files. The 2 volumes were mounted locally with the following command:
# mount -t cifs -o username=<...