Reply
Thread Tools
pbouda's Avatar
Posts: 35 | Thanked: 37 times | Joined on Nov 2009 @ Alcanena / Portugal
#1
Hi,

is it possible to install a file to the user's directory (i.e. the folder ("/home/user/MyDocs/.documents")? I have some sample files with my application and I want the user to find these files when browsing his filesystem. When I try to do it in my .deb package I get an error message when running "dpkg -i":

error setting ownership of './home/user/MyDocs/.documents/...': Operation not permitted

So this seems not the way to do it. Is there a "legal" way?
__________________
Peter
http://www.peterbouda.eu
 
Posts: 388 | Thanked: 842 times | Joined on Sep 2009 @ Finland
#2
VFAT file system does not support setting file permissions/ownership, but you should be able to just copy/move the files there in your postinst script..

If the exit status from cp/mv does not prevent dpkg from finishing the installation, the error message can just be ignored.

Last edited by hqh; 2010-02-11 at 12:37.
 

The Following 2 Users Say Thank You to hqh For This Useful Post:
pbouda's Avatar
Posts: 35 | Thanked: 37 times | Joined on Nov 2009 @ Alcanena / Portugal
#3
Many thanks! Move has the problems you mentioned, but copy works perfectly.
__________________
Peter
http://www.peterbouda.eu
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:45.