2

I use Ubuntu for development (12.10 currently). I usually work on files by mounting remote resource in nautilus by SSH. Files on the remote server are owned by different user and my user account is attached to that user's group so I can have full access. The problem I'm experiencing is that every time I edit a file and save it I become the owner of that file. This causes other users not being able to work on those file anymore. It seems like using FTP client like Filezilla solves the problem (ownership does not change) but I don't want to switch back using FTP client. I did a bit of research online and run across couple posts where people were heaving the same issue but the problem was not solved.

4

1 回答 1

0

您正在远程服务器上编辑文件。其他用户是否有权访问您在该服务器上的用户文件夹和文件是否重要?可能不是。

假设您是用户marcin,具有组名marcin,那么您可以将其他用户添加到组marcin中。然后另一个用户 (john) 编辑一个文件并将所有权更改为john:john. 因此,您需要将所有用户添加到 group john。对应该有权访问这些文件的所有用户执行此操作。

不是一个漂亮的解决方案,但我想不出更好的解决方案。

于 2014-04-16T09:35:25.707 回答