Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: dir permissions bug?, for non-existent dirs< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Dec. 31 2004,20:30 QUOTE

Just noticed this a little while ago...maybe it's an oversight or maybe intentional...

If you create a DSL extension which includes files placed into $HOME, there's a possibility of creating directories with root ownership even when using the --no-recursion --numeric-owner options.  For example, I'd made a backup.tar.gz file which included the following:
home/dsl/.mc/ext
home/dsl/.mc/ini
home/dsl/.mc/menu

After installation, I could not use mc as a regular user.  The application needed to write a new file to /home/dsl/.mc/, which it couldn't do because even though the contents of that directory were owned by dsl the actual directory was owned by root.  In order to avoid this I needed to include the .mc directory in the archive:
home/dsl/.mc
home/dsl/.mc/ext
home/dsl/.mc/ini
home/dsl/.mc/menu

If a directory doesn't already exist, it will be created during installation by the copying of the files within the directory.  This I knew.  What I didn't know is that apparently the directory is created with root ownership regardless of its location or contents.

Perhaps the mydsl-install script needs an additional chown function to keep this from occurring.  I don't see anything in tar which will prevent this behavior.
In the meantime, I'll be including non-existent /home/dsl/* directories in the package when necessary.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
0 replies since Dec. 31 2004,20:30 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: dir permissions bug?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code