LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-06-2012, 05:31 AM   #1
xeroblast
LQ Newbie
 
Registered: Nov 2007
Location: planet earth
Distribution: openSUSE 11.4
Posts: 9

Rep: Reputation: 0
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.
 
Old 03-06-2012, 06:02 AM   #2
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
If you iptables with 'owner --uid-owner' support, you can try to restrict access to the priv port other than for uid-owner 0.
 
Old 03-06-2012, 09:30 PM   #3
xeroblast
LQ Newbie
 
Registered: Nov 2007
Location: planet earth
Distribution: openSUSE 11.4
Posts: 9

Original Poster
Rep: Reputation: 0
how do i do that in iptables?

about giving access to other users.
 
  


Reply

Tags
forwarding, port, root, ssh



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome Bluetooth applet in Lenny: root user vs. ordinary user SuSE_Lamer Linux - Desktop 1 03-20-2009 05:41 AM
Gnome Bluetooth applet in Lenny: root user vs. ordinary user SuSE_Lamer Debian 1 02-25-2009 01:30 AM
giving root privilage to ordinary user... skie_knite007 Programming 5 09-13-2005 09:03 AM
How a ordinary user can run commands having only root privilige in C? shivaligupta Programming 1 01-31-2005 04:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration