Skip to main content

Questions tagged [samba]

samba is an re-implementation of the smb network sharing protocols, which are used in Windows for file and printer sharing.

Filter by
Sorted by
Tagged with
193 votes
2 answers
560k views

List Samba users?

So yesterday evening I was pulling my hair out (figuratively -- I'm bald) for over an hour trying to figure out why smbpasswd kept rejecting my attempts to reset the password for one of my Samba users....
Kromey's user avatar
  • 5,245
163 votes
9 answers
232k views

How to access mounted network drive on Windows Linux Subsystem?

I have a samba drive which is mounted on my local windows computer. I have a /mnt/c drive in WLS (Windows 10 Bash), but no /mnt/z. Is there a way to access it somehow? Can I remount it in WSL?
Charles Shiller's user avatar
56 votes
4 answers
160k views

How do I recursively download a directory using smbclient?

When I try to fetch a directory with get "Path To\Directory\", I get the following error: NT_STATUS_FILE_IS_A_DIRECTORY opening remote file Path To\Directory How do I recursively download this ...
hololeap's user avatar
  • 1,441
34 votes
3 answers
66k views

Using Samba to share a folder from a Linux guest with a Windows host in VirtualBox

I would like to share a folder from a Linux Guest with a Windows host (with read and write access if possible) in VirtualBox. I read in these two links: here and here that it's possible to do this ...
Amelio Vazquez-Reina's user avatar
30 votes
6 answers
79k views

Samba+Windows: Allow multiple connections by different users?

I have a machine running Ubuntu with Samba that I use to share stuff with my family's Windows machines in our local network. Currently they access a share for movies/music/etc with one user. I want ...
user avatar
27 votes
5 answers
50k views

How do I change my windows domain password from Mac OS X?

Macs work well in Windows corporate environments, but a lot of companies require you to change your password after a period of time (3 months for example). How do you change your Windows domain ...
Harvey's user avatar
  • 751
25 votes
5 answers
116k views

Windows 10 Password Error with Samba Share

I am trying to connect to a samba share with Windows 10 Pro (Version 1511, Build 10586.589) using the command net use L: \\myserver\myshare /u:myuser mypassword. I get the error: System error 86 - ...
roms's user avatar
  • 560
25 votes
4 answers
170k views

Windows 7, connecting to Samba shares

How can I connect to a Samba share with authentication using Windows 7? We have a bunch of Linux, HP-UX and AIX servers on our network with folders shared using Samba. These are not connected to our ...
Colin Pickard's user avatar
20 votes
3 answers
31k views

Clients can't create symlinks on Samba share

As recommended in many answers to questions about samba shares and symlinks, I have tried explicitly enabling "follow symlinks" (although documentation says it is on by default) as well as enabling "...
tompi's user avatar
  • 793
19 votes
2 answers
22k views

Files/Folders get weird names and become inaccessible on Samba share

Here is our current setup: Mac OS X 10.5.8 File server using Mac OS Extended (Journaled) file system. There is a share that is shared over AFP (For Mac desktops) and Samba for (Windows desktops). ...
Scott's user avatar
  • 384
19 votes
3 answers
30k views

Set proper rights for sshfs mountpoint so it can be shared with samba

I have a domain hoster that provides access via SSH. My platforms are: Gentoo 2.6.36-r5 Windows (XP/Vista/7) I work on my Windows, I use Gentoo to do all the magic Windows can't do. Therefore I ...
CS01's user avatar
  • 395
18 votes
3 answers
57k views

Mount error(5):Input/output error on mount

I am getting mount error (5): Input output error on mounting to cifs windows share. Command executed: sudo /bin/mount -t cifs //server/folder /mnt/folder/ -o username="domain/username",password=...
Abdul Jaleel's user avatar
18 votes
3 answers
42k views

SSH tunnel on Windows 10 to Linux Samba

I know This question has been asked a few times already but I think my problem might be slightly different. Maybe I'm not understanding the fundamentals of the issue. I have a Linux Samba share that ...
Blake Wrege's user avatar
17 votes
4 answers
24k views

Ubuntu + latest samba version, symlinks no longer work on share mounted in windows

I just apt-getted (apt-got?) the latest software for my Ubuntu 9.10 linux box, and I noticed that samba was the included in the update. After the install, the symlinks in my home directory no longer ...
Roy Rico's user avatar
  • 5,948
17 votes
7 answers
112k views

Home file server using Samba has slow read and write speed

I have a machine running Ubuntu Server 12.04. I installed Samba for file sharing on my home network. I have Windows and Linux machine. My server spec are: AMD Phenom 2 x6 1055t 8GB of RAM 10/100/1000 ...
reeves's user avatar
  • 171
17 votes
4 answers
32k views

How to mount a samba share on non-standard port?

The firewall on my network drops all packets on TCP port 139 and 445. So all samba shares don't work outside the LAN. I tried letting the samba daemon listen on a non-standard port. This method works ...
hpsMouse's user avatar
  • 341
16 votes
4 answers
24k views

How to make Windows 7 remember credentials for a Samba network drive?

I have a Samba share on my Ubuntu server which I map as a network drive on my Windows 7 Professional computer. After every reboot it shows the drive as disconnected and to access it I have to renter ...
evan's user avatar
  • 523
16 votes
5 answers
57k views

Opening smb:// links on windows

Is there any way to make Windows (10 preferably) explorer to open smb protocol URI? Like smb://1.2.3.4/file.txt I'm in a diverse environment of operating systems (mostly windows, mac and linux) and ...
Eskel's user avatar
  • 391
16 votes
2 answers
7k views

Why is there a write speed difference between dd, cp, rsync and macOS Finder to a SMB3 drive?

Tl;dr – We can't find the reason for the limited write speed of 60 MB/sec to our NAS via SMB and AFP from two different Mac clients. In comparison: An old Windows 7 laptop in the same network writes ...
woerndl's user avatar
  • 713
15 votes
2 answers
45k views

How to `ls` a remote folder?

This one uses Samba: $ ls smb://192.168.5.4/wdtvlivehub/abc ls: cannot access smb://192.168.5.4/wdtvlivehub/abc: No such file or directory I somehow managed to do it by; Browsing to the remote ...
octosquidopus's user avatar
14 votes
7 answers
40k views

How do I get back the default Samba configuration file (Debian-based system)?

I recently installed Samba and I messed up the /etc/samba/smb.conf file. How do I get the original configuration back?
Frew Schmidt's user avatar
  • 1,261
14 votes
3 answers
58k views

Add multiple @groups to valid users

In smb.conf I have the line valid users = @Staff @Directors Is this a valid syntax to add two groups to the valid users line? It does not seem to work right on our xp pro clients. If not which of ...
skids89's user avatar
  • 273
14 votes
2 answers
32k views

samba sync password with unix password on debian wheezy

I installed samba on my server and I am trying to write a script to spare me the two steps to add user, e.g.: adduser username smbpasswd -a username My smb.conf states: # This boolean parameter ...
oz123's user avatar
  • 743
14 votes
4 answers
52k views

Sharing an external hard drive in Ubuntu using Samba

/media/MYDISK is where my hard drive is mounted automatically. I created a symlink using: ln -s /media/MYDISK /home/camilo/MYDISK chmod 777 /home/camilo/MYDISK I'm setting up smb.conf like this: [...
cambraca's user avatar
  • 241
14 votes
1 answer
27k views

Samba - Create Subdirectory Shares with their own permissions

I have a Samba share containing many folders like this: share - folderA - folderB - folderC - folderD There are around 20 users accessing those shares. Every user can have their individual ...
soner's user avatar
  • 143
13 votes
3 answers
106k views

Creating a samba share where everyone has write access

I have an Ubuntu server in my house running samba. I'm trying to set up a samba share where everyone has read and write access. I have all the users in a 'sambashare' unix group and want to offer the ...
Piku's user avatar
  • 597
13 votes
3 answers
35k views

Can not connect to share (system error 1272)

Since some time I can not connect to a local samba share anymore. When I try to access \\<server ip>\drive, I get the following dialog: When connecting using the command line, using the command ...
AZWN's user avatar
  • 131
12 votes
2 answers
76k views

How do I completely remove and reinstall Samba on Debian?

My Samba installation has become a mess, and now the services won't even start correctly anymore, for some reason. Is there a way to completely remove Samba, as if it was never there, and then ...
Jane Panda's user avatar
  • 1,217
12 votes
1 answer
14k views

Error mounting samba share, cannot mount block device xxxx read-only

After installing Ubuntu 12.04, I'm trying to mount a samba share from Windows under Linux, using a scripted command that's always worked, and the server hasn't changed. The error is as follows: $ ...
Jeff Ward's user avatar
  • 518
12 votes
1 answer
11k views

How to interpret output of nmblookup -A

The command nmblookup -A IP_address returns, according to the man page, a node status query on this address. A typical output is: Looking up status of 192.168.253.101 HPB4B52F0559C2 <...
MariusMatutiae's user avatar
12 votes
3 answers
37k views

How do I copy files to a Windows Share?

How do I use bash to copy files to a Windows share?
Jake's user avatar
  • 679
12 votes
2 answers
25k views

Disconnect from samba share

Sometimes during the same Windows (Vista) session i have to connect to the same (samba) file server in a workgroup (no domain) as another user. It seems Windows has cached the current connection with ...
PeterMmm's user avatar
  • 481
11 votes
5 answers
21k views

Samba vs. NFS: Performance [closed]

I've got a choice of setting up Samba or NFS on my Linux based NAS ( nslu2 running OpenDebian ). Does anyone have performance related stories comparing the two options ? Are there tuneup tricks that ...
user avatar
11 votes
4 answers
25k views

Did Windows 10 April Update break network discovery and Samba support?

It seems Window's network discovery / name resolution doesn't work anymore on computers freshly reset with the new April update for Windows 10 (Build 1803). (Computers that were merely updated don't ...
JoseOrtiz3's user avatar
11 votes
2 answers
25k views

How can I connect a Windows 8 PC to a Samba domain

I am using Samba 3, and want to join my Windows 8 PC to the Samba domain. Windows 8 cannot join out of the box, so I added the following registry entries: HKLM\SYSTEM\CurrentControlSet\Services\...
Paul's user avatar
  • 60.3k
10 votes
3 answers
37k views

Ports for NAT'ed Windows share

Simple question: I have a NATed Linux at home that hosts a couple of samba shares. What Ports should I forward from the router to the Linux box so as to be able to access those shares from the ...
Paralife's user avatar
  • 263
10 votes
2 answers
27k views

which Linux command allows to browse all available smb shares in the network?

I want to browse all available smb shares in the network, like clicking the "network" in nautilus then all shares are shown, using command line the closest one I got is smbclient -L SRVNAME, which ...
zhanwu's user avatar
  • 973
10 votes
3 answers
21k views

How do I access a git repository on a samba share?

I have a Samba share set up that I'd like to put a git repository on. I've tried searching google for the best way to use git on a Samba share, but it seems difficult to find anything on doing this ...
Jason Baker's user avatar
  • 8,662
9 votes
2 answers
50k views

How Can I Force Unmount a Network Device on Mac?

Hey guys, I currently do CMD + K in Finder to connect to my Windows computer to be able to browse and use its network shares (i.e. smb://MyPC). It works fine, but sometimes when I click on it, maybe ...
Jorge Israel Peña's user avatar
9 votes
4 answers
48k views

getent passwd outputs only local users

I want to authenticate via Active Directory on a CentOS 6.4 server. wbinfo -u and wbinfo -g display the domain users/groups. Authentication via wbinfo -a DOMAIN+user works. Authentication via kinit ...
jgillich's user avatar
  • 1,050
9 votes
2 answers
58k views

How to list all files in a Windows SMB network share

Given a single SMB network share (for example, \\server\\SHARED_FOLDER), I want to recursively list all the files, including those in the subdirectories (like find(1)). I would prefer to do it in ...
Danilo Piazzalunga's user avatar
9 votes
3 answers
14k views

How do I navigate to a samba location I've mounted in Nautilus on the command line?

This is the same question here (and a bit of here too), except that I'm running Debian wheezy (7.4). To clear up, these directories do not exist: /run/user /var/run/user ~/.cache/gvfs And this ...
Mike T's user avatar
  • 784
9 votes
1 answer
4k views

Debian - allow user to be root only for specific commands

We have several Linux boxes running Samba that are used 'locally', eg each branch gets their own Samba box to store and share files. The office managers need to be able to add and remove users for ...
Jake's user avatar
  • 418
9 votes
2 answers
55k views

Mount a SAMBA share and create symbolic link

I develop web-apps using ubuntu (jaunty) but have a need to work on a site that must be hosted on windows. I've setup virtualbox with a winxp32 installation and shared the entire hard disk. My goal is ...
Mike B's user avatar
  • 215
9 votes
3 answers
17k views

Samba change_to_user_internal error when accessing the share

I am getting the following error when trying to access samba share. [2019/02/24 20:24:48.978082, 0] ../source3/smbd/uid.c:386(change_to_user_internal) change_to_user_internal: ...
Andrius Solopovas's user avatar
9 votes
2 answers
9k views

How to specify IPv6 link-local bind address in smb.conf?

Using samba 4.1.17-Debian I have tried the following smb.conf entries to bind samba to the link-local ipv6 addresses interfaces = fe80::d270:36a5:ac03:37ea%br0 fe80::/10 ::1 bind interfaces only = ...
the8472's user avatar
  • 515
9 votes
3 answers
14k views

Add custom network device icons in Mac OS X Finder?

Mac OS X Finder is smug enough to display any non-Mac device as a picture of a PC with a BSOD, but I'm wondering if it's possible to add other devices, so my Ubuntu machine is detected and has a ...
Adam M-W's user avatar
  • 553
9 votes
2 answers
36k views

Is there a speed difference between transferring files over FTP and Samba?

I have a home network setup with a desktop PC, two laptops and a ubuntu server desktop all connected to a router (DD-WRT). I want to setup the ubuntu server on a separate subdomain (security reasons: ...
James Mertz's user avatar
  • 26.4k
9 votes
1 answer
893 views

Drobo-FS config files exhibiting input/ouput error

I have a Drobo-FS with DropBear installed via DroboApps which allows me SSH access into the linux operating system which powers the Drobo-FS. The Drobo-FS file system has a directory which looks like ...
Marcus Whybrow's user avatar
8 votes
2 answers
35k views

How to change SMB user in windows 10?

I just changed my username account in my laptop, But when I tried to connect my smb client on my another device, I had to login using my old username. How to change login username?
Zozzizzez's user avatar
  • 193

1
2 3 4 5
30