maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   change ownership [operation not permitted] (https://talk.maemo.org/showthread.php?t=82569)

eltoffer 2012-02-24 17:22

change ownership [operation not permitted]
 
Ok this is the quest i want to change ownership under MyDocs

(home/user/MyDocs/data)

im logged as SU and this is my command

Code:

# chown -R root.root ./data
and i cant terminal returns "operation not permitted" for each file/folder

what can i do?

nieldk 2012-02-24 17:48

Re: change ownership [operation not permitted]
 
Quote:

Originally Posted by eltoffer (Post 1169300)
Ok this is the quest i want to change ownership under MyDocs

(home/user/MyDocs/data)

im logged as SU and this is my command

Code:

# chown -R root.root ./data
and i cant terminal returns "operation not permitted" for each file/folder

what can i do?

after devel-su (to become root, as you apparently did)
issue command develsh for higher priviledges. That should do it!

rlinfati 2012-02-24 17:57

Re: change ownership [operation not permitted]
 
because vfat/fat/fat32/etc do not support owner, group or acl in general

eltoffer 2012-02-24 18:00

Re: change ownership [operation not permitted]
 
Nop

Code:

~ $ devel-su
password:
~ # develsh
~ # cd /home/user/MyDocs/
~ # chown -R root:root ./data
chown ./data... :operation not permitted


eltoffer 2012-02-24 18:00

Re: change ownership [operation not permitted]
 
Quote:

Originally Posted by rlinfati (Post 1169318)
because vfat/fat/fat32/etc do not support owner, group or acl in general

so what can i do for change ownership to a folder? o i just CANT?

rlinfati 2012-02-24 18:31

Re: change ownership [operation not permitted]
 
Quote:

Originally Posted by eltoffer (Post 1169321)
so what can i do for change ownership to a folder? o i just CANT?

you can not

why you wanna do that ?

eltoffer 2012-02-24 18:43

Re: change ownership [operation not permitted]
 
im trying to deb a pkg from my phone, (for testing) do you know if it is also possible?

itsnotabigtruck 2012-02-24 19:09

Re: change ownership [operation not permitted]
 
Remember to always use devel-su -s /bin/develsh when you want to go root - otherwise you often actually lose capabilities from before you switched to root.

Also, as was already said, the MyDocs folder is on a FAT32 partition, which doesn't support users/groups/permissions at all, so you need to move your files to somewhere else (e.g. /home/user) instead. However, I haven't been able to run dpkg -b successfully anyway, so if that's what you're trying to do it probably isn't going to work.

eltoffer 2012-02-24 20:11

Re: change ownership [operation not permitted]
 
Quote:

Originally Posted by itsnotabigtruck (Post 1169352)

Also, as was already said, the MyDocs folder is on a FAT32 partition, which doesn't support users/groups/permissions at all, so you need to move your files to somewhere else (e.g. /home/user) instead. However, I haven't been able to run dpkg -b successfully anyway, so if that's what you're trying to do it probably isn't going to work.

thanks it works but as you said i cant deb thanks anyway, so the only way to deb is through a pc?

itsnotabigtruck 2012-02-24 22:08

Re: change ownership [operation not permitted]
 
Quote:

Originally Posted by eltoffer (Post 1169372)
thanks it works but as you said i cant deb thanks anyway, so the only way to deb is through a pc?

Yeah. Your best bet is to set up the Harmattan Platform SDK (Scratchbox) on a Debian/Ubuntu install - if you use something else, make a virtual machine. You can then put together a source package and use dpkg-buildpackage to compile it into a .deb. However, that's a lot more complicated of course - I don't think there's a good solution for making "quick and dirty" .debs.

(On the other hand, there's a lot of half-baked .debs for Maemo - it's probably a good thing if people start using the more official tools in order to make high quality .debs)

caco3 2012-02-24 22:31

Re: change ownership [operation not permitted]
 
You always can install a deb as root with this command:
dpkg-i FILENAME.deb
I works from any place in the file system.
The reason you can not alter the owner/group is because of restrictions in Harmattan. Normally on a Linux, root has all rights. But on Harmattan, even root can only change files which belong to himself.
Itsnot clear to me why you want to give root a folder in MyDocs.
Also, like others stated, this anyway is not supported under FAT32

eltoffer 2012-02-26 05:26

Re: change ownership [operation not permitted]
 
i wanted to build a deb FROM my phone but it didnt works so im going to mount a meego on my PC

PC Meego would let me build debs??? hahaha i got that question right now

itsnotabigtruck 2012-02-26 05:46

Re: change ownership [operation not permitted]
 
Quote:

Originally Posted by eltoffer (Post 1169828)
i wanted to build a deb FROM my phone but it didnt works so im going to mount a meego on my PC

PC Meego would let me build debs??? hahaha i got that question right now

The normal version of MeeGo doesn't support either building or installing .deb packages at all - it uses .rpm packages instead.

eltoffer 2012-02-26 06:34

Re: change ownership [operation not permitted]
 
so whats version do i need?


All times are GMT. The time now is 15:28.

vBulletin® Version 3.8.8