Debnath Sinha
2013-10-03 21:11:49 UTC
I'm trying to start vncserver inside an lxc using supervisord. Since
supervisord is starting as root, I have added user=ubuntu to the config to
run it as "ubuntu" user.
Here is the config:
[program:vnc]
directory=/
user=ubuntu
environment=HOME="/home/ubuntu",USER="ubuntu"
priority=901
command=/usr/bin/vncserver -fg -geometry 1024x768 :1
However, it is not finding the password file in /home/ubuntu/.vnc/passwd,
my question is whether I need to do something special to set $HOME to
/home/ubuntu or whether I should expect these to bet set when I asked
supervisor to run it as user=ubuntu?
Is setting user=ubuntu the same as doing: su ubuntu; <cmd>?
Thanks,
-Debnath
supervisord is starting as root, I have added user=ubuntu to the config to
run it as "ubuntu" user.
Here is the config:
[program:vnc]
directory=/
user=ubuntu
environment=HOME="/home/ubuntu",USER="ubuntu"
priority=901
command=/usr/bin/vncserver -fg -geometry 1024x768 :1
However, it is not finding the password file in /home/ubuntu/.vnc/passwd,
my question is whether I need to do something special to set $HOME to
/home/ubuntu or whether I should expect these to bet set when I asked
supervisor to run it as user=ubuntu?
Is setting user=ubuntu the same as doing: su ubuntu; <cmd>?
Thanks,
-Debnath