We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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

  • 3 个回答
  • 2 人有此问题
  • 1 次查看
  • 最后回复者为 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.

所有回复 (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

由James于修改

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?