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
0answers
6 views

Better way to share zpool folder for of ease of implementation, management, flexibility, compatibility, & security: SMB or NFS (latest versions)?

I have zpool on OpenIndiana Hipster that I'd like to serve as a Restic backup target repo for my Raspberry Pi 3B+ running Raspbian Buster. Should I share the target folder using SMB 3.1.1 or NFSv4? ...
0
votes
1answer
17 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 ...
0
votes
1answer
14 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\...
0
votes
0answers
15 views

auto-mount of a samba share fails

I'm trying to have a smb share auto-mounted at boot time. This is the line I added to my /etc/fstab: //rockpro64/drive1 /mnt/r64_1 cifs _netdev,credentials=/etc/samba/credentials/rockpro64,uid=alex,...
0
votes
0answers
26 views

Two similar Linux vms need different cifs version for same share, why?

I have two similar RHEL vms and one cifs share coming from Netapp storage One vm can mount the share with vers=2.0, the other one gets "permission denied" and will only mount properly with vers=3.0 ...
0
votes
0answers
43 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//...
0
votes
0answers
27 views

Unable to joind a samba PDC

Recently I configured my Samba Server version 4.1.12 as a PDC (Primary Domain Controller) in Opensuse 13.2. Unfortunately I can't join the domain from my client machine based in Windows 7 and 10. On ...
1
vote
0answers
38 views

mount could not resolve address for Windows server in fstab

I am having problems permanently mounting a Windows SMB share in Lubuntu 18.04.3 Desktop. I have installed smb4k and gigolo, and created a mount point sudo mkdir /media/newmusic sudo chmod -R 777 /...
0
votes
0answers
15 views

How do NFS (and other file sharing) implementations guarantee file stat uniqueness?

The SUSv4-2018ed have the following 2 paragraphs in the specification for <sys/stat.h> header: Note that st_dev must be unique within a Local Area Network (LAN) in a ``system'' made up of ...
0
votes
0answers
17 views

Can't add shared printer from a Microsoft's Windows system to my Gnu/Linux box

I am trying to add a printer from a MS-Windows box shared over the network to my Gnu/Linux laptop (Pop_OS), however it does not accept my credentials or the user credentials of the MS-Windows box. I ...
0
votes
1answer
171 views

Samba multi user setup - step by step?

Tried it many times but never get the SMB sharing right on Unix. A minimal Debian file server, no GUI, just SSH... I always thought you set all the permissions in SMB and just found out you do it in ...
0
votes
0answers
31 views

Hyphens being replaced by colons on folder names

We are currently experiencing an issue in our Freenas SMB server where some of the folders that contain hyphens are being renamed with colons on it. This causes the folder names to be random ...
2
votes
1answer
164 views

Can't mount multiple shares from a Windows 10 machine on Linux

I have a machine (winten) running Windows 10 Pro that exports two shares (X and Y). I can mount either of those shares on my Arch Linux machine, but not both at the same time. The configuration in /...
0
votes
0answers
23 views

How can I deny access to certain subfolders contained in a folder using the samba service with debian 9?

I have the following shared folder structure with samba, and I need to grant users access to the main folder and all subfolders but deny access to an other contained subfolder, in a third level of a ...
1
vote
0answers
81 views

Issues interacting with Windows Shares without mounting

I am rebuilding a legacy system using Kubernetes, and do in some cases need to read and write files to Windows shares. I have tried working with our internal cloud providers to install various ...
0
votes
0answers
16 views

Mail pdf to smb printing queue

On the place were I work we have a printing system which consists on several printers around different buildings. All those printers are connected to some samba server. When we print, basically what ...
0
votes
0answers
16 views

lstat fails with EACCES even though all directories in the path have execute bit set

I am seeing lstat fail in strace (from smb when trying to share a readonly directory) lstat("/work", 0x7ffd8a904c00) = -1 EACCES (Permission denied) However, all the directories in the path ...
0
votes
0answers
16 views

Can't delete files created by Time Machine on smb share (not immutable)

So I was trying to set up Time Machine backups on an unraid smb share for my MBP and had to stop it midway. So I went into my share to delete the files, but I just can not: server@server:/backups/....
1
vote
0answers
14 views

Linux - How to find a file with a keyword on a Windows network share

I'd like to know how i can find a file from Linux cli with a keyword on a Windows network share. I've searched for find, but there's no network command. I've searched for smbtree, but I doubt if you ...
0
votes
0answers
194 views

Smbclient cli_push returned NT_STATUS_IO_TIMEOUT during file upload

Getting disconnected from remote server when trying to upload a file larger than 30mb. Following errors are: NT_STATUS_INVALID_NETWORK_RESPONSE closing remote file SMBecho failed (...
0
votes
0answers
504 views

Mounting SMB network share

I'm trying to mount an SMB share on my Chromebook which runs Linux, but I get a strange error cifs filesystem not supported by the system I did install cifs-utils, samba-common and samba user@...
2
votes
0answers
176 views

Samba shares - How to restrict access to Active Directory groups

I'm working in an Active Directory domain environment and am trying to configure some Samba shares so certain directories on a SUSE UNIX server are accessible by Windows clients. Access to each share ...
0
votes
1answer
40 views

SMB Not Able to Use Date Command Substitution

smbclient //10.10.101.29/it -W WORKGROUP -U user --password pass -c 'put ./file_$(date +%Y_%m_%d).file ./folder/file_$(date +%Y_%m_%d).file' The above does not work & gives me an error stating: ....
0
votes
0answers
737 views

Samba: share is not accessible for AD groups

I have a CentOS server joined to an ID domain with realm(8) using sssd(8). I don´t have winbind installed, though. I can log fine with AD domain users into this CentOS server. I set up samba shares in ...
0
votes
0answers
688 views

cifs smb mount stale file handle

I am mounting an SMB share and I have finally got it to give no error but the folder I am mounting to then has an issue. ls: cannot access 'cteratest': Stale file handle The fstab command sudo ...
2
votes
1answer
3k views

Can't connect to SMB shared Storage from Ubuntu 18.04

i have an external hard drive connect to my TP-Link router and shared using USB Share, i am unable to connect to this Share from Ubuntu, i can only see shared volumes but can't gain access. I can ...
0
votes
1answer
4k views

Set SMB2 protocol in Samba 3.6.6

I've decided to switch to the higher version of SMB in Samba (at least 2) - mostly because of the security reasons. I've tried to add to the smb.conf in the [global] section: client min protocol = ...
1
vote
2answers
449 views

How can I fetch file metadata on cifs mounted folder?

In our company we have a shared Windows folder. If I access it from Windows, I can pop up Properties menu of a file and find its metadata: who created it, last access times and so on. On linux I have ...
4
votes
0answers
2k views

mount error(2): No such file or directory - CIFS - Rasperry Pi

I am playing around with a share on my NAS being unable to mount a SMB share. Based on the ubuntu smb documentation the command for mounting a SMB / CIFS should be as following: sudo mount -t cifs -o ...
0
votes
1answer
2k views

can not set user write permissions to file in SMB mounted directory [duplicate]

I have mounted a Windows 10 directory so I can edit some files on my Windownz machine. sudo mount -t cifds //W10/Users ~/public/ -o username=bobby When checking the directories they all have the ...
1
vote
1answer
3k views

Cannot connect to Windows 10 via smbclient because of the wrong password

I downloaded the samba package from arch (https://wiki.archlinux.org/index.php/samba#Client) Then I enabled Network discovery as described in this article: https://websiteforstudents.com/access-...
0
votes
2answers
513 views

Merlin Asuswrt Cifs Smb Share cannot mount

After installing Merlin 380.70 on my asus router I cannot mount my USB-connected smb shares via cifs. I keep getting varying mount errors: 6 & 22 are the most common. I've tried changing the smb ...
3
votes
1answer
304 views

smb-share connection time increases each reboot on windows PE

We are currently developing a system that does automated BIOS updates for our computers. The system runs in Windows 10 PE booted via PXE-Boot. One of the first steps is connecting to a SMB-Share ...
1
vote
1answer
2k views

Allow write access for regular user on CIFS share

I want to mount one of my media folders of my Synology DiskStation (DS414J, DSM 6.2) on my laptop (Manjaro running on Kernel 4.17.18) via SMB/CIFS. I set up a DiskStation user called media that has ...
2
votes
1answer
7k views

SMB protocol min max values available?

I am running Samba 3.6 in SLES 11.4. I recently added in /etc/samba/smb.conf in the [global] section the following min protocol = SMB2 max protocol = SMB2 this was done to allow communication with ...
0
votes
0answers
2k views

Connect to Windows shared folder via GUI application?

I have a Windows machine in my local network and want to access files on it. I've made some locations on this computer shared. When I'm using smbclient (console application) or mount utility with CIFS ...
8
votes
3answers
11k views

Linux to Windows - can list smb shares but cannot connect

This is a really weird one and all the research I've done so far isn't panning out. I'm trying to connect to a Windows share from CentOS 7.5.1804 to Windows Server 2008 R2 (no snickering and let's ...
0
votes
1answer
2k views

mounting smb shares without root permission

How do I mount network shares without root? It has been discussed a lot but I found no useful answers (sudo not acceptable, fstabs not acceptable, mount.cifs does not work without root either). The ...
1
vote
1answer
6k views

Linux based SMB share: can access only using owner account from Windows [duplicate]

In Windows when I connect using test_reader account I can access with no problems. However when I use peter account it gives me Access Denied. I did some testing and if I change share folder ...
1
vote
1answer
327 views

Samba login fails

I setup an Samba server and I tried to connect to it from a machine in the same VLAN, I can see the shares, and it asks me for a password but after that it fails with the following 2 lines in the LOG: ...
0
votes
2answers
491 views

QEMU: Problems when connecting Tails-VM to a Samba network share on host-machine

I run Tails in a virtual machine on a Debian 9 host. To access a shared folder on the host via Tails, I try to set up a Samba-exchange. While this approach worked completely fine in Debian 8, it does ...
1
vote
1answer
2k views

Closed - Unable to delete file from mounted location (SMB share) as root

UPDATE: It seems like the problem was caused because of another service which had nothing to do with smb. Apologies for not having a proper resolution and I am just closing the issue. I have mounted ...
1
vote
1answer
1k views

smbget gives always “File exists” [closed]

I am trying to use smbget to fetch a file from a Windows share from the command line, and whatever I try, I get the same (useless) error message: [bf@localhost syntess]$ smbget -U username%password ...
1
vote
0answers
99 views

`cp` fails writing to file / directory while `cat >` and `echo` work fine

On a RHEL 7.2 based system I try to copy files to a smb mounted location: cd /target cp /tmp/foo . This fails with this error message: cp: cannot create regular file ‘./foo’: Operation not ...
0
votes
1answer
3k views

Multiple Paths in Single SMB Share

I like to make a read only share for a user whom has access to several root folders in my fileserver. I don't want to create a bunch of shares for each folder, can I somehow add multiple paths in smb....
3
votes
0answers
17k views

GNU Samba server: check SMB version of exported and mounted shares

I have a NAS Zyxel NAS326 running on Linux acting as Samba server. I can't exactly say which Linux distribution, this is all I get from "uname -a": root@nas326:~# uname -a Linux nas326 3.10.39 #1 Fri ...
1
vote
0answers
73 views

Mount SMB share (usb in router) on Raspberry error 56

I'm having trouble mounting my USB in router on my Raspberry. Status so far: I can access the drive on both my windows machine and mac machine. I can access the drive on my raspberry somehow (...
0
votes
1answer
493 views

put oldest file in log.txt on smbclient

We have 94 PC's on 1 site. There is a folder that we need to check for the oldest file in that folder on each PC. I can run a .txt file with all the IP's in a loop, but I don't know how to check and ...
1
vote
0answers
1k views

Printing to CUPS via SAMBA shared printer slow

We have a Debian print server running CUPS. In CUPS we have a Raw print queue configured that connects to our networked printer via IPP. I've also shared this printer to our Windows users via a Samba ...
0
votes
1answer
3k views

problem with smbclient login

I have to copy a file from a linux server to a windows but i have some problems wth the smbclient's login because i need to do this automatically in a script. This command smbclient -U LR //10.123....