On Tue, Dec 28, 2021 at 5:59 AM Shlomo Solomon <shlomo.solo...@gmail.com>
wrote:

> I think the relevant line in my /etc/fstab is the equivalent of what
> you suggested, but for some reason, all files "seem" to be owned by
> root, rather than the actual owner, so I use smb:// or fish:// in KDE
> Dolphin and then I can access files properly.
>
> The fstab line is:
>
> //pi/PI-PUBLIC /mnt/PI-PUBLIC cifs
> user,credentials=/etc/samba/auth.pi.solomon 0 0
>
>
CIFS file ownership is root unless you also specify in your mount command
-o uid=<user-id-of-your-regular-KDE-user>  (or equivalent uid=user in fstab
options column)

There's also a 'multiuser' CIFS mount option, but not sure you want to go
there, especially if you're a single luser on your workstation accessing
this shared CIFS mount. Once all files appear with yourself as owner, many
permission problems (derived from 'other' not having [write on
files/execute on dirs] permissions) will go away. You can also use dir_more
and file_mode to force 777/666 for all files in the mount, but that's
frowned upon for obvious reasons :-)

HTH,

-- Shimi
_______________________________________________
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to