-   Linux - General (
-   -   ordinary user can send an SSH command using root (

xeroblast 03-06-2012 06:31 AM

ordinary user can send an SSH command using root

ive been trying to find a way on how to do this.

as you see, i created a command (an ssh command with port forwarding) for other branch servers to connect to the main server. the other branches will only click on their desktop to connect to the main server with an ssh command. this user account is just an ordinary account due to autologin of the account.

the problem is, i need to port forward a privilege port (such as port 80) like "-L 80:". and only a root user can use this port.

how will i forward a port to a privilege port without changing the privilege of the user? except for this ssh command.

hi2arun 03-06-2012 07:02 AM

If you iptables with 'owner --uid-owner' support, you can try to restrict access to the priv port other than for uid-owner 0.

xeroblast 03-06-2012 10:30 PM

how do i do that in iptables?

about giving access to other users.

All times are GMT -5. The time now is 02:21 AM.