Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] sshd group usable?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Sujao
l33t
l33t


Joined: 25 Sep 2004
Posts: 677
Location: Germany

PostPosted: Fri Sep 26, 2008 3:11 pm    Post subject: [solved] sshd group usable? Reply with quote

Hi,

I would like to let only people login via ssh that are in a "ssh" group. I found out that I already have the "sshd" group with gid 22 in /etc/group. I wonder whether this group is reserved for the ssh daemon or I can use it freely. My concern is that if I add somebody to sshd and the daemon uses this group in some way, this user could then manipulate the daemon because he has group permissions.

How can I check whether there is a security issue?

I didn't find any files belonging to group sshd, am I on the safe side then?


Last edited by Sujao on Wed Oct 08, 2008 9:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
vuakko
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2007
Posts: 138
Location: Helsinki, Finland

PostPosted: Sat Sep 27, 2008 1:25 am    Post subject: Reply with quote

I'm quite sure that the user/group sshd is the account sshd is run under. Idea is that, just as with any server, if it is run
under an account without any privileges, then a cracker gains little by cracking the ssh server. So just create a new group.
Back to top
View user's profile Send private message
Sujao
l33t
l33t


Joined: 25 Sep 2004
Posts: 677
Location: Germany

PostPosted: Sat Sep 27, 2008 11:46 am    Post subject: Reply with quote

Well, I couldn't find any files belonging to sshd and the sshd process runs as root.

Code:
user@host ~ $ ps aux | grep sshd
user     847  0.0  0.0   5404   740 pts/5    R+   13:44   0:00 grep --colour=auto sshd
root     11679  0.0  0.0  37564  1084 ?        Ss   Sep26   0:00 /usr/sbin/sshd
Back to top
View user's profile Send private message
manaka
Apprentice
Apprentice


Joined: 23 Jul 2007
Posts: 178
Location: Spain

PostPosted: Tue Oct 07, 2008 9:30 pm    Post subject: Reply with quote

user and group sshd is used by the openssh daemon when compiled with privilege separation. It runs as such user during the transitory preauthentication phase. See http://article.gmane.org/gmane.network.openssh.devel/1677/match=openssh+privilege+separation+user+sshd for the full details.

You should create another group for the users allowed to login via ssh.
_________________
Javier Miqueleiz

"Listen to your heart. It knows all things, because it came from the Soul of the World, and it will one day return there."
Back to top
View user's profile Send private message
Sujao
l33t
l33t


Joined: 25 Sep 2004
Posts: 677
Location: Germany

PostPosted: Wed Oct 08, 2008 9:27 pm    Post subject: Reply with quote

great, thx for the info :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum