maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Permission problems after packaging (https://talk.maemo.org/showthread.php?t=71608)

darkmdmn 2011-03-29 12:06

Permission problems after packaging
 
Hey guys,

Some time ago I started developing a front-end GUI for the truecrypt commandline util. My program is working pretty well, so I started packaging it for Maemo5. I couldn't find a real good tutorial that worked, so I tried a bit myself. I now have a .deb package (packaged with MADDE), which installs without problems. When I try to run the application from the menu, it never starts.

I also tried to run it straight from the /usr/bin, than I get a permission denied error. I also chmodded the program to 755, and root had all the necessary permissions, yet the program doesn't start even with root permissions...

I really hope that someone can help me with this problem, because it is becoming pretty annoying xD Because i'm sort of new to the developing on a UNIX system, please let me know what files i need to post, because I have no idea what you guys need as additional info.

Thanks in advance,
Mark

AlMehdi 2011-03-29 12:55

Re: Permission problems after packaging
 
When you do "ls -l /path/to/file" you will see the files permissions.

It should look like this "rxwr-wr-w root root filename"

r = read
x= executable
w= write

Do you see the "x" on the file?

Edit: Oops.. missed that you chmodded to 755...

darkmdmn 2011-03-29 13:03

Re: Permission problems after packaging
 
Yeah, it returns something like:

-rwxr-xr-x 1 root root [date] [file]

AlMehdi 2011-03-29 13:28

Re: Permission problems after packaging
 
Did you use python? How are you trying to launch the program?

Did you use /usr/bin/python /path/to/file


(I am no expert either)

darkmdmn 2011-03-29 13:39

Re: Permission problems after packaging
 
I'm using QT Creator, so it's written in C++. I then packaged it with MADDE. Installed it with admin permissions through XTerm, then tried to launch it using the menu (which only highlights the icon, nothing more), when that didn't work, i tried to launch the program by executing /usr/bin/truecryptgui (the location where the program is installed) as root.

epitaph 2011-03-29 13:44

Re: Permission problems after packaging
 
Quote:

Originally Posted by darkmdmn (Post 977766)
I'm using QT Creator, so it's written in C++. I then packaged it with MADDE. Installed it with admin permissions through XTerm, then tried to launch it using the menu (which only highlights the icon, nothing more), when that didn't work, i tried to launch the program by executing /usr/bin/truecryptgui (the location where the program is installed) as root.

Recently I got this mail from the ovi-store:

Quote:

Thank you for submitting your content to Ovi Publish.

We are unable to process your content because it is not installing properly. Please fill in the following fields in the control file:

Section: Must be user/hidden.

Please rebuild your content with the above information filled in and resubmit.
The Section field in the control file must hold to there needs. I think their is a wiki about packaging and information about the section field.

I hope this helps!

darkmdmn 2011-03-29 14:09

Re: Permission problems after packaging
 
Quote:

Originally Posted by epitaph (Post 977770)
The Section field in the control file must hold to there needs. I think their is a wiki about packaging and information about the section field.

I hope this helps!

Didn't solve the problem. I have followed the wiki about packaging to create the package, however I think I have done somethink wrong. Just don't know where. I basically copy-pasted almost all of the codes and just edited some program-specific info.

nicolai 2011-03-29 14:16

Re: Permission problems after packaging
 
Quote:

Originally Posted by darkmdmn (Post 977766)
I'm using QT Creator, so it's written in C++. I then packaged it with MADDE. Installed it with admin permissions through XTerm, then tried to launch it using the menu (which only highlights the icon, nothing more), when that didn't work, i tried to launch the program by executing /usr/bin/truecryptgui (the location where the program is installed) as root.

And what is the error message?

And can you post the output of
dpkg -L <your_package>

I guess some files are missing in you .deb

darkmdmn 2011-03-29 14:29

Re: Permission problems after packaging
 
Quote:

Originally Posted by nicolai (Post 977791)
And what is the error message?

And can you post the output of
dpkg -L <your_package>

I guess some files are missing in you .deb

The error message is just 'permission denied, that's it'.

The output is:
/usr
/usr/bin
/usr/bin/truecryptgui
/usr/bin/truecryptgui/TruecryptGUI
/usr/share
/usr/share/applications
/usr/share/applications/hildon
/usr/share/applications/truecryptgui.desktop
/usr/share/doc
/usr/share/doc/truecryptgui
/usr/share/doc/truecryptgui/copyright

nicolai 2011-03-29 14:39

Re: Permission problems after packaging
 
and your command is
/usr/bin/truecryptgui/TruecryptGUI or
/usr/bin/truecryptgui ?


All times are GMT. The time now is 09:17.

vBulletin® Version 3.8.8