[lkml]   [1996]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: UID permissions mappings for "privileged ports" feature -- anybody done?
> Seems to me it would be easy to make a simple switch statement for
> privileged ports which would allow a certain user to access a certain
> privileged port -- and only that user (even disallow root if specified) --
> that way it would be easier to set up well known services without having
> to sit there and set up suid bits, etc. for all the servers. This would
> be most useful for standalone servers such as web servers, etc.

Not a kernel issue: You can spawn such things from inetd or you can write
a setuid program that does

allocate socket
bind to priviledged port
drop priviledges
exec user program

 \ /
  Last update: 2005-03-22 13:38    [W:0.068 / U:0.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site