LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-30-2006, 06:28 PM   #1
FnordPerfect
Member
 
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
Let dpkg install files with custom permissions and ownership?


Hi!

I'm using Debian SID, I'm the only user of this box.

I am member of the group 'games', and made /usr/games and all files and directories below to belong to this group and be writable by members of this group, so I can exchange graphics and sounds or whatever I like as a normal user.

However, every time I upgrade a package or install a new one, its files belong to root:root.

atm I let ownerships be changed with a cronjob.

So I was wondering whether there is a way to let apt/dpkg automatically change permissions and ownership of installed files, according to given rules, e.g.:

* all files below a certain path

* all files from packages in a certain group

dpkg-statoverride does not seem to be made for such a purpose.

I made /usr/games sticky with chmod +s but dpkg does not seem to respect that.

Thanks in advance
fabian
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy files retaining ownership/permissions stefaandk Linux - Newbie 4 09-07-2006 08:25 PM
Group Permissions and Ownership of files and folders bugeyemonster Linux - General 1 04-19-2006 01:52 AM
Apache can't write files despite permissions/ownership linuxChique Linux - Software 2 02-20-2006 10:08 AM
changing permissions and ownership on many files and folders Cinematography Linux - General 4 08-01-2005 03:20 AM
Question about ownership/permissions infornography Linux - Newbie 7 07-28-2004 05:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration