LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 05-28-2008, 07:25 PM   #1
gabsik
Member
 
Registered: Dec 2005
Location: This planet
Distribution: Debian,Xubuntu
Posts: 546

Rep: Reputation: 30
Question Ssh root privileges


My question is:
Does sshd ... needs to listen on a door under 1024 and be run by root to handle user's logins ? Shall we be better run it on a > 1024 door by a dedicated unprivileged user ? When it's started by root does it drop privileges after start or at some other stage ???? Thanks !

Last edited by gabsik; 05-28-2008 at 07:31 PM.
 
Old 05-28-2008, 10:19 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by gabsik
Does sshd ... needs to listen on a door under 1024 and be run by root
No, it doesn't need to listen on a port < 1024, but it probably should. In order to bind to a port < 1024, it needs to run as root.

Quote:
Originally Posted by gabsik
Shall we be better run it on a > 1024 door by a dedicated unprivileged user ?
Probably not. Doing so would mean any shell user on your system could listen on your "sshd port" if the daemon were to die for some reason.

Quote:
Originally Posted by gabsik
When it's started by root does it drop privileges after start or at some other stage ???? Thanks !
This is covered in the manpages for sshd(8).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add user with root privileges and SSH access adamrad Linux - General 8 10-31-2006 02:53 PM
Controlling ssh login without root privileges captgoodnight Linux - Security 1 10-04-2006 11:53 AM
How to mount without root privileges? ni0wn Slackware 3 09-15-2004 05:03 PM
root privileges and permissions evil_lafta Slackware 7 08-20-2003 09:37 PM
Xine and root privileges markus1982 Linux - Software 1 08-18-2003 03:23 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration