Friday, September 19, 2025

Running Firefox as root in a regular user's session is not supported

Selesai install VNC server di Almalinux 9 dan berhasil remote akses ke server Almalinux ada permasalahan lain muncul, tidak bisa membuka Mozilla Firefox dengan kode error "Running Firefox as root in a regular user's session is not supported. ($XDG_RUNTIME_DIR is /run/user/1000 which is owned by user.)".

Setelah mencoba beberapa cara dengan memberikan permission ke user pada direktori firefox tidak membuahkan hasil, akhirnya berhasil dengan command berikut:

# XDG_RUNTIME_DIR=/root/.XDG_RUNTIME_DIR sudo firefox &

Hasilnya mozilla firefox bisa running.