View Single Post
Posts: 1,469 | Thanked: 6,989 times | Joined on Apr 2010 @ Czech Republic
#25
Good job finding the permission issues, thanks!

Originally Posted by kureyon View Post
I would rather the ownership of directories issue be fixed instead of grant full rwx to all users.
I for now added
Code:
chmod -R a+rw /opt/modrana
to the postinst script. I know this is not ideal, but I dont have a real N900 (well, yet ) so I cant just look what the default username/uid is

So, I would like to ask:
  • Whats the default username/uid ?
  • Is it always the same ?
  • Can it possibly be changed by the user ?
  • Is there some other way how to consistently set folder ownership ?
Then I can replace it by something like this:
Code:
chown -R default_user /opt/modrana
chmod -R o-rw /opt/modrana
chmod -R ug+rw /opt/modrana
I replaced the package with a new one with modified postinst, name/URL are the same.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)

Last edited by MartinK; 2010-07-25 at 09:57. Reason: fix another typo
 

The Following User Says Thank You to MartinK For This Useful Post: