LINUX.ORG.RU

При монтировании сетевой папки не получается менять права

 , , , ,


0

1

Всем, доброго времени суток. Проблема странная, при монтировании сетевой папки по cifs протоколу, папка в которую монтируется становится под владения Root и изменить этого не получается, и причем даже не ругается при изменении. ОС Fedora. Монтирую просто mount.cifs //fs/sared ~/folder -o user=xxx,pass=yyy и до этого папка принадлежала пользователю, то после - руту. и что странно не работает из наутилуса, ну это другое. На файловом сервере OC Debian, OpenMediaVault. Права на папки 777, на файлы 666 Права самба у пользователя полные, ACL тоже разрешения даёт. пробовал использовать версии cifs с опцией ver=1.0/3.0 Может кто подскажет где проблема. В Минт тоже такая проблема, но там через графический интерфейс работает



Последнее исправление: Stazot (всего исправлений: 1)

man mount.cifs
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. See the section on FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS below for more information.
forceuid
instructs the client to ignore any uid provided by the server for files and directories and to always assign the owner to be the value of the uid= option. See the section on FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS below for more information.
cruid=arg
sets the uid of the owner of the credentials cache. This is primarily useful with sec=krb5. The default is the real uid of the process performing the mount. Setting this parameter directs the upcall to look for a credentials cache owned by that user.
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. See the section on FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS below for more information.
forcegid
instructs the client to ignore any gid provided by the server for files and directories and to always assign the owner to be the value of the gid= option. See the section on FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS below for more information.

https://linux.die.net/man/8/mount.cifs

Use uid and gid mount options.

anonymous
()
Ответ на: комментарий от anonymous

Ну раньше всё было норм, что изменилось, может на сервере надо что то дописать, не подскажете?

Stazot
() автор топика
Ответ на: комментарий от anonymous

Такая проблема появилась с переходом на новый debian, со старым такой проблемы нет и что бы примонтировать раньше, хватало имени и пароля в опциях. Это где то можно отключить, маны почитал, написано что это нужно если сервер не поддерживает UNIX расширения.

Stazot
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.