Este site está com funcionalidades limitadas enquanto realizamos manutenção para melhorar sua experiência de uso. Se nenhum artigo resolver seu problema e você quiser fazer uma pergunta, nossa comunidade de suporte pode te ajudar em @FirefoxSupport no Twitter e /r/firefox no Reddit.

Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Saiba mais

Esta discussão foi arquivada. Faça uma nova pergunta se precisa de ajuda.

How I am supposed to update Firefox in a root-only location when it refuses to start as root using sudo?

  • 3 respostas
  • 2 têm este problema
  • 1 visualização
  • Última resposta de user1494117

more options

I am using a custom installation of Firefox on Fedora located in /usr/local/firefox. This location is (obviously) read-only for an ordinary user and can be written to by root only. I don't want to make the installation directory writable by ordinary user, so when notified by Firefox that it could not install updates I used sudo to start it in a root privilege mode to allow installation of the updates, then I shut it down and started as an ordinary user again. Beginning version 60 this is no more possible, requiring either complete manual install, or starting a complete Gnome/KDE session for root just to allow Firefox to update (sorta clumsy...). If it is absolutely necessary to refuse starting under sudo, wouldn't it be possible to provide something like update-only mode of the browser which would allow running as root under sudo? Thanx.

I am using a custom installation of Firefox on Fedora located in /usr/local/firefox. This location is (obviously) read-only for an ordinary user and can be written to by root only. I don't want to make the installation directory writable by ordinary user, so when notified by Firefox that it could not install updates I used sudo to start it in a root privilege mode to allow installation of the updates, then I shut it down and started as an ordinary user again. Beginning version 60 this is no more possible, requiring either complete manual install, or starting a complete Gnome/KDE session for root just to allow Firefox to update (sorta clumsy...). If it is absolutely necessary to refuse starting under sudo, wouldn't it be possible to provide something like update-only mode of the browser which would allow running as root under sudo? Thanx.

Todas as respostas (3)

more options

The Firefox folder needs read/write permissions for the user to get updates if using the official builds from www.mozilla.org/firefox/all/ and not a third-party package from a repository.

A lot of people either place the extracted Firefox tarball in a folder in Home to make it easy or make sure folder has read/permissions if elsewhere.

https://support.mozilla.org/en-US/kb/install-firefox-linux

Alterado por James em

more options

Thank you, James, for the response, but it does not quite solve my issue. I am not the only user of the system, thus installing it into my home directory is not an option at all. And, as I stated in my question, I don't want to make the installation directory writable by users - it is very undesirable.

more options

Tell me what classes the other users are in, that would be helpful. you could always set the permissions to +r [i forget what numbers to type] for said users only and run it as root to upgrade when needed or is that not desirable?