LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   ordinary user can send an SSH command using root (http://www.linuxquestions.org/questions/linux-general-1/ordinary-user-can-send-an-ssh-command-using-root-932994/)

xeroblast 03-06-2012 05:31 AM

ordinary user can send an SSH command using root
 
hello,

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:192.168.0.0: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 06: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 09:30 PM

how do i do that in iptables?

about giving access to other users.


All times are GMT -5. The time now is 11:31 AM.