Thread
:
how to create a directory as user inside /home/user using the debian package?
View Single Post
dtln
2011-05-23 , 02:44
Posts: 7 | Thanked: 0 times | Joined on May 2011
#
1
Hi, All
I want to create a directory automatically as user inside /home/user using the debian package , is it possible?
for example ,I want to create a directory
/home/user/mydata
I use the postinst , but it seems it doesn't work well, I got the following error:
mkdir: can't create directory '/home/user/mydata': Permission denied
==================================================
# dpkg -i mydeb.deb
file /var/lib/dpkg/tmp.ci/digsigsums cannot be opened
No digsigsums file
Selecting previously deselected package mydeb.
(Reading database ... 42864 files and directories currently installed.)
Unpacking mydeb (from mydeb.deb) ...
No digsigsums file
Setting up mydeb (0.1-1) ...
mkdir: can't create directory '/home/user/mydata': Permission denied
==================================================
here is the postinit:
#! /bin/bash
mkdir -p /home/user/mydata
any ideas about it?
Thanks advance for your help
Last edited by dtln; 2011-05-23 at
02:55
.
Quote & Reply
|
dtln
View Public Profile
Send a private message to dtln
Find all posts by dtln