Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse remote system explorer and sudo

Tags:

eclipse

I use Eclipse RSE to access files on a web server. To establish a sftp connection with Eclipse RSE I use my HippieBandJam user-ID. To edit files I need root access which I only can gain with the sudo command. In Eclipse RSE I have tried to start a new ssh terminal, use sudo su and then refreshed the sftp tree but this does not seem to work. Does anyone have any idea how to "upgrade" the sftp connection so I can edit the files?

like image 390
OskarH Avatar asked Dec 14 '12 08:12

OskarH


1 Answers

If you want something really exotic, you could:

  1. Compile a tiny program in C that does the only thing: execs the shell
  2. Set a suid bit for the executable
  3. Create a new user and set our freshly compiled binary as this user's login shell
  4. Set up proper permissions for the binary, allowing only the new user to execute this file
  5. Use new user's credentials to log onto the server

He-he :-)

like image 155
eyevan Avatar answered Nov 04 '22 06:11

eyevan