Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6548

Troubleshooting • Re: Mounting a Windows shared folder is ok, but not writing in

$
0
0
Hi!

I was following a tuto to mount a Windows folder share.
Mounting is ok, I can see the content, open TXT file and read the content.

I use this command :
sudo mount -t cifs -o user=smb,password=MyPassword //192.168.1.15/smb-folder$ /mnt/samba-asus/

the user smb + MyPassword are a valid user on the Windows PC.
The share setting is only for this user.
The security on this folder is FULL RIGHTS to every one (to test).

But I can't create or modify any file or folder.

Please, do you have any idea?

Thank you.

You're dealing with two sets of permissions: what is set on the server (windows box) and what the Linux client sees.

CIFS/SMB doesn't do Linux style owner, group, and permissions. The Linux driver fakes them at mount time.

Your mount command doesn't set a local user, group, or permissions so as far as the Pi is concerned everything on the windows box will have an owner of root, a group of root, and, probably, 755 (rwxr-xr-x)permissions. That means only root can write to the server assuming permissions on Windows allow writing at all.

See the output from

Code:

man mount.cifs
and/or [shameless self promotion]viewtopic.php?t=302752[/shameless self promotion]

Statistics: Posted by thagrol — Sun Dec 29, 2024 6:58 pm



Viewing all articles
Browse latest Browse all 6548

Trending Articles