Questions tagged [samba]

A free software re-implementation of the SMB/CIFS networking protocol, which provides Windows file and print services. Use this tag when your question involves Samba shares, mounts, or printers.

Filter by
Sorted by
Tagged with
1
vote
2answers
9k views

What does browseable in samba configuration mean?

I tried the option browseable=no in my /etc/samba/smb.conf file. But after it was mounted, that share was still visible to other users through the mount point. But as from what I have learnt, setting ...
2
votes
0answers
364 views

What is the use of credentials file in multi-user samba? [closed]

I am trying to understand how samba works. I found out there are two types of sharing, single-user and multi-user. I am confused about what is the specific difference between the two? Does single-user ...
0
votes
1answer
2k views

How do i use Samba Share ACL & Posix ACL together on linux

I'm looking Share ACL & Posix ACL (File permission) combination examples. But I couldn't find an example how can i use both together... I was using "chmod A+" on solaris. What I should use on ...
0
votes
1answer
496 views

How to rename multiple filenames using find/rename

I have on a Samba server lots of files in directories/subdirectories containing special chars. The problem is that, the files (containing a special chars) are not visible when I try to view files ...
3
votes
0answers
717 views

“Read-only file system error” on Samba share, alternative share with identical options working (Linux client)

I'm experiencing a very strange problem which I've been trying to solve in the past few days and I already tried various methods of resolution to which I will get to in a moment. My home network ...
1
vote
0answers
651 views

Permissions of subdirectories on Samba

On a CentOS7 system I installed samba to create a share for windows clients using the following steps: mkdir /samba/myShare Then I definded /samba/myShare as my shared folder via the smb.conf file. ...
0
votes
1answer
277 views

Totally unreadable and inaccessible dir?

