this post was submitted on 01 May 2024
26 points (90.6% liked)
Linux
47952 readers
1675 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I don't fully understand this setup. Did I misunderstand something?
You have a Fedora PC with an NTFS partition mounted to
/run/media/user/share
. The Fedora computer shares a directory/mnt/2666EE3966EE097F
over Samba.Fedora and another computer connect to
/mnt/2666EE3966EE097F/
over Samba, but they show no content.Did you perhaps forget to remount your NTFS partition to
/mnt/2666EE3966EE097F/
? Otherwise I don't see a way to access the content with your current configuration.The configuration change in /etc/fstab is what stopped it being mounted correctly on boot. But is what was recommended for the SMB share.
I'm not sure I understand why it changes from MNT to Media based on the GUI's changes to the drive. If I have it auto-mount, it adds a 2nd listing like this:
Do I combine them in some fashion lol?
No, I'm stupid :'(
You need to put the bommon line
/dev/disk/by-uuid/2666EE3966EE097F /mnt/2666EE3966EE097F auto nosuid,nodev,nofail,x-gvfs-show 0 0
onto the computer with the NTFS partition.The top line
//192.168.0.30/share /mnt/2666EE3966EE097F auto cifs username=user,password=1 0 0
is for mounting the Samba share on another device.Gotcha I appreciate your patience w/ my silly questions lol
If the now correctly mounted folder is empty, is that a read/write issue for:
The Samba service is normally run by root either way. Samba uses the logged in user's uid to access the files. To be able to see the files, the user needs to have permissions for the directory and the contained files. The mnt folder currently only has root permissions, which is why the user can't see the files.
You need to change the permissions of the NTFS mount. I'm not sure what the uid of
user
is, but you can find that out by executingid user
. The numbers are the ids you need. In fstab, you need to add the user's uid and gid by addinguid={},gid={}
to the line.Assuming the uid and gid are 1000, it would look like this:
/dev/disk/by-uuid/2666EE3966EE097F /mnt/2666EE3966EE097F auto nosuid,nodev,nofail,uid=1000,gid=1000,x-gvfs-show 0 0
(you need to remount the partition after the change). You can check if the permissions changed in your file manager.This will change the mount's permissions to the user you want to access it from, but this also means that no other user (except root) will be able to. The link below has the answer if you want it to be accessible by all users.
I used this answer on Superuser, so it's possible that this will not fully work, but I don't have the devices to test it out currently.