Charlie Li via plug on 16 Jun 2020 16:56:18 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] sshd as regular user


Rita via plug wrote:
> I am trying to run sshd as a regular user and different port (>1024). 
> 
> I created the keys and made a local copy of sshd_config. I set 
> UsePriviledgeSeperation  no
> UserPAM no
> 
> I start up the server like this. sshd -D -d -p 8888 -f sshd_config
> 
> It starts up.
> 
> But, I keep seeing setgroups() failed: Operation not permitted
> 
> Is there a way to go around this?
> 
No.

From the setgroups(2) man page (from FreeBSD, probably similar on Linux):
>      The setgroups() system call sets the group access list of the current
>      user process according to the array gidset.  The ngroups argument
>      indicates the number of entries in the array and must be no more than
>      {NGROUPS_MAX}+1.
> 
>      Only the super-user may set a new group list.


-- 
Charlie "headwind" Li

(This email address is for mailing list use only; replace local-part
with vishwin for off-list communication)

Attachment: signature.asc
Description: OpenPGP digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug