maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   chmod does not work on N900 (https://talk.maemo.org/showthread.php?t=47953)

acano 2010-03-21 17:50

chmod does not work on N900
 
I compiled a file using the scratchbox on the frematle-armel target. And I save it directly to the MyDocs folder of my N900.

When I try to execute it I am not able because it has execution permission. I make "sudo gainroot" and execute "chmod a+x program" but it does not let me to execute it. Pleasee, could someone tell me the reason.

Thanks!

sampppa 2010-03-21 17:53

Re: chmod does not work on N900
 
You cant run file on MyDocs folder because it is on FAT partition. Copy that binary for example to /opt/ and it should work...

les_garten 2010-03-21 17:54

Re: chmod does not work on N900
 
Quote:

Originally Posted by acano (Post 576062)
I compiled a file using the scratchbox on the frematle-armel target. And I save it directly to the MyDocs folder of my N900.

When I try to execute it I am not able because it has execution permission. I make "sudo gainroot" and execute "chmod a+x program" but it does not let me to execute it. Pleasee, could someone tell me the reason.

Thanks!

UNIX permissions don't do anything on a FAT partition. MyDocs is a FAT partition. Move it up a dir or two and set permissions and +x flg.

filologen 2010-03-21 17:54

Re: chmod does not work on N900
 
It's because your MyDocs is formatted as FAT32. You have to put the file somewhere else, e.g. in /opt/.

EDIT: Ok, you guys beat me to it;-)


All times are GMT. The time now is 08:58.

vBulletin® Version 3.8.8