Re: DropPrivileges problem
'Björn Pedersen' via cherrypy-users <cherrypy-users-/[email protected]>
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
I missed the line that the job is started sa your account. You can only drop privileges if running as a privileged user (root). Am Freitag, 29. April 2016 14:26:32 UTC+2 schrieb Aaron Dalton: > > Thanks, Björn. I'm not entering that number anywhere, though. I'm dropping > to a specified "web" user (u/gid 25000). In fact, my uid and gid are both > 246576, according to "id". > > On Friday, 29 April 2016 01:13:04 UTC-6, Björn Pedersen wrote: >> >> >> >>> KeyError: 'getgrgid(): gid not found: 246576' >>> >>> 246576 is my personal UID. The hosting service is running the script as >>> me, and the intent is that once started, privileges will drop to to uid >>> 25000. What am I doing wrong? >>> >>> Thanks!! >>> >> >> Hi, >> >> 246576 is your *uid*, so you can not use it as gid. Find the correct >> group id (as it seems to be a unix host, running 'id' should give you that >> information. >> >> Björn >> > -- You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected] Visit this group at https://groups.google.com/group/cherrypy-users. For more options, visit https://groups.google.com/d/optout.