Opened 5 years ago

Closed 5 years ago

#1389 closed defect (fixed)

deegree starts firefox in sudo, taking ownership of .mozilla profile

Reported by: hamish Owned by: live-demo@…
Priority: critical Milestone: OSGeoLive8.0
Component: OSGeoLive Keywords: deegree
Cc:

Description

Hi,

the degree start icon runs ~/bin/launch_assist.sh, which stars the server in sudo.

the script then starts 'firefox -new-tab', as root, which has a couple effects:

  • if firefox is already running, you get an error that it it's already running.
  • if firefox wasn't already running, it starts, but then root owns various profile files in ~user/.mozilla/, and the regular user can no longer start firefox.

Shame on firefox for writing root's stuff to ~user/ and not /root/.mozilla, maybe the work-around is to edit deegree_start.sh to "sudo -u user" firefox? seems a bit like going in circles.

thanks, Hamish

ps- "export FOO=bar" is a bashism, should replace with "FOO=bar; export FOO"

Change history (2)

comment:1 Changed 5 years ago by hamish

try for a fix in r11865.

Hamish

comment:2 Changed 5 years ago by kalxas

Resolution: fixed
Status: newclosed

confirmed fixed in build [11868]

Note: See TracTickets for help on using tickets.