LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-23-2009, 03:51 AM   #1
montyleesam
LQ Newbie
 
Registered: Nov 2006
Posts: 21

Rep: Reputation: 15
how to preserve permission and owner even if yum updating ?


Hello, all.

When I update linux system(centos 5.x) using yum,
it initialize the permission and owner information automatically.

For example,

First default permission of /var/named is 750.
and I changed the /var/named directory permission to 755,
but after auto yum updating the bind rpm, it changes the permission to 750 that is default permission.

Is there any option or way of yum not to initialize(or change) the permission?


Thanks in advance.
 
Old 01-24-2009, 04:40 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by montyleesam View Post
after auto yum updating the bind rpm, it changes the permission to 750 that is default permission. Is there any option or way of yum not to initialize(or change) the permission?
Haven't seen any option like that in either Yum or RPM. Not surprising probably if your permission change is due to some requirement you didn't try to address in other ways. Anyway, if only ISC BIND is your problem then it shouldn't be that hard to 0) script it in the SysV initscript since upgrading will probably require a restart anyway (but that change would be gone if the initscript gets overwritten) or 1) in the autoupdate cronjob (same overwrite prob there), or 2) in some custom cronjob or 3) added as a script to monitoring software you run like Monit or 4) some combination of logwatching and filesystem integrity checking.
 
  


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
missing folder permission, owner and group tritonw Linux - General 4 10-28-2007 11:21 PM
deny rm permission for non-owner of files AndrewBS42 Linux - Security 3 10-03-2007 01:53 AM
ncopy doesn't preserve date/time or owner BroX Linux - Server 3 05-04-2007 08:34 AM
k3b - how to preserve owner and permission satimis Linux - Software 2 11-20-2006 08:07 PM
rsync: How NOT to preserve permission? edwin11 Linux - Software 2 02-20-2006 07:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:11 PM.

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