problem mounting a share
borissh1983 at gmail.com
borissh1983 at gmail.com
Sun Jan 3 17:41:33 IST 2021
Hi Shlomo ,
Please Remember that smb has a different model of perms that Gnu/Linux, so does the uid assigned by the OS - in fact if you will try to assign Windows permissions to a Samba share you are guaranteed to have a bad time. I found that the best practise when doing smb/cifs share (even windows to windows) is ALWAYS have a password.
When you share between a pi and Gnu/Linux machines , sometimes it is easier to just use sshfs and nfs to share data than using SMB.
On Sunday, 3 January 2021 14:14:18 IST Shlomo Solomon wrote:
> After mounting with either of the above, all files "seem" to be owned
> by root, even though that is not true. And obviously I cannot update or
> delete files.
>
By default when you mount cifs you would get that ,you can force a local user to mount with.
use the uid argument with mount.
example :
sudo mount -t cifs //pi/shared_with_username /media/MYUSER/rpi -o uid=1000,user=MYUSER,pass=PSWD
remember to mount it on a folder that your user have read/write permissions on it.
> If I do smb://solomon@pi/PI-PUBLIC/ in Dolpin file manager, I'm also
> asked for a password, but then something strange happens. I CAN read
> and write files, but Dolphin does not show any permissions.
>
It could be that you have both guest AND authentication setup in samba (which might trigger such issue).
Would it be possible to share your smb conf please ?
Would it be possible to open traces from your client machine so we could help you debug this issue ?
> And finally, the only solution that DOES work "correctly" in Dolphin is:
> fish://pi/media/PUBLIC/
>
> BUT, I do have one "serious problem" with not being able to properly
> mount the share. Libreoffice and KIO slave do not "play well together"
> - a known issue - so the fish:// solution does not work.
>
> What am I missing here? I know using samba to communicate between a PI
> and Kubuntu is not the best way, but in the past, it did work for me
> and I don't know what I screwed up. smb.conf on the PI has not changed
> for MANY years, but I have done countless changes, updates and upgrades
> to the Kubuntu (and before that Mandriva) machines.
>
More information about the Linux-il
mailing list