1

I have only one user (say "goodk") that can accept SSH connections. So, I am not able to use Tramp to edit files which are accessible to other users than the one that accepts SSH connection. How can I achieve this?

How I do this currently:

I use terminal. From terminal I login to user "goodk". Then I switch user using su or sudo.

2 Answers 2

2

Have you checked: How can I use Emacs Tramp to double hop ssh? or http://jeremy.zawodny.com/blog/archives/000983.html

or http://codesnippets.joyent.com/posts/show/366

Sign up to request clarification or add additional context in comments.

2 Comments

But how will any of this help the user that owns the file does not allow ssh and the file is not accessible by other users?
Hemal Pandya: Because tramp provides su and sudo methods.
0

To the remote server the files are being read/written by the user that connects via ssh. If the files to be modified are owned by a different user then they will need to be readable/writable by the ssh user.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.