Hi Simon, the two "-u" are some copy&paste screw up. Sorry. The be more precise: The Python-Script runs:
args = "%s register --host %s --username %s --password %s " % (cmd, gateway.value, username.value, password.value) p = subprocess.Popen(args, shell=True, stdout=logFile, stderr=errFile, close_fds=False) With the sudo -u wwwrun.... I just tried to simulate this. Just to be sure: the problem is not, that the user wwwrun's shell is set to /bin/false? BR Simon Seif On Wed, Sep 1, 2010 at 5:36 PM, Simon Morlat <[email protected]> wrote: > > > $ sudo -u sudo -u wwwrun /usr/local/bin/linphonecsh init > Works fine and the demon is started. > > Why two -u ? > The daemon and linphonecsh must be run as same user. They share a unix pipe > you can see in /tmp/ > > > Simon > > $ sudo -u wwwrun /usr/local/bin/linphonecsh register --host <host> > --username <username> --password <password> > ERROR: Failed to connect pipe: Connection refused > > Running the same as root works fine. > Obviously this is a permission's problem. > > Any ideas what groups/file-permissions are necessary to run linphonec(sh)? > > BR > Simon Seif > > _______________________________________________ > Linphone-users mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/linphone-users > > > _______________________________________________ > Linphone-users mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/linphone-users > > _______________________________________________ Linphone-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/linphone-users
