Невозможно изменить разрешения для общей папки Windows, когда она уже подключена, но их можно изменить во время подключения.
сначала размонтируйте общий ресурс с помощью:
sudo umount /mnt/windowshare/
затем снова смонтируйте общий ресурс с этими новыми аргументами:
sudo mount.cifs -o username=myuser,uid=youruser,gid=yourgroup //xxx.xxx.xx.xx/myfolder /mnt/windowsshare/
цитата из mount.cifs man
uid=arg sets the uid that will own all files or directories on the mounted filesystem when the server does not provide ownership information. It may be specified as either a username or a numeric uid. When not specified, the default is uid 0. The mount.cifs helper must be at version 1.10 or higher to support specifying the uid in non-numeric form.
gid=arg sets the gid that will own all files or directories on the mounted filesystem when the server does not provide ownership information. It may be specified as either a groupname or a numeric gid. When not specified, the default is gid 0. The mount.cifs helper must be at version 1.10 or higher to support specifying the gid in non-numeric form.
чтобы найти пользователя, откройте терминал и выполните эту команду:
whoami
чтобы найти вашу группу выполните эту команду:(в этом случае правая группа будет первой слева)
groups