為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Unable to launch Firefox profile from "/" directory in Ubuntu22

more options

OS - Ubuntu22 Firefox - Default firefox on ubuntu22 (Mozilla Firefox 103.0.1)

Use case - 1. Custom profile folder (named prof1) contains pref.js and chrome folder with custom css file. 2. prof1 is created in -> "/customData/profiles/prof1" 3. The folder "/customData" has full rwx permissions and is owned by $USER (not by root)

Output -> 1. When launching firefox mentioning the profile -> "$ firefox --profile /customData/profiles/prof1"

The browser does not load, but there is an error box saying Profile Missing Your Firefox profile cannot be loaded. It may be missing or inaccessible.


Questions -> 1. Is it possible to load firefox profile from root directory ? 2. If custom profile folder is created in "/home", then it is launching and working perfectly. How is this possible when the permissions and owner is same as the one in "/customData"

OS - Ubuntu22 Firefox - Default firefox on ubuntu22 (Mozilla Firefox 103.0.1) Use case - 1. Custom profile folder (named prof1) contains pref.js and chrome folder with custom css file. 2. prof1 is created in -> "/customData/profiles/prof1" 3. The folder "/customData" has full rwx permissions and is owned by $USER (not by root) Output -> 1. When launching firefox mentioning the profile -> "$ firefox --profile /customData/profiles/prof1" The browser does not load, but there is an error box saying Profile Missing Your Firefox profile cannot be loaded. It may be missing or inaccessible. Questions -> 1. Is it possible to load firefox profile from root directory ? 2. If custom profile folder is created in "/home", then it is launching and working perfectly. How is this possible when the permissions and owner is same as the one in "/customData"

被選擇的解決方法

The Snap version has limited permissions and likely won't be able to access a profile folder outside your home folder. This version also creates its default profile in a different place (i.e. not in ~/.mozilla and ~/.cache/mozilla).

You will have to use Firefox from the Mozilla server.

從原來的回覆中察看解決方案 👍 0

所有回覆 (4)

more options

Are using Firefox from the Mozilla server as other versions like from Snap might have restrictions on where to place the profile folder?

more options

I am using the default firefox which comes pre installed in ubuntu22. It is snap firefox.

more options

選擇的解決方法

The Snap version has limited permissions and likely won't be able to access a profile folder outside your home folder. This version also creates its default profile in a different place (i.e. not in ~/.mozilla and ~/.cache/mozilla).

You will have to use Firefox from the Mozilla server.

more options

Thanks a lot, It solved the problem.

With firefox from Mozilla server, able to load profiles from / directory.