View Single Post
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#4
Originally Posted by aka179 View Post
For instace dropbear (ssh server) settings are in /etc/default/dropbear file. File has root-only access. So after reflash I have to 1) restore backup 2) install dropbear-server 3) install xterm 4) run xterm and chmod /etc/default/dropbear so user can write there 5) restore backup again.
That's strange. I would guess osso-backup already runs as root since it needs to restore many files definitely not owned by user so permissions shouldn't be a problem. Check the zip files inside backup directory, there are tons of files that go to various system directories owned by root and it works, one example is /var/lib/bluetooth directory backed up by /etc/osso-backup/applications/bluez.conf. And in the restore part it is even able to kill everything, restore settings and reboot device so it really seems strange that it would run as regular user and didn't have enough permissions.

But if it really doesn't work then I don't know, never tried custom backup configurations.

Originally Posted by aka179 View Post
If I can run osso-backup as root - there will be just 1) restore backup 2) install apps
well, maybe installing apps may overwrite some restored configuration again so it can be
1) install apps
2) restore backup

anyway you should be able to run normal GUI apps as root via the run-standalone.sh which loads environment variables not set for root