[tryton-debian] Bug#847436: Bug#847436: Bug#847436: Bug#847436: tryton-server: Upgrade does not work without tryton-modules-webdav

Mathias Behrle mbehrle at debian.org
Fri Dec 9 10:16:52 UTC 2016


* Raphael Hertzog: " [tryton-debian] Bug#847436: Bug#847436: Bug#847436:
  tryton-server: Upgrade does not work without tryton-modules-webdav" (Thu, 8
  Dec 2016 17:47:26 +0100):

> On Thu, 08 Dec 2016, Mathias Behrle wrote:
> > I am not aware of a way to bypass /etc/passwd and to use temporarily another
> > shell (and this probably is exactly as it should be;)). The shell could be
> > changed by chsh for the time of the maintenance tasks, but it would have to
> > be reset afterwards. For me the risk of forgetting to reset the shell is
> > bigger than to do the commands as root (which I admit has the downside of
> > inadvertently setting root permissions on log files if the user defines a
> > logging configuration, but I expect the latter to be a very special mishap)
> > and thus will keep the shell as before and use the root command line in the
> > docs as before.
> > 
> > If you have a better solution please let me know.  
> 
> I would recommend you to show this command line:
> $ sudo -u tryton trytond-admin ...
> 
> Another option is:
> # su - tryton -s /bin/sh -c "trytond-admin ..."
> 
> sudo does not need the shell to work, and with su you can override the
> user's default shell
> 
> sudo is common enough that even a non-sudo user could translate
> its invocation into the "su" one (or assume that the command also ought to
> work as root).

Thanks a lot, learned again something.



-- 

    Mathias Behrle
    PGP/GnuPG key availabable from any keyserver, ID: 0xD6D09BE48405BBF6
    AC29 7E5C 46B9 D0B6 1C71  7681 D6D0 9BE4 8405 BBF6



More information about the tryton-debian mailing list