Struggling with Network File Sharing on Linux
Asked by
beetroot+dip
Hey everyone! I'm pretty new to Linux and am trying hard to learn, but I'm hitting roadblocks. For weeks now, I've been trying to set up network drives and file sharing, but nothing's working. I've tried a bunch of methods like Samba, SFTP, and even set up a Nextcloud server, but they all seem to have the same permission issues. When I try to use Samba, only the root/admin user can access the shares; other users get 'access denied' or authentication errors. I've tinkered with the smb.conf file, created groups, and adjusted permissions, but no luck. I even formatted my drives to EXT4 thinking it might solve my problems. I've switched between Linux Mint, Ubuntu, Debian, and Pop OS, but the issues persist. After every failed attempt, I've reinstalled my Linux distro to start fresh. What could be going wrong? I'd really appreciate any help!
Answers
Make sure youโre checking the permissions and ownership of your shared files and folders. Sometimes, issues arise from not having the right permissions set on the directories you are trying to share. You can run `ls -l` on the folders to see who has access and adjust with `chown` or `chmod` commands if needed. Also, consider using a basic setup for smb.conf before making complex changesโsometimes less is more!
Reply to this answer
It sounds like youโre having a tough time! From what youโve described, itโs hard to pinpoint the exact cause since youโve tackled so many setups. Iโd suggest deciding on one distro and protocol firstโstick with Linux Mint if thatโs what you started with, and use Samba. Then, find a detailed guide and follow it step by step. Constantly switching things up can make it harder to spot what's wrong. Getting familiar with one way might help you sort it out more efficiently.
Reply to this answer
Have you looked at the resources page for troubleshooting? They often have specific solutions for common Samba issues. Plus, running everything in a virtual machine for testing can save you time and headaches in case of mistakes. Backup regularly and practice in the VM environment first!
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions