Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只有一个可以接受 SSH 连接的用户(比如“goodk”)。因此,除了接受 SSH 连接的用户之外,我无法使用 Tramp 编辑其他用户可以访问的文件。我怎样才能做到这一点?
我目前如何做到这一点:
我使用终端。从终端我登录到用户“goodk”。su然后我使用or切换用户sudo。
su
sudo
您是否检查过: 如何使用 Emacs Tramp 来双跳 ssh? 或 http://jeremy.zawodny.com/blog/archives/000983.html
或 http://codesnippets.joyent.com/posts/show/366
对于远程服务器,文件正在由通过 ssh 连接的用户读取/写入。如果要修改的文件由不同的用户拥有,那么它们将需要 ssh 用户可读/可写。