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

Raphael Hertzog hertzog at debian.org
Thu Dec 8 16:47:26 UTC 2016


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).

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: http://www.freexian.com/services/debian-lts.html
Learn to master Debian: http://debian-handbook.info/get/



More information about the tryton-debian mailing list