Questions tagged [samba]
Samba is the standard Windows interoperability suite of programs for Linux and Unix.
938
questions
0
votes
1answer
30 views
Permission denied for www-data on samba folder
I try to access a samba folder via PHP under Ubuntu 18.04.
The structure is
.\media\documents\customers...
All files have 0755 set as permission and are owned by smbuser. When I read the directory ...
0
votes
0answers
3 views
Ubuntu Available protocols and prefix list empty under server addresses
When I tried to connect to another Ubuntu pc by using Samba. But when I go to 'connect to server' I can see any available protocols list, and I can't use any protocol either. How can I fix this issue?
0
votes
0answers
16 views
pysamba won't connect to port 1000 but will connec to 445
I have an issue with pysamba it won't connect to the server
File "/app/Common/FileStore/file_store.py", line 211, in _get_connection\n connected = connection.connect(self.server_ip, 1000)\...
0
votes
0answers
9 views
Unable to access mhddfs virtual mount with a samba share
I've made a virtual volume using multiple disks and partitions using mhddfs which seems to have worked, however when trying to share this mount with samba I am unable to connect from windows due to ...
0
votes
0answers
25 views
Error: NT_STATUS_ACCESS_DENIED Bad SMB2 signature for message
I am trying to shut down a windows device from Linux machine remotely.
what I have done:-
At windows end:Enabled the remote registry service.
On Linux machine: Installed samba-common
This python ...
0
votes
1answer
35 views
Using C++ to read a file on a remote Linux-type server
I am building a small network of Raspberry Pi's using Raspian with samba file sharing. I want each to be able to read/write small text files to the others, to provide a very simple method of process ...
1
vote
1answer
29 views
Connecting to samba server from spring boot application
I have a spring boot app and a samba server running in a kubernetes cluster. How I can connect to this server from my app? Is there any gradle library for samba server? Explanation will be appreciated....
-1
votes
0answers
17 views
SAMBA server, automaticaly move files from a folder to a subfolder
we have multiple printers in our company with "scan to shared folder" option set up (the folder si called "SCAN"). The folder "SCAN" is stored on a SAMBA storage server.
...
0
votes
0answers
15 views
Rsync > Do not sync contents of a Windows Shortcut
I am using rsync on Windows 10 with the help of Git Bash.
I have an rsync command that backs up my Windows User folder.
rsync -rtzhv --info=progress2 --exclude-from='/c/Users/rudiger/Scripts/rsync/...
1
vote
0answers
25 views
issue with filehandling (EBADF with fopen/fwrite) with samba-share
for many months I used fopen(...,"rw") for read/write-access to some data files (*.DBF) and could write specific records at every position I wanted. (fseek() .. fwrite() etc.)
Now I get the ...
1
vote
1answer
63 views
How to connect to samba server from container running in kubernetes?
I created a kubernetes cluster in amazon. Then I run my pod (container) and volume into this cluster. Now I want to run the samba server into the volume and connect my pod to samba server. Is there ...
0
votes
0answers
32 views
Nextcloud: files shared from SMB become unavailable when user is logged out
I'm having an issue with nextcloud + SMB + sharing:
I have nextcloud running inside a docker container, with storage attached via the "external Storage"/SMB plugin. (from the same machine, ...
0
votes
0answers
37 views
Mount Windows Sever (2012) smb1 on Ubuntu (18.04)
I am trying to mount our SMB shared Raid with /etc/fstab with very little luck.
(The raid is a Tiger Technology raid, from appx 2015, running what I believe Windows Server 2012, we don't have access ...
-1
votes
1answer
13 views
Ubuntu - Add user to samba via shell script
I want to add a user to samba on my Linux Ubuntu Server.
I used following script:
#!/bin/bash
username=$1
pass=$2
(echo "$pass"; echo "$pass") | smbpasswd -s -a $username
Than I ...
0
votes
0answers
19 views
Can't map Samba share from CentOS to Win10 - error 67 “The network name cannot be found”
I've just followed a guide on installing Samba, adding a samba user and configuring the smb.conf file
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
...
-1
votes
0answers
31 views
Mount samba server with different port on Windows
I have to attach a samba server running on port 22139 to a Windows machine. On Linux, I could easily use this command:
sudo mount -o username=user,password=pass,port=22139,uid=1000,gid=1000 //...
0
votes
0answers
25 views
How can i fasten my software raid nas on my raspberry pi 4?
I connected 3 Toshiba 1TB 2.5" drives over an USB3.0 Hub with external Power Supply with my Raspberry Pi 4 (4GB Version)
With my Raspberry Pi 4 (4 GB Ram) I build myself a Software Raid (MDADM).
...
0
votes
1answer
17 views
Samba(v 4.10.16) win10 can't open the files(like .xlsx .pptx) that has set extended attribute by setxattr() in centos7
Please forgive my broken English
I try to use setxattr() to sets the value of the extended attribute for some file, the code is like that:
int set_scl(string file_name, char scl)
{
char scl_data[...
0
votes
0answers
12 views
Is it possible to configure Samba for multiple domains in forest?
I have 3 AD DC on Samba and wants to migrate all domains in one forest.
How can i add multiple domains?
0
votes
0answers
11 views
Exclude local directory from samba
I am currently connecting to my digitalocean directory with pathfinder using samba. Additionally, I am connecting via SSH using iTerm2.
Here is my SSH command:
iTerm via ssh : ssh -R localhost:...
1
vote
1answer
66 views
Windows share smb connection hangs on Ubuntu 20.04
I have a VPN restricted share network on a server (Win 10), and after I connect to VPN and try to connect to that shared network on my Ubuntu 20.04 client (Ubuntu Desktop) via GUI. By GUI, I mean ...
0
votes
0answers
10 views
How to change domainsid on samba ad-dc
I'm migrate domain controller from old server to new server. And after I search how to make user not rejoining to new server domain the solution is domainsid must be same with old domaincontroller on ...
0
votes
0answers
15 views
Strange samba server behavior with RHEL 7.9
We had a NFS share working fine with samba on RHEL 6.
The samba share is integrated with active directory authentication using winbind
Now we are migrating to RHEL7 and noticed that with same settings ...
0
votes
0answers
13 views
Track filesystem events triggered on Windows Server on a network drive mounted by Samba
I need to track files open/creation/deletion, directories creation/deletion and permissions/ownership changes triggered by Windows Server 2016 users on a network drive mounted by Samba. The real ...
0
votes
0answers
11 views
Slow file transfer samba (centos->windows)
I'm using an interface in Windows which reads data from Centos 7 with TCP/IP with samba. File sizes are very small (like 500KB for each). How can I speed up the process. It's x10 slower than reading ...
0
votes
1answer
29 views
Connecting to on prem SMB share via Azure On Premise Data Gateway
I am researching on porting some on-prem integration workloads over to Azure. The primary tools for me are the Azure On Premise Data Gateway (OPDG) and Azure Logic Apps.
Most of the integrations ...
0
votes
0answers
21 views
MacOS SMB Bug when connection to samba server lost
Sometimes the Finder Application is not responding anymore when my Mac lost the connection to a samba server.
For example, when I am connected to my wifi and to a samba server, the Finder Application ...
1
vote
1answer
28 views
How to make a samba server available on internet with SSH
I have a local samba server running on my raspberry pi that I use as a NAS to share files with other devices on the network. How can I use SSH to make this accessible (with a password) over the ...
0
votes
0answers
27 views
SMB2 - requesting *just* the FileNameInformation?
I am looking through the SMB2 specification.
https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-smb2/5606ad47-5ee0-437a-817e-70c366052962
I have a situation where I am unable to fetch a ...
0
votes
0answers
15 views
Mount CIFS sharedir local /mnt/share
im trying to mount cifs from my other samba listening dir.
eg: when i smbclient 192.168.1.9 -L pht -D /mnt/share # it prompt dirshare config
Enter WORKGROUP\pht's password:
Sharename ...
0
votes
0answers
197 views
smbclient NT_STATUS_LOGON_FAILURE with “Cannot do GSE to an IP address”
tl;dr smbclient -I 1.2.3.4 '\\hostname-abc\share1' prints Cannot do GSE to an IP address with final status NT_STATUS_LOGON_FAILURE. What is GSE?
Running the following smbclient command
smbclient -I 1....
0
votes
1answer
20 views
Setting up a Share Using Windows ACLs (Samba)
i have some trouble with this guide https://wiki.samba.org/index.php/Setting_up_a_Share_Using_Windows_ACLs#Adding_a_Share
I don't understand how i should give a AD group rwx rights because there are ...
1
vote
1answer
69 views
WSL+samba+git: “error: insufficient permission for adding an object to repository database .git/objects” / git-clone / git-add permission errors
I'm working on Win10 using the WSL1 (Windows Linux Subsystem) with Ubuntu 20.04.1 LTS. I have a Samba (1.0) Network Share on which I want to create my git repository via my Ubuntu Terminal.
christian@...
0
votes
0answers
7 views
detecting network shares in a python script
I'm looking for a solution on how to detect network shares (Samba, NFS, AFP) in a python script running on a Debian platform. Is there any generic solution to detecting network services (maybe ...
0
votes
0answers
8 views
Is it possible for Samba to make backup copies of files and/or hook into a Samba file change event without using inotify?
I would like to make it so anytime someone modifies a Samba file from a client, my samba server makes a backup of the original file. I am not able to figure out if either of these is possible:
Have ...
1
vote
0answers
32 views
How to build libsmbclient.a
I want to build libsmbclient.a. This library must then be statically included in the C++ project. I see there is wscript_build in samba/source4/torture/libsmbclient. But this script build module, not ...
0
votes
0answers
66 views
Samba reporting not enough free space but getting zero bytes folder after access with MAC system
I have configured the Samba server on CentOS 7 and assigned 1GB quota to a shared directory. When I am accessing it from the Mac system and trying to copy approx 2GB file then getting error of having ...
0
votes
0answers
7 views
Files appearing as directories on samba share when I copy/move files locally
I have an Ubuntu 20.04 LTS with Samba installed on my "Server" laptop. This is my samba configuration:
[global]
workgroup = WORKGROUP
server role = standalone server
map to guest = bad user
...
0
votes
0answers
10 views
Permission error when moving file to local samba share - Debian 10
On a Debian 10 machine, using the following code written in python, I am attempting to copy a file to new location
import shutil
shutil.copy2('/nzbTMP/completed/somemovie.mkv','/media/TV/')
where /...
0
votes
0answers
65 views
How to enable TLS over Winbind/Samba LDAP authentication
What are the options i need to use in smb.conf for enabling the TLS for AD authentication.
My Windows AD already having the CA cert installed.I can get that through the openssl command as well.
ldap ...
0
votes
1answer
279 views
Permission denied when opening folder on Raspberry Pi Network Attached Storage (NAS) with VS Code Command Line Interface (CLI)
I installed Raspbian Lite and Samba on my Raspberry Pi 4b.
Below is my smb.conf file.
[global]
workgroup = WORKGROUP
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
...
0
votes
1answer
210 views
Permission denied when installing Anaconda3 on Raspberry Pi Network Attached Storage (NAS)
Samba
I installed Raspbian Lite and Samba on my Raspberry Pi 4b. I access the Raspberry Pi from a Linux (Ubuntu 18.04.5 LTS) client. I am using bash and ufw is inactive on both machines.
Below is my ...
0
votes
0answers
56 views
Samba permissions with a mounted drive on debian
I'm setting up a NAS as I have may times before, but for some reason I cannot get permissions on the directories to work the way I want them to this time around. I want to be able to access and play ...
-2
votes
1answer
115 views
Issue on bash script (quote issue?) smbclient command not found?
I am trying to make a script to download a folder/file via a samba server and then to move it to the desired directory. I did this (script attached)
but the commands are not interpreted correctly ...
#...
-1
votes
1answer
57 views
Can't ssh to cygwin in a domain from Linux and Mac
Following this page I successfully configured Cygwin sshd in a Windows 10 computer running as a member of a Windows(Samba) domain.
I can ssh to that machine from a Windows 10 inside the domain and ...
0
votes
1answer
35 views
Docker - mount cifs volume without subfolder
Is it possible mount CIFS volume root folder?
Something like this:
my-storage:
driver: local
driver_opts:
type: cifs
device: '//IP-address'
o: '...
0
votes
1answer
37 views
Editing files in samba directly using Linux?
I have a samba host computer where the remote files are located. I want to edit those files from my laptop without copying them first just like on windows. I am using VS Code on Ubuntu and same on ...
0
votes
0answers
51 views
jcifs lib Transport disconnected while waiting for connection
Im trying list up the files in shared folder on Window 10
This is the code .
try {
CIFSContext base = SingletonContext.getInstance();
CIFSContext authed1 = base....
0
votes
0answers
17 views
Can Linux read an encoded credentials file for Samba mount?
I have an entry in the fstab file which mounts a samba share. The credentials are stored in a text file in plain.
The entry in the fstab file is:
//10.1.2.3/smb-share /mnt/smb-share cif
credentials=/...
2
votes
0answers
241 views
Error with the Zerologon POC on Samba AC DC
I have a school projet that require me to emulate the CVE-2020-1472 (Zerologon) on a local environment.
I am currently trying to test following github script but I am facing some issue that I haven't ...