Again, should be obvious and you're not likely going to need to at all. Again, this doesn't need to be super-complicated.Įdit: This should be obvious, but you're only port forwarding on the LAN. Ideally, forwarding ports 139 and 445 will get you going with most situations, even Windows accessing the shares. Once you're ready, let's "make it so." In short, this will run the script.įor those of you who don't need the script, you can see it in action in the video below:ĭepending on your LAN network and how your router/firewall is set up, you may need to do some port forwarding. Now we're going to make this bad boy run like a guy chasing the KFC man down the street. For the sake of simplicity, we'll drop this into your /home directory " automagically. Let's get that script going for you, shall we? After some reflection, this also explains why I have Cheetos added to my grocery list on the fridge. The Cheetos dust left behind on the individual keys confirmed my suspicion of goblin intruders. Under normal circumstances, I would have dusted the keyboard for fingerprints…but as luck would have it, I didn't have to. Instead, I woke up to what appeared to be goblin footprints on my laminate floors and a single phrase written in spray cheese on my desk - "I use Arch, btw." Upon closer inspection, it seems the goblins installed the window manager known as " ratpoison " onto my primary workstation. See, I left out cookies overnight to see if I could get some elves to visit me and do some user testing on KDE. That said….my plans for user testing sort of went sideways on me. Look, it may also work on other desktop environments, but I haven't tested it yet. Why weren't other desktop environments tested? And that's fine, but this script has only been tested on Ubuntu and Pop OS. Should you end up with something that looks like this below:īefore you download and run this script, you may not be on a Gnome-based Ubuntu-type distro. Right-click on the directory and select Network Share.Ĭheck off the Allow others to create and delete files in this folder box. Locate the directory in Nautilus (Files on Pop OS). This will once again assume Gnome for the sake of simplicity using Nautilus. I also recommend rebooting the client computer with which you will be accessing the remote shares.īack on the computer with the remote shares, we need to make them…shareable. So go ahead and restart then and then reboot. Instead, I prefer to spot any errors now vs. I like restarting the above services, not because it's going to help get sharing going per se. And even though your Samba shares are only available on your local network, it's best to keep things locked down on a fundamental level. This command will allow you to set up a strong password for your Samba shares. Step four - Lock the doors behind you with a strong password. Where $USER is, you can leave it as is, or to understand how the pieces go together, replace it with the results of your whoami command previously. Step three - Everyone wants to belong to the cool group. Now let's add your Linux user to the appropriate Linux group. That command won't help you figure out who you are as a person, but it will tell you your current username as your distro sees you. Sudo apt update & sudo apt install samba nautilus-shareĭid I lose you? Hopefully, those instructions weren't too complex. Step one - install your Samba bits (this assumes Ubuntu-based distros and Gnome). Understanding the risks and potential consequences of stranger-danger in your network shared directories, allow me to show you the simple steps to do the following: No one needs this in their life - not even the KFC Colonel himself. Without a username and password authorizing access to your Samba files, you might end up with a KFC breakdancer man putting his “finger lickin' good” phalanges all over your shared files. The above example is why it is important to know who is accessing your shared files. Thankfully he's just there to pass out coupons for new customers. There is some whackjob who is clearly "a few cards shy of a full deck" breakdancing on your porch with a KFC bucket on their head. You open the door a crack and are shocked to witness something I hope no one ever has to experience. You put down the dinner you've been nibbling at to see who is bothering you at this late hour! You yell to the person on the other side of the door, "Who is it?" No answer. You've got the house to yourself, and you'll finally binge-watch your favorite streaming series. You have your favorite food on a TV tray. Imagine you're all settled in for the night. So why is it still an issue on otherwise newbie-friendly Linux distros in 2022? Consider the following tale of woe… Like most desktop environments that offer GUI tools to get Samba working, Gnome forgets two simple steps - the user and the password.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |