What a great tutorial, I was tasked with setting up a small office network so we could all share files from one central computer, I've had Mint running on my main laptop for a few years and it's been faultless, so I quickly installed it on an old PC in the office, followed this tutorial which at first I thought was a bit long, but it was perfect and I learnt a few basic Linux commands along the way, excellent stuff worked first time, very very happy, cheers Dan ;)
I m a fairly new user to mint 19. I decided I wanted a little change from the main stream. It's really enjoyable to work with lots and lots of options. I try to remember some quick commands keep a noted page to go back to. I know with practice. I have to say this video was totally incredible simple easy to follow instructions. A lot of the boards ask about irrelevancy. Why answer a question with foolishness, if you dont know dont get involved. I m so glad these vids exist I know they take time to create. I and many others are glad you do them you. Thank You so very much.
i am from Saudi Arabia , and i have no idea what i am doing here , but what i want to say something to your students , your teacher is a DREAM for me when i was studying , you guys are lucky when i was studying in my collage project i got too many issues , and every time i ask my doctor about it , all what he saying " Search about it - google it " < and he call him self a professional -_-
I'm a rookie user in windows and linux (I know the basic to write some documents and do research). I did everything you did in same time (do many pause to write the right command). English is not my language and most your talk I didn't understand, but I can do share now. Thank you. =)
I have one problem during the tutorial. I thought the command prompt would do all the commands to the letter, but there was no folder 'samba' after typing in all the commands. So, the GUI directory didn't show one, made one myself, but there was nothing in it, no line like the example through the command prompt.
Great video thanks! To resolve the issue with not being able to create files from Windows I used chown -R (recursive flag) then I was able to create folders from within Windows
Excellent tutorial on samba sharing with Windows, works great. If you have video on how to change the Workgroup Name on Linux Mint - [ running 19.3 ] right now. I would like to see that video to. Thanks for the lesson.
Man i must thank u alot helped me soo much for soo much things (moved my csgo server ts3 and more too linux now i can easly provide all over my manage pc) :) THANKS ALOT NICE TUT
Even though I was using Manjaro Linux this helped alot, in the end I had it all right but linux firewall was too strict, also systemctl enable smb; systemctl start smb; systemctl enable nmb; systemctl start nmb; were the only different commands. So thanks :)
Great tutorial. Thank you. Everything worked out of the box. However, no way how to see the Mint computer on Windows network. (VirtualBox host = Win 11, guest = Linux Mint, another physical computer on LAN Windows 10)
worked without enabling smb direct or 1.0. remember o create the same user on windows (gave it administrator rights, not sure if that matters), AND reboot. Otherwise windows would give errors trying to authenticate.
I've recently read that when Samba moves from version 4.10 to 4.11 SMB1 will be deprecated. With this the browsing network via Samba ends. SMB2 and SMB3 do not allow browsing. Not positive but it looks like SMB3 has not yet been implemented. Wireshark didn't even have a filter for it. My shares are using SMB2 and I assume using SMB1 to browse. As mentioned below SMB1 is considered a security risk. But disabling it also disables browsing. Not sure whats going to replace it.
17:35 -- 755 (drwxr-xr-x) folder permissions won't work for 'other' users to write to it (e.g. 31:29 whenever not sudo). For a folder with nobody:nogroup as owner:group, shouldn't it be one of 752 (drwxr-x-w-), 753 (drwxr-x-wx), 756 (drwxr-xrw-), or 757 (drwxr-xrwx) ? But neither of 751 (drwxr-x--x), 754 (drwxr-xr--), nor 755 (drwxr-xr-x) ? Kindest regards, friends and neighbours.
19:15 -- sudo can not cross a redirection or a pipeline. A *sudo tee* script works: dan@dan:~$ echo "this is some text" | *sudo tee* --append /srv/samba/share/hello.txt ## NOTICE NO SUDO BEFORE PIPE . . . if ownership, group and permissions of the file and folder are unchanged. Specifically, for /srv/samba/share/, the owner:group remain nobody:nogroup, and its permissions are unchanged at 755 (drwxr-xr-x), and for /srv/samba/share/hello.txt, owner:group remain root:root, and its permissions are unchanged at 644 (rw-r--r--). Kindest regards, friends and neighbours.
'force user = dan' does not do what you are saying. Quotes from vid: 13:12 -- "If we want to force one user only to authenticate, we can uncomment this and 'force user = dan'. And then comment out the 'guests ok = yes'. So . . . [I can] get rid of guest access and force user authentication or 'force user = dan'." 30:16 -- "I may need to authenticate to be able to write here. Let's try that. I will edit [/etc/samba/smb.conf] file one more time. Or I am not sure what I am missing. But let's change it slightly. Let's set 'force user = dan'. 'Guest ok = yes', [let's] comment that out, so no longer is 'guest ok' alright." The above statements are not correct. Rather, for files or directories freshly created by all users within the samba share, 'force user = dan' sets the inherited user-ownership attribute for such file or directory, and 'force group = dan' sets the inherited group-ownership attribute for such file or directory. *Instead, you need: valid users = dan* Kindest regards, neighbours and friends. P.S. The folder write problem (31:30) would still not be cured with 'valid users = dan'. P.P.S. Fixing the folder write problem, you need to modify /srv/samba/share folder attributes either by [1] changing folder permissions from drwxr-xr-x (17:35) to drwxr-xrwx . . . i.e., o=rx to o=rwx . . . or 755 to 757 using chmod o+w. or [2] changing either (a) the user-owner from nobody (17:35) to dan, or (b) the group-owner from nogroup to dan. For the preceding 2b, you would need to concurrently change folder permissions to include g+w.
Trying to follow along. When I type sudo service smbd status, I get what your screen shows but at the bottom it gives me a lot of pam_unix(samba:session): session closed for user nobody. messages and an END at bottom screen. I have to close and reopen to get ~$. Any ideas??
Why doesn't this just work from the file manager (Nemo) out of the box? Sure, editing the config file is fun when you're just learning but it's a drag when you've actually got work to get done...
IF you created the file and restated SMBD within terminal then refresh windows network click on shared folder. didnt need to Or just watch the vid. its not long.
That's great! I got it to work... but I can't get it to work the other way around, i.e. accessing shares on a Windows computer... any thoughts? I guess I have to be on the same workgroup or something, been a while since i've played with those settings... phew! :)
So if Samba is installed on Linux Mint cpu correctly and Windows share folders protocols on each system you want to connect to are correct proceed. Click on the NETWORK icon in Linux / clear the path / type { the cpu IP address you want to connect to.} you need to know the address for each system if you are using a router. On the Windows cpu bring up the command line type CMD enter/ type> ipconfig />enter/ locate your ip address/ looks something like 192.168.?.???/ next go to Linux open NETWORK window / type Windows address as so > smb://192.168. ?.???/ window opens click on your Windows share folder/ permission access window/ type your ID and password belonging to the Windows cpu/ save it permanent or session log. your choice/ next find bookmark on the page/ bookmark the shared folder/ You will always have access if you clicked on permanent save >>>>>and your good to go. I gave up trying to find a simple fix and experimented on my own Have Fun.
Hey Eric. You'll need to use an actual username on your linux system. In this case Dan used the user name dan. If he had typed in playshare as the user name in the smbapw -a command he would receive the same error you are getting. Hope this helps.
What a great tutorial, I was tasked with setting up a small office network so we could all share files from one central computer, I've had Mint running on my main laptop for a few years and it's been faultless, so I quickly installed it on an old PC in the office, followed this tutorial which at first I thought was a bit long, but it was perfect and I learnt a few basic Linux commands along the way, excellent stuff worked first time, very very happy, cheers Dan ;)
Excellent tutorial on samba sharing with Windows, Mac and Linux. First time that I got this to work on all my computers.
I m a fairly new user to mint 19. I decided I wanted a little change from the main stream. It's really enjoyable to work with lots and lots of options. I try to remember some quick commands keep a noted page to go back to. I know with practice.
I have to say this video was totally incredible simple easy to follow instructions. A lot of the boards ask about irrelevancy. Why answer a question with foolishness, if you dont know dont get involved. I m so glad these vids exist I know they take time to create. I and many others are glad you do them you. Thank You so very much.
Straight forward, knowledgeable, and worked the first time. Can't say that for many Linux tutorials so thank you so much! Subbed!
i am from Saudi Arabia , and i have no idea what i am doing here ,
but what i want to say something to your students
, your teacher is a DREAM for me when i was studying ,
you guys are lucky
when i was studying in my collage project i got too many issues , and every time i ask my doctor about it , all what he saying " Search about it - google it "
< and he call him self a professional -_-
Man, thank you!
thank you very much, tutorials like yours make it much easier to learn about linux and its potencial. Cheers from Chile!
I'm a rookie user in windows and linux (I know the basic to write some documents and do research). I did everything you did in same time (do many pause to write the right command). English is not my language and most your talk I didn't understand, but I can do share now. Thank you. =)
2023 And it still takes a 30 minute tutorial to share files between two computers.
Thabks dan for all the videos. I remember watching your videos when i was 12 on ubuntu. now i’ve moved to full linux environment
That's crazy. Thanks for posting
I took what you taught, and modified it a little, and it works very well. Thank you
OMG EXCELLENT TUTORIAL THANKYOU!!!!😁😁😁😁
I have one problem during the tutorial. I thought the command prompt would do all the commands to the letter, but there was no folder 'samba' after typing in all the commands. So, the GUI directory didn't show one, made one myself, but there was nothing in it, no line like the example through the command prompt.
Great video thanks! To resolve the issue with not being able to create files from Windows I used chown -R (recursive flag) then I was able to create folders from within Windows
Hi Dan.Thanks for the upload. I will follow this tutorial some time.But for now, I'll need to install Linux Mint 19.
Excellent tutorial on samba sharing with Windows, works great. If you have video on how to change the
Workgroup Name on Linux Mint - [ running 19.3 ] right now. I would like to see that video to. Thanks for the lesson.
Man i must thank u alot helped me soo much for soo much things (moved my csgo server ts3 and more too linux now i can easly provide all over my manage pc) :) THANKS ALOT NICE TUT
Welcome Back!! Glad to see you posting again!
Even though I was using Manjaro Linux this helped alot, in the end I had it all right but linux firewall was too strict, also
systemctl enable smb;
systemctl start smb;
systemctl enable nmb;
systemctl start nmb;
were the only different commands. So thanks :)
Glad to see your uploading videos 🙂😘
Cheers!
Great tutorial. Thank you. Everything worked out of the box.
However, no way how to see the Mint computer on Windows network. (VirtualBox host = Win 11, guest = Linux Mint, another physical computer on LAN Windows 10)
Agreed that you shouldn't promote smb1. Looking forward to a video when a WS-Discovery fix is in place.
worked without enabling smb direct or 1.0.
remember o create the same user on windows (gave it administrator rights, not sure if that matters), AND reboot. Otherwise windows would give errors trying to authenticate.
on mint right click share folder and there is need for all this rigmarole, you might need to install samba though
I've recently read that when Samba moves from version 4.10 to 4.11 SMB1 will be deprecated. With this the browsing network via Samba ends. SMB2 and SMB3 do not allow browsing. Not positive but it looks like SMB3 has not yet been implemented. Wireshark didn't even have a filter for it. My shares are using SMB2 and I assume using SMB1 to browse. As mentioned below SMB1 is considered a security risk. But disabling it also disables browsing. Not sure whats going to replace it.
I cant believe so many steps and jumps through hoops and barrels to access windows shares. Will look for more simplified answers elsewhere.
17:35 -- 755 (drwxr-xr-x) folder permissions won't work for 'other' users to write to it (e.g. 31:29 whenever not sudo).
For a folder with nobody:nogroup as owner:group, shouldn't it be one of
752 (drwxr-x-w-),
753 (drwxr-x-wx),
756 (drwxr-xrw-), or
757 (drwxr-xrwx) ?
But neither of
751 (drwxr-x--x),
754 (drwxr-xr--), nor
755 (drwxr-xr-x) ?
Kindest regards, friends and neighbours.
19:15 -- sudo can not cross a redirection or a pipeline.
A *sudo tee* script works:
dan@dan:~$ echo "this is some text" | *sudo tee* --append /srv/samba/share/hello.txt ## NOTICE NO SUDO BEFORE PIPE
. . . if ownership, group and permissions of the file and folder are unchanged.
Specifically, for /srv/samba/share/, the owner:group remain nobody:nogroup, and its permissions are unchanged at 755 (drwxr-xr-x),
and
for /srv/samba/share/hello.txt, owner:group remain root:root, and its permissions are unchanged at 644 (rw-r--r--).
Kindest regards, friends and neighbours.
'force user = dan' does not do what you are saying. Quotes from vid:
13:12 -- "If we want to force one user only to authenticate, we can uncomment this and 'force user = dan'. And then comment out the 'guests ok = yes'. So . . . [I can] get rid of guest access and force user authentication or 'force user = dan'."
30:16 -- "I may need to authenticate to be able to write here. Let's try that. I will edit [/etc/samba/smb.conf] file one more time. Or I am not sure what I am missing. But let's change it slightly. Let's set 'force user = dan'. 'Guest ok = yes', [let's] comment that out, so no longer is 'guest ok' alright."
The above statements are not correct.
Rather, for files or directories freshly created by all users within the samba share,
'force user = dan' sets the inherited user-ownership attribute for such file or directory, and
'force group = dan' sets the inherited group-ownership attribute for such file or directory.
*Instead, you need: valid users = dan*
Kindest regards, neighbours and friends.
P.S. The folder write problem (31:30) would still not be cured with 'valid users = dan'.
P.P.S. Fixing the folder write problem, you need to modify /srv/samba/share folder attributes either by
[1] changing folder permissions from drwxr-xr-x (17:35) to drwxr-xrwx . . . i.e., o=rx to o=rwx . . . or 755 to 757 using chmod o+w.
or
[2] changing either (a) the user-owner from nobody (17:35) to dan, or (b) the group-owner from nogroup to dan.
For the preceding 2b, you would need to concurrently change folder permissions to include g+w.
Trying to follow along. When I type sudo service smbd status, I get what your screen shows but at the bottom it gives me a lot of pam_unix(samba:session): session closed for user nobody. messages and an END at bottom screen. I have to close and reopen to get ~$. Any ideas??
I saw in your video to type Q to get the command line back.
Dude, this work perfectly. Thank you so much. Also, i have a Second HDD, how do i share this HD too?
Why doesn't this just work from the file manager (Nemo) out of the box? Sure, editing the config file is fun when you're just learning but it's a drag when you've actually got work to get done...
So how do you make the share visible in windows without having to connect to the IP address?
IF you created the file and restated SMBD within terminal then refresh windows network click on shared folder. didnt need to
Or just watch the vid. its not long.
Excellent Thanks alot!
That's great! I got it to work... but I can't get it to work the other way around, i.e. accessing shares on a Windows computer... any thoughts? I guess I have to be on the same workgroup or something, been a while since i've played with those settings... phew! :)
Same here!! I can't get it to work the other way around
I cant write in shared folder
dont activate smb1 its unsecure you should disable guest in samba server on linux just change this to no in your smb.conf
usershare allow guests = no
After installing samba I can just create a folder and then set it's sharing properties, and it works. I mean I can access it from windows.
Dan liked your video. I think you misspelled writeable you have writable
Hey dan, for me at 9:08 it says Failed to add entry for user myusername
Could you please help me with this ?
make sure your username is also a username on your Linux system
Just use Thunar Share plugin.
SMB V1 is unsecure (Ransomware)
Please give us another way to configure this secure
Thanx
So if Samba is installed on Linux Mint cpu correctly and Windows share folders protocols on each system you want to connect to are correct proceed.
Click on the NETWORK icon in Linux / clear the path / type { the cpu IP address you want to connect to.}
you need to know the address for each system if you are using a router.
On the Windows cpu bring up the command line type CMD enter/ type> ipconfig />enter/
locate your ip address/ looks something like 192.168.?.???/
next go to Linux open NETWORK window /
type Windows address as so > smb://192.168. ?.???/ window opens click on your Windows share folder/
permission access window/ type your ID and password belonging to the Windows cpu/ save it permanent or session log.
your choice/
next find bookmark on the page/ bookmark the shared folder/
You will always have access if you clicked on permanent save >>>>>and your good to go.
I gave up trying to find a simple fix and experimented on my own Have Fun.
Got to 8:33 and 'Failed to Add Entry for user'
Hey Eric. You'll need to use an actual username on your linux system. In this case Dan used the user name dan. If he had typed in playshare as the user name in the smbapw -a command he would receive the same error you are getting. Hope this helps.
I have to agree with other comments on enabling SMB1, your just opening yourself up to a possible ransomware attack.
didn't work for me.
its Samba not Sarhmba. Also its Sudo not Sudu.
Ya lost me when ya started typing stuff... thank you anyhow
you can do it!