mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-21 17:11:58 +00:00
Fix vinz VNC for non-root users
Relax permissions a tad to allow users to attempt to connect if they otherwise know the socket name.
This commit is contained in:
parent
5df30881f8
commit
2f3a8619e8
@ -31,7 +31,8 @@ def assure_vinz():
|
||||
_vinztoken = base64.b64encode(os.urandom(33), altchars=b'_-').decode()
|
||||
os.environ['VINZ_TOKEN'] = _vinztoken
|
||||
os.makedirs('/var/run/confluent/vinz/sessions', exist_ok=True)
|
||||
|
||||
os.chmod('/var/run/confluent/vinz', 0o711)
|
||||
os.chmod('/var/run/confluent/vinz/sessions', 0o711)
|
||||
_vinzfd = subprocess.Popen(
|
||||
['/opt/confluent/bin/vinz',
|
||||
'-c', '/var/run/confluent/vinz/control',
|
||||
|
Loading…
Reference in New Issue
Block a user