You are not logged in.

#1 2023-06-16 22:36:28

oldwizard1010
Member
Registered: 2023-06-16
Posts: 1

Can't create chromium shared profile

I am trying to create chromium shared data folder
i created /home/sharedTest/ folder,
for example, i have 'user1' and 'user2', they are in 'myusersgroup' group
i set permissions for /home/sharedTest/, using:

setfacl -m "g:myusersgroup:rwx" /home/sharedTest/

then from user1:

chromium --user-data-dir=/home/sharedTest/test

do some stuff in chromium, install extension, for example, then close

then from user2:

chromium --user-data-dir=/home/sharedTest/test

and it can't properly start:
------------------------
[1828546:1828546:0616/223002.067184:ERROR:process_singleton_posix.cc(458)] readlink failed: Permission denied (13)
[1828546:1828546:0616/223002.067208:ERROR:process_singleton_lock_posix.cc(20)] readlink(/home/sharedTest/test/SingletonLock) failed: Permission denied (13)
[1828546:1828546:0616/223002.067216:ERROR:process_singleton_posix.cc(310)] readlink(/home/sharedTest/test/SingletonLock) failed: Permission denied (13)
[1828546:1828546:0616/223002.067218:ERROR:process_singleton_posix.cc(334)] Failed to create /home/sharedTest/test/SingletonLock: Permission denied (13)
[1828546:1828546:0616/223002.067223:ERROR:process_singleton_posix.cc(458)] readlink failed: Permission denied (13)
[1828546:1828546:0616/223002.067225:ERROR:process_singleton_lock_posix.cc(20)] readlink(/home/sharedTest/test/SingletonLock) failed: Permission denied (13)
[1828546:1828546:0616/223002.067235:ERROR:chrome_browser_main.cc(1424)] Failed to create a ProcessSingleton for your profile directory. This means that running multiple instances would start multiple browser processes rather than opening a new window in the existing process. Aborting now to avoid profile corruption.
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
------------
in some cases it shows, that it can't read Preferences file and opens just blank chromium profile,
it looks like chromium sets some file permissions by it's own, because i, for example, can make shared profile folder with firefox (but i need chromium too),  or, i can run

sudo chmod -R 2770 /home/sharedTest/test

and then user2 can use it as normal profile folder, but after this user1 can't use it the same way again,
so
Has anybody dealt with such stuff, or, may be the solution can be to restrict chromium from setting its own permissions somehow

Offline

Board footer

Powered by FluxBB