saving files on the network
shimi
linux-il at shimi.net
Tue Dec 28 10:31:48 IST 2021
On Tue, Dec 28, 2021 at 5:59 AM Shlomo Solomon <shlomo.solomon at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20211228/412260ac/attachment-0001.html>
More information about the Linux-il
mailing list