Fedora 39
 KDE DE
 Current Login: "User" with Password "1" 

This allows me to connect to the share; however, it is “empty” on both the local and the remote machines.

I’ve followed at least 5-6 guides all w/ completely different instructions and would love somebody w/ experience on this to point to my fuck up and what I’m very clearly missing.

sudo nano /etc/samba/smb.conf

[global]

[share]

   path = /mnt/2666EE3966EE097F/
   writeable = yes
   browseable = yes
   public = yes
   create mask = 0777
   public = yes
   guest ok = yes

sudo nano /etc/fstab

/dev/disk/by-uuid/D02A6F152A6EF7BC /mnt/D02A6F152A6EF7BC auto nosuid,nodev,nofail,x-gvfs-show 0 0
//192.168.0.30/share /mnt/2666EE3966EE097F cifs username=user,password=1 0 0

Dolphin also has this tab below (local machine w/ the mounted drive), but any password input doesn’t do anything (the explorer flashes w/ no info about what the “Set Password” button did)

  • Certainly_No_Brit@discuss.tchncs.de
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    6 months ago

    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 executing id user. The numbers are the ids you need. In fstab, you need to add the user’s uid and gid by adding uid={},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.