Operating System - HP-UX
1829749 Members
1647 Online
109992 Solutions
New Discussion

Allowing root access by port number

 
Mike_21
Frequent Advisor

Allowing root access by port number

I personally not familiar with this, but is it possible to allow a user root access by logging into a specific port number.

For example if use x logs into port 3456, he will have the same rights as root.......
2 REPLIES 2
Santosh Nair_1
Honored Contributor

Re: Allowing root access by port number

There are ways to accomplish this, but why would you want to? Most network security exploits do this...i.e. access the port and force a buffer overflow which could give you root access to the machine if the process running on the port is running as root and if the process doesn't protect against the buffer overflow.

-Santosh
Life is what's happening while you're busy making other plans
Mark Greene_1
Honored Contributor

Re: Allowing root access by port number

you can specify certain ttys in /etc/securettys to allow root access, but just attaching to the port doesn't automatically make the login root, you have to login that way.

But I wouldn't recommend it, even if you have hard-wired tty connections. Make your users login with a unique ID and then su to root. Better yet, activate sudo for the occasional root-required function for an othewise non-root user.

HTH
mark
the future will be a lot like now, only later