I am getting this output from ls -a for a specific dir` d?????????? ? ? ? ? ? dmsnl857-vm This was a mount dir according to my /etc/fstab //192.168.33.55/DMS /home/...
1
vote
1answer
760 views

Samba - Allow users to change its own password

I have an Ubuntu 16.04 LTS server with a bunch of users, all having accounts on it and their home directories being available via Samba. I need to allow each user to be able to change its own Samba ...
2
votes
1answer
2k views

Change permissions for mounted veracrypt drive in linux

I have a server with a mounted veracrypt volume (inner is NTFS, but tried ext4 with same results) and want to share it inside my local network with other computers (mostly windows). The problem is, I ...
1
vote
0answers
403 views

Preserve cifs file permissions in samba share

I have run into a weird samba/cifs problem with file permissions. Im running ubuntu and have a cifs share configured in my /etc/fstab //server.addr.com/folder/myFolder /home/Tommy/myCode cifs ...
1
vote
1answer
8k views

default passdb backends in Samba

The smbpasswd manual state the following: "Note that the default passdb backends require the user to already exist in the system password file (usually /etc/passwd), else the request to add the ...
0
votes
1answer
553 views

How to auto-connect to samba drive without pop-up

Each time when I first open a Samba drive in Elementary OS it shows the following pop-up: Then I must click on the "Connect" button. Is it possible that it connects automatically when I click on it, ...
0
votes
1answer
1k views

How to prevent: `CIFS: Unknown mount option “defaults”`? [duplicate]

Context: I want to enable a normal user to mount a certain cifs mount on his system (Debian Strech). I therefore added the following entry in /etc/fstab (note the added ,user in the options): //...
0
votes
2answers
2k views

Shell script to set password for samba user

I would like to set a password for setting up samba share directory using a shell script. I wrote the following script test.sh: #!/bin/bash pass=123456 (echo "$pass"; echo "$pass") | smbpasswd -s -a ...
0
votes
1answer
132 views

winbind using wrong netbios service code in queries

For the past day, I have been trying unsuccessfully to let my Ubuntu VM be able to resolve NetBIOS names on the local network, to find some non-computer devices (Printers, special barcode machines, ...
1
vote
2answers
3k views

samba file sharing gives 0x80070043 in windows

I have samba set up on ubuntu server, and trying to share folders inside sharedfolders at the root directory. However, I get this error 0x80070043 in windows. root@ubuntu:~# ls -lh sharedfolders/ ...
1
vote
0answers
654 views

Cannot export samba user with pdbedit. How can I backup my samba users?

I have created the samba user pi and verified this here: raspberrypi:~$ sudo pdbedit -L pi:1000: When I try to export it to the file samba-users.backup I get this error: raspberrypi:~/pi$ sudo ...
-1
votes
1answer
719 views

Samba vulnerability (CVE-2017-7494) patch check

I am running Centos 6.9 with Samba version 3.6.23. I have yum-cron auto-update enabled. How can I tell if the patch has been applied for the (CVE-2017-7494) vulnerability?
0
votes
1answer
116 views

Samba open file permissions

I have an open Samba share folder. I would like to know the correct file permissions to allow users to create, edit, and delete files. I tried 755, the problem I encountered was that users could ...
6
votes
2answers
3k views

Setting SMB 2.0 as default for mount operations

Using a mount -t cifs -v <address> returns with Host is Down error when connecting to a server running SMB 2.0 (with SMB 1.0 disabled). A workaround is to specify vers=2.0 to the argument list ...
73
votes
2answers
23k views

“WannaCry” on Linux systems: How do you protect yourself?

According to a rapid7 article there are some vulnerable Samba versions allowing a remote code execution on Linux systems: While the WannaCry ransomworm impacted Windows systems and was easily ...
0
votes
1answer
438 views

error installing samba CentOs

I'm trying to install samba in a server CentOs 6.8, but send me an error : /home/instaladores/samba-4.6.3/source4/lib/tls/wscript:51: error: Building the AD DC requires GnuTLS (eg libgnutls-dev, ...
2
votes
0answers
1k views

Nemo fails to open SMB share: “Connection timed out”

Recent events forced us to upgrade our windows share servers to use Samba version 3.0. Nemo, the file manager, cannot open the windows network share, producing an error on every attempt. Using both ...
1
vote
1answer
285 views

Creating subdomain for Samba to use url instead ip address

I'm new to Linux, but I already have a grip on the basics. I'm creating a simple local web which runs DHCP server, samba server, ftp server, webmail server (I use squirrelmail), DNS server and web ...
1
vote
0answers
219 views

Gnome can't mount remote samba share without asking for a domain

On the standard Fedora 25 Gnome desktop, I have a remote samba share to which I can connect on the command line using: mount -t cifs -o username=myuser -o password=mypass //path/to/shared/ /local/dir/...
2
votes
0answers
352 views

smbpasswd resets password, but not expiry date

I'm a DBA using VPN and SSH to connect to a client's Linux system, on which resides the database. They are primarily a Windows shop, thus my gig to manage their database on what I believe is their ...
1
vote
1answer
873 views

Cifs (samba) Share permission issue (unix + zfs)

I want to give Share permission to my cifs share but I guess unix only able to give file permission like: /usr/bin/chmod -R A+group@:full_set:fd:allow pool/test This is the bad way because I ...
1
vote
0answers
536 views

Lost samba connection on Windows 10 machine after samba update

I have an Ubuntu based server, that I use as a fileserver. I have three samba shares with three different users that I have successfully connected to with my Windows 10 machine (through Hamachi). ...
0
votes
1answer
409 views

possible to copy from one remote computer to another remote computer using smbclient?

So I know how to use smbclient to copy a file from a remote server to my local computer similar to this: sudo smbclient //192.168.105.250/sharename --user='<user>%<pwd>' -c 'cd import\...
2
votes
0answers
598 views

Question marks in filenames and Samba

I have smbd version 3.6.6 on Linux and mount the share on a FreeBSD system with mount_smbfs. When I try to copy (cp) a filename containing a question mark, I will get the error: No such file or ...
2
votes
0answers
2k views

intermittently cannot access CIFS <path>: “Host is down”

We have 2 Amazon ec2 AMI linux instances (2017.03) that have mounts pointing back to different windows servers in our office and other locations using cifs. These mounts have been up for about 2 ...
1
vote
0answers
240 views

Disable samba home directories

I've been asked to determine the absolute minimum attributes for Samba accounts on AIX. For instance, setting the local account shell to /bin/false in order to prevent shell access. That's feasible. I ...
5
votes
1answer
8k views

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

I recently tried to start samba on manjoro linux. systemctl start samba.service systemctl status samba.service ● samba.service - Samba AD Daemon Loaded: loaded (/usr/lib/systemd/system/samba....
3
votes
2answers
531 views

Resolve netbios-name and pass it to mount.cifs in script

I have a script that mounts all the shares from my Windows computer. It's basically: mount.cifs //192.168.0.7/pictures ~/otherpc/pictures -o user=me,domain=mynetwork,password=12345,vers=3.0 ..for ...
10
votes
3answers
1k views

Rename file with weird name on Samba mount

I want to rename file with weird name to something reasonable, however I'm not able to :/ $ mv *_000c.jpg 000c.jpg mv: cannot move '?j?Z?R?C1_000c.jpg' to '000c.jpg': No such file or directory I've ...
2
votes
1answer
479 views

Cluster filesystem choice for reading/writing large number of small files

I'm setting up a small Linux cluster for my laboratory. Current we have an login node for job submit and 3 computational node, and they are connected by Gigabit LAN (sadly no infiniband). At first I ...
3
votes
0answers
82 views

Make read-only directory accessible to other users

I have mounted a read-only share via gvfs-mount to /run/user/60373/gvfs/smb-share. I would like to make other users read this share. The problem is that I can't set the permissions recursively as I ...
1
vote
2answers
3k views

Samba with multiple shares from the same server

Windows 10: I can't open more than one share of a server. Windows returns an error that the resource is not accessible. Example: I open up \\raspberrypi\one. Now I try to open \\raspberrypi\two and ...
4
votes
0answers
171 views

Notification when someone is accessing my Samba/CIFS share

Is there any way I can get notification (preferably Gnome notification) when someone (privileged) is accessing my Samba/CIFS share? If there is no such a tool, I need to implement one. It's important ...
0
votes
1answer
405 views

Samba share security changes: read-only and IP/MAC restrictions

I have a samba share and I want to make some changes for security. Today everybody can read and write my files. It's not safe. I'd like to do the these things: 1- set up for everybody just read files ...
1
vote
0answers
355 views

Fedora 25 NetBios/wins issues

I am trying to set up local hostname resolution on my Fedora machine. I have installed samba-winbind samba-winbind-clients pam_krb5 and then went through the procedure shown on: https://www.server-...
0
votes
0answers
90 views

Why does samba client need to have INPUT port open?

After I set up iptables INPUT policy to DROP on my desktop, my samba client there stoped working. I can understand that the samba server has to have some incoming ports opened, but why does client ...
0
votes
1answer
612 views

PHP Permission Denied

I have a raspberry pi running Apache2, PHP5 and Samba on it (so I can access the pi from my home network as a network drive). However, I have managed to change the apache2 running directory to /...
2
votes
1answer
3k views

APT - How to fix installation of package “samba”

I'm trying to install samba package on Debian 3.16.39-1 but I'm running on unmet dependencies error. This is output result of : apt-get install samba Reading package lists... Building dependency ...
1
vote
0answers
511 views

Symlinks within a mounted cifs is appearing as directories

I have mounted a cifs(samba) share, and noticed that all the symlinks within the share are being shown as directories in the share. I have set unix extensions = no, in Samba. Side note, by setting ...
-1
votes
1answer
2k views

Samba file sharing is not working!

Here is my current Configuration: I added this line on my /etc/samba/smb.conf [share] comment = Samba Server browsable = yes path = /srv/share/samba guest ok = yes read only = no create mask = 0755 ...
1
vote
1answer
447 views

problems with Samba share

I run Samba on my Debian NAS and have two problems. Samba run fine and I can upload and download files without any problems. The first problem: I have a folder /mnt/disk/public/JDownloads/ in that ...
1
vote
0answers
145 views

Multiples cifs shares with noauto on same mountpoint only works with root

I have these entries in /etc/fstab //server1/share /mnt/folder cifs rw,uid=1001,user,noauto,username=user,password=password 0 0 //server2/share /mnt/folder cifs rw,uid=1001,user,noauto,username=user,...
1
vote
1answer
349 views

Samba authenticate users against Windows Domain Controller (without /etc/nsswitch.conf)

I want to setup a samba server that offers shares. The only thing it should do is: Authenticate access to the shares against an existing windows domain controller. The things I want to avoid is: ...
1
vote
0answers
213 views

Sync UID/GID on SLES 12.1 with winbind connected to AD

I have multiple SLES 12.1 Servers which I joined into the AD Domain via net ads join -u <OU_MANAGER> osName='SLES' osVer='12.1' createcomputer="<OU1>/<OU2>/Servers. It is important ...