Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

So, this is what I want to do:

there is a local non-superuser and it can upload the file into /tmp.

Using this account, I download a telnet server package equivalent to what is already installed.

I modify some settings, setting all file directories into /tmp.

Then compile and run as a standalone telnet server.

Is this possible? If not, what makes this impossible?

Or as a non-privileged user, would there be any way to enable telnet?

share|improve this question

closed as not a real question by Nifle, techie007, Renan, ChrisF, DragonLord Sep 22 '12 at 20:04

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

1 Answer

It is possible, but with several limitations:

  • Since you aren't the superuser, your server cannot bind to the standard Telnet port 23, or any other port in 1-1024. (Larger ports should work, unless there are additional restrictions implemented.)

  • Since you aren't the superuser, your server will only allow logins to your own account – it lacks the necessary privileges to switch to other users' accounts.

  • The standard telnetd server doesn't support being run as a "daemon", only inside inetd – and since you cannot modify the system-wide /etc/inetd.conf, you would need to run your own separate inetd (or xinetd, or ucspi-tcp).

In other words, it is basically useless, unless you find a way to get root.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.