Hot answers tagged

51 votes

mount -t cifs: "Operation not supported", but can connect via smbclient

At work I encountered a similar problem. moun -t cifs just stopped working. Following mounting a CIFS/SMB resource and looking at the output of demsg, I found that adding the option vers=1.0 did the ...
NWMT's user avatar
  • 631
24 votes
Accepted

Getting Samba working in manjoro linux, daemon failed to start: Samba detected misconfigured 'server role' and exited.

It was a misunderstanding on my part. I don't need to start the samba.service. https://www.samba.org/samba/docs/man/manpages-3/ "samba(8) Server to provide AD and SMB/CIFS services to clients" ...
nelaaro's user avatar
  • 1,333
19 votes
Accepted

CIFS randomly losing connection to Windows share

I found an interesting related post here cifs mounted folder keeps disconnecting (ubuntu server), talking of a similar problem (same error, Samba shares). The relevant tidbit here, for following the ...
Rui F Ribeiro's user avatar
14 votes

Available min max values for SMB protocol

From the man page for the configuration file for the Samba suite in the "client max protocol" section: Possible values are : CORE: Earliest version. No concept of user names. COREPLUS: ...
Jeff Schaller's user avatar
  • 67.1k
11 votes
Accepted

Very slow CIFS/SMB performace

I was just puzzling over a similar sounding CIFS performance problem. Transfers to and from a Windows client and our Samba server had good speed, but downloads from the server to two Ubuntu machines (...
rrey's user avatar
  • 126
9 votes
Accepted

Smbclient asking for password

It should be possible to do it. From man smbclient : -U|--user=username[%password] Sets the SMB username or username and password. If %password is not specified, the user will be ...
magor's user avatar
  • 3,742
7 votes
Accepted

Determine SMB shares I have read and/or write access to

You had much of the work already in place. Reading the man page for smbclient would have given you the -c <command> parameter, which can be used to provide one or more commands directly rather ...
Chris Davies's user avatar
7 votes

Mount an hard drive at start-up

To have a device mounted on startup, you need to edit /etc/fstab as root. The format for /etc/fstab is as follows: # <file system> <mount point> <type> <options> &...
Peschke's user avatar
  • 4,118
6 votes

How to make a cifs/smb mount ignore umask?

The noperm fstab option allows all users to read and write to the CIFS mount (which is what umask=000 would have done if it was supported by mount.cifs). Example line in /etc/fstab: \\computer\UNC\...
Daniel's user avatar
  • 668
6 votes

How to check if Samba is installed

In SMB version 4.11.6-Ubuntu, run the following command: systemctl status smbd
user311086's user avatar
6 votes
Accepted

Samba not starting on Ubuntu Server 16.10

The issue seems to persist in 17.04 (at least for me) This worked for me: sudo systemctl disable nmbd sudo systemctl disable smbd sudo systemctl unmask samba-ad-dc sudo systemctl enable samba-ad-dc
Andrei Pop's user avatar
5 votes

Setting SMB 2.0 as default for mount operations

Unfortunately the kernel's cifs filesystem module does not read /etc/samba/smb.conf at all. The CIFS client module that allows mounting of Windows fileshares is completely separate from Samba. The ...
telcoM's user avatar
  • 94.5k
5 votes
Accepted

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

From the question we see that it can be mounted successfully and the access to files with smbclient is ok. I suggested to add noserverino to mount options. noserverino handles cases where the server ...
binarysta's user avatar
  • 3,022
5 votes

cifs mount error(2): No such file or directory

I had similar issues and needed to install package keyutils
cranium's user avatar
  • 51
4 votes

Mounting SMB3 share with encryption fails: mount error(13): Permission denied (Synology)

SMB3-encrypted shares are supported since kernel version 4.8.0-54.57. As cifs driver is a part of Linux kernel, it is updated accordingly and you need to upgrade to the latest kernel to overcome ...
Suncatcher's user avatar
4 votes

Copy files without encryption (ssh) in local network

If you want to transfer entire file structures use tar. in the receiving system: []# nc -l 2020 | tar xvf - then on the sending system: []# tar cvf - | nc dst.hostname.net 2020 Watch the the ...
user288759's user avatar
4 votes

Copy files without encryption (ssh) in local network

it has been some time since the last update, some ciphers have changed, and at least on freeBSD, the blowfish is no longer available. The fastest cipher I found with current ssh installations is -c ...
Elmars's user avatar
  • 41
4 votes
Accepted

How to force Samba to use SMB 3.0?

Use server min protocol option in smb.conf: This setting controls the minimum protocol version that the server will allow the client to use. Possible values are listed in documentation for server ...
sebasth's user avatar
  • 14.8k
4 votes
Accepted

How to enable unix file permissions on samba share with smb 2.0+

Samba does not yet support UNIX extensions for SMB v2.0+. It is being worked on. [lists.samba.org, 10/2017] They say that when UNIX extensions will be finalized, the Samba implementation is ”not ...
myrdd's user avatar
  • 479
4 votes
Accepted

How to view and browse windows shared folders in entire local network?

For a terminal based solution, you can use nmblookup -S '*' which shows all Samba shares in your broadcast domain. More can be found here.
ndookie's user avatar
  • 56
4 votes
Accepted

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

I do not have a solution unfortunately, but I do have a workaround that might suit your purposes: This only seems to happen with SMB versions 3.0 and greater, so if you use vers=2.1 instead of vers=3....
Charles Ellis's user avatar
4 votes
Accepted

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

I finally found the solution: [global] workgroup = WORKGROUP netbios name = NAS log file = /var/log/samba/log.%m max log size = 1000 logging = file panic action = /usr/share/samba/panic-action %d ...
Basj's user avatar
  • 2,489
3 votes
Accepted

where does lpd and lpr log error and messages?

CUPS replaces lpd and other commands, that's why you see some *.pre-cups files in /usr/sbin. Usually lpd is configured via /etc/printcap, and more specifically logs will end up in the accounting file ...
Zé Loff's user avatar
  • 2,114
3 votes

Determine SMB shares I have read and/or write access to

Maybe SMBmap can help you with this tastk. Its author developed it precisely for that purpose. $ python smbmap.py -H [targetIP] -u [user] -P 445 [+] Finding open SMB ports.... [+] User SMB session ...
zuazo's user avatar
  • 3,042
3 votes

How can I access files of an SMB share if I have the IP?

smbclient -N -L YOUR_TARGET_IP This will list all the shares in SMB service.
Ashwath Halemane's user avatar
3 votes
Accepted

Allow write access for regular user on CIFS share

Your share has world-read access, hence anyone who can access the mount point can read the contents. When your system mounts the share, it maps the share owner (which has r/w access) to root, hence ...
sebasth's user avatar
  • 14.8k
3 votes

Samba has a module vfs_full_audit, what does each object actually mean within the module?

Unfortunatelly, the full audit module changed a lot (and the docs didn't kept up) and now It just bombs you with unuseful data. IMMV, if you want more than unlinkat and renameat (delete and rename), ...
Fernando José Esteves de Souza's user avatar
3 votes
Accepted

How to connect to old Samba-server with new smbclient?

After adding the following line to the [global] section of the smb.conf, I was able to get Samba-4.13 to connect to this device: smb.conf [global] client min protocol = NT1
Mikhail T.'s user avatar
3 votes
Accepted

Securing Samba on debian 10

Having your Samba/CIFS ports open to the Internet is a very bad practice regardless of your Samba settings. Samba runs under the root user (needs to) and if there are remotely exploitable ...
Artem S. Tashkinov's user avatar
3 votes
Accepted

mount smb share after wireguard with fstab or systemd

I suspect the interface setup by wireguard isn't ready just because the service started. Your issue may be related to this in which case the solution is to wait for the virtual device. After=network....
A. Que's user avatar
  • 623

Only top scored, non community-wiki answers of a minimum length are eligible