Questions tagged [samba]
Samba is the standard Windows interoperability suite of programs for Ubuntu and is also the default file server for Ubuntu.
2,940
questions
126
votes
5
answers
1.1m
views
How to restart samba server?
Sorry this is a little embarassing but I'm trying to set up my own server for the first time. I found great tutorial online.
http://www.intac.net/build-your-own-server/
I'm stuck at the 2nd to last ...
117
votes
4
answers
332k
views
Cannot restart samba, samba.service is masked
When I try to restart Samba, I am receiving the following error message:
Failed to start samba.service: Unit samba.service is masked.
In addition, when I run systemctl, it shows smbd.service in red ...
94
votes
9
answers
685k
views
List samba shares and current users
Looking for a simple way to do this from the command line.
List samba shares and the users who can access each of them.
List samba shares and the users currently connected to them.
List samba ...
92
votes
5
answers
238k
views
Which to use NFS or Samba?
I am setting up a box to be a file server at the house. It will mainly be used to share music, pictures, movies with other linux boxes on the network, and one OS X machine. From what I have read NFS ...
90
votes
2
answers
365k
views
Proper fstab entry to mount a samba share on boot?
I am a little confused on the proper fstab entry for a samba share in Ubuntu 12.04
I can get the drive to mount manually by using:
sudo mount -t cifs //192.168.2.2/raid_drive /mnt/homeserver -o ...
67
votes
1
answer
191k
views
How do I install smbmount?
It seems that smbmount is not available in Kubuntu 12.10:
- neptune():~$ smbmount //192.168.0.100/ samba/ -o rw
smbmount: command not found
- neptune():~$ apt-file search smbmount
manpages-zh: /usr/...
67
votes
9
answers
339k
views
How do I share a folder with another Linux machine on the same home network?
I'm trying to share a folder on one Ubuntu machine with another Ubuntu machine on the same home network. When I right click on the folder and choose Sharing Options, it tells me I need to install ...
65
votes
9
answers
103k
views
How do I navigate to a samba location I've mounted in Nautilus on the command line?
Please note: I am two weeks old in Linux. I have found a lot of answers to this question on the internet, tried many, but all failed one way or another. Therefore I dare to ask once again in the hope ...
61
votes
6
answers
744k
views
How to map a network drive?
I am unable to map a Windows network drive in Ubuntu. I executed the following command in the terminal:
karthick@karthick:~$ sudo mount -t cifs -o username=raghu //172.29.32.184 /media/Data/
Password:...
52
votes
3
answers
90k
views
Where can I find the mount point for SMB shares in 13.04?
In older Ubuntu releases, you were able to access the SMB shares mounted with Nautilus by going into the ~/.gvfs/ directory. I found it very convenient, since I like to use Nautilus to mount the ...
50
votes
4
answers
379k
views
How do I mount a CIFS share via FSTAB and give full RW to Guest
I want to create a Public folder that has full RW access. The problem with my configuration is that Windows users have no issues as guests (they can RW and Delete), my Ubuntu client can't do the same. ...
49
votes
15
answers
235k
views
"Failed to retrieve share list from server" error when browsing a share with Nautilus
A bit before upgrading from 10.04 to 11.10, my Ubuntu desktop stopped allowing me to access my Windows share directories. I figured I'd upgrade to 11.10 and the problem would get fixed but no.
...
48
votes
2
answers
73k
views
Failed to add /run/systemd/ask-password to directory watch: No space left on device?
Does anyone knows why have I this message with the new update of samba on ubuntu 16.04.1?
Paramétrage de samba (2:4.3.9+dfsg-0ubuntu0.16.04.3) ...
Failed to add /run/systemd/ask-password to directory ...
47
votes
1
answer
269k
views
How can I set up Samba shares to only be accessed by certain users?
I have a RAID10 array mounted on Ubuntu Server 12.04. I have created a few folders within the mount point and want the following functionality.
There will be 4 users, 3 of them are windows users: '...
42
votes
1
answer
59k
views
mount -t cifs results in 'cannot mount readonly' error
I am trying to mount directory located on local network.
I am using :
mount -t cifs -o username=user //192.168.0.106/shared /home/user/point
And I get following error :
mount: /home/user/point: ...
42
votes
6
answers
128k
views
How do I set up file sharing between two Ubuntu laptops on my wireless network?
I have two laptops running Ubuntu 12.04. Both connect to the same WIFI network to access internet.
How do I connect them to each other so that I can access files on one from another and vice versa?
...
42
votes
4
answers
202k
views
"Mounting cifs URL not implemented yet" when I try to mount a samba share
I have a server for development (Ubuntu 12.04). On that machine, I have a shared folder named "projects". I tried
sudo mount -t smbfs smb://192.168.2.28/projects/myProject /mnt/myProject
on my ...
41
votes
7
answers
48k
views
Nautilus-Share-Message: Called "net usershare info" but it failed
When I run Nautilus from command line, it starts successfully but this appears in the terminal:
Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: ...
36
votes
6
answers
359k
views
smbclient getting NT_STATUS_LOGON_FAILURE connecting to Windows box
I'm running smbclient on Ubuntu, trying to connect to a Windows box, and I'm getting "session setup failed: NT_STATUS_LOGON_FAILURE".
I've verifed that I can ping the box and telnet to ports 139/445, ...
35
votes
3
answers
116k
views
How do I access a mounted Windows share from the command line?
I use Places > Connect to Server... to connect to a Windows share in my work environment (requires Kerberos authentication). When I do so, I can access the Windows share via Nautilus, but I can't ...
34
votes
7
answers
65k
views
Can't acces NAS anymore after upgrading to 20.04
Today I did a clean install of the new Ubuntu 20.04 Focal Fossa. Since then I can no longer mount folders on my NAS, which was possible on 18.04 and on Windows.
It's exactly the same issue as this ...
33
votes
2
answers
72k
views
Samba does not accept my password
I have installed Samba onto Ubuntu 12.04 Server but I can't login as it says my password is incorrect but I am the only user so there are no other passwords.
I have tried changing the password ...
31
votes
5
answers
101k
views
16.04 CIFS "Host is down" but they are not
I have my CIFS setup in fstab and they are working as they are supposed to on boot. They mount as they should and work for a while. Out of nowhere it seems (could be after unlocking machine etc) I get ...
31
votes
3
answers
228k
views
How do I connect to an SMB share requiring a user name and password?
I have a samba share on my LAN that requires a username and password to obtain write access (otherwise it defaults to read-only).
I can't figure out where in the Unity desktop I can connect to the ...
31
votes
6
answers
280k
views
How to turn on Network Discovery and Share between computers with Samba
I have an Ubuntu server.
Accessing the server from Windows clients works fine.
But the server is not listed among the available PCs on Windows client's Network overview.
For windows machines it ...
31
votes
4
answers
133k
views
What's the easiest way to mount Windows share as a local folder in home directory?
Via Gnome Nautilus I can easily mount Samba shares from my Ubuntu Server. However, these "mounts" are kinda of fake. Many applications I run do not recognize that Gnome has mounted these server ...
30
votes
6
answers
101k
views
UFW firewall still blocking SMB despite adding rules
I have an Ubuntu PC with ufw firewall (GUI version). I have added the preset Samba service, in and out, and even tried adding the ports manually (135-139, 445, UDP and TCP, in and out), but it still ...
30
votes
2
answers
165k
views
What is meaning of 755 permissions in Samba Share
I am experimenting with Samba. I have a RAID drive mounted on /mnt/raiddrives, and I want to share it on my network giving everyone full access to it. The Ubuntu guide says to do something like below ...
29
votes
2
answers
161k
views
Samba fails to add a user entry, how do I fix this?
I was configuring Samba and tried to add a domain user, but it returns this:
failed to add entry for the user student
These are the commands I've done so far:
frigate@frigate-desktop:~$ su
...
29
votes
5
answers
168k
views
I cant get samba to set proper permissions on created directories
I have a ubuntu server sharing some folders using samba. When a client creates a new folder or file, the permissions aren't set according to the settings in smb.conf.
My current settings for a ...
27
votes
2
answers
37k
views
no route to host when mounting CIFS share
We have two ubuntu machines running docker + kubernetes and they need to access a windows share.
The first one is setup in /etc/fstab :
//dfs/Archive01 /mnt/dfs cifs rw,cred=/etc/cifspasswd,forceuid,...
27
votes
3
answers
90k
views
How do I connect to a server with thunar in Xubuntu?
In Ubuntu running Gnome 2 you were able to select "Connect to Server" from the Places menu and you would get a graphical connection to whatever server you connected to.
Example:
How can you do this ...
26
votes
3
answers
127k
views
Simple Samba Share - NO PASSWORD
What I need:
Simple samba config for file server without password and full read write for everyone. No security needed.
History:
I'm making a server to host files for my home. The goal of the server ...
26
votes
4
answers
37k
views
How to discard saved password for samba share in unity?
I access samba shares from unity on Ubuntu 11.10 and saved username/pass for it. Now, I want to use a different username. Each time I go to the share and open it, it just opens without asking for ...
25
votes
5
answers
69k
views
Share files and printer between two Ubuntu boxes
I have two Ubuntu boxes and want to share files and printer between them. I'm reading about Samba but I have a question: Is Samba only for sharing thing between Ubuntu and Windows? Another question: ...
25
votes
2
answers
110k
views
Samba share read only for guests, read write for authenticated users
Is it possible to have a samba share read only for guests, and read write for authenticated users?
If I put guest ok on an share then I am not prompted for a password, and effectively logged as ...
25
votes
7
answers
78k
views
Failed to mount Windows share: Invalid argument
A very similar question has been asked before by robazefa, but no one answered it.
For the last month or so, my Ubuntu 14.04 LTS box has been been unable to open a couple of folders shared from ...
25
votes
10
answers
87k
views
Connecting to Windows shares using Active Directory?
After upgrading my host to 12.04 I can no longer connect to Windows Shares in my AD (Active Directory) based network. I was able to do it previously using 11.10. I thought it might be an issue with ...
24
votes
2
answers
103k
views
Create a user for samba only (CLI)
Exact same question as this one, but using CLI instead of GUI.
I'd like to allow login access to a shared SMB directory, but the users get no other access to the server.
24
votes
6
answers
31k
views
Why can't my machine resolve local windows hostnames?
When I ping any local windows hostname from my Ubuntu machine I get "unable to resolve host", but when I ping from a windows machine it works fine. Why would this be? Samba & Miredo are installed
24
votes
10
answers
174k
views
Can't access Ubuntu's shared folders from Windows 7
In Ubuntu Maverick, I've shared some folders using the Nautilus "Sharing Options" GUI.
I can see them from Windows 7, but when I try to access them (from Windows) it asks for a username and ...
23
votes
4
answers
38k
views
Mounting Samba share whenever it's available, unmounting when it's not
I am trying setup permanent samba share mounts. That's not too hard using these instructions. But, I want them to
Automatically remount whenever I join the network where these shares are available.
...
23
votes
3
answers
30k
views
How to enable user sharing per instructions?
I have this entry in .xsession-errors log
"Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned
error 255: net usershare: cannot open usershare directory /var/...
22
votes
5
answers
101k
views
make samba share visible in Windows "Network"
tl;dr Shared files are accessible, but server isn't visible in Windows listing.
I've got printers and some directories shared via Samba, but they do not appear in the listing when a Windows user ...
22
votes
1
answer
10k
views
Where did ~/.gvfs go on Ubuntu 12.10?
Where did ~/.gvfs go on Ubuntu 12.10. How can I find the location of the mounted through samba folders?
I share a folder with a Ubuntu 12.10 machine. I am trying to find the location of the mount ...
21
votes
2
answers
112k
views
Samba and User Acount Passwords
Is it possible to tie your login password to your samba password?
Ideally every 30 days, users need to change their passwords to login into the machine and if its possible, when they update their ...
20
votes
6
answers
272k
views
cifs, smb - Can't mount (permission denied) or navigate shared folder
I've recently bumped into this problem. I usually navigate through a local network shared folder from a Linux machine via smb (i.e. from file manger using smb: ).
Now whenever I try to access the ...
20
votes
1
answer
69k
views
Mount - Unable to find suitable address [closed]
I am trying to mount my Windows share through my Ubuntu box (no xwindow), but I continue to get
Unable to find suitable address
I have tried using the raw IP address, I have checked the ...