We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55542ae commit b74be3eCopy full SHA for b74be3e
cms/io/service.py
@@ -268,11 +268,7 @@ def start_backdoor(self, backlog=50):
268
socket.SOCK_STREAM)
269
backdoor_sock.setblocking(0)
270
backdoor_sock.bind(backdoor_path)
271
- user = pwd.getpwnam(config.cmsuser)
272
- # We would like to also set the user to "cmsuser" but only root
273
- # can do that. Therefore we limit ourselves to the group.
274
- os.chown(backdoor_path, os.getuid(), user.pw_gid)
275
- os.chmod(backdoor_path, 0o770)
+ os.chmod(backdoor_path, 0o700)
276
backdoor_sock.listen(backlog)
277
self.backdoor = BackdoorServer(backdoor_sock, locals={'service': self})
278
self.backdoor.start()
0 commit comments