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

Notices


Reply
  Search this Thread
Old 08-11-2011, 10:52 AM   #1
Shodan30
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Rep: Reputation: 0
Looking for a permissions matching utility


Hi,

At my work we are using a SuseLinux box custom tailored to run various apps. We have this same image that gets loaded when we setup a new store then modify it to suit the new unique store.

Anyway, we update the software occasionally with an automatic update setup that opens the package, runs a permission fixing utility in a safe area, then copies the files to replace or add to the existing file structure.

The permission fixing utility we have right now needs to be reworked, and I was hoping to find a different way to go about this. our utility as it is is basically a shell script that manually sets permissions on a long list of files. What I am hoping to find is a utility that i can run on our basic gold image to create a template file. Then transfer that file to all the locations, and run a utility that will match permissions according to the template file. Is there already such a beast out there?

Thanks
 
Old 08-11-2011, 11:13 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
If you update using package management then RPM should set the permissions, no need for further mucking about. So are you? Or are you running some homebrewn update kludge?
 
Old 08-11-2011, 11:41 AM   #3
Shodan30
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Original Poster
Rep: Reputation: 0
homebrew. we send the update, which can load sent data into the DB, deliver new code to compile or deliver non code files (OS changes). So we will need something that we can run to fix permissions across the board based on custom setups so i cant just use a standard utility that can fix Suse OS file permissions, i need to make a template I can update easily.
 
Old 08-13-2011, 05:05 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I've got no idea at all. Maybe it could help those here who have if you elaborate: are you talking about something like updates on in-store POS or suchlike systems? Are those systems remotely manageable? What percentage of an update is similar across systems? What are unique changes based on? Location? Software (version)? Please add anything else that you think could help your fellow LQ members help you.
 
Old 08-16-2011, 08:04 AM   #5
Shodan30
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Okay, I am speaking somewhat generally due to security constraints but ill try to give more specific information.

We have a customized two server setup (Primary and secondary) running suselinux. We have a gold image that every store begins as, and anything that makes it unique is going to be in a database (Progress) that runs the POS application. The database gets data updates daily, but that has nothing to do with this issue. Occasionally we will send an update down that delivers changes to code in the App, delivers shell script changes or binaries in and outside of the database directory. we do this by opening the archive in the database directory and any changes that need to go outside the database directory are located in a subdirectory inside the database directory, which we then copy to the / mounts after running a program to make sure the permissions match as they should be.

The script we use now is very cumbersome and I'm looking for something to replace it. The script was originally designed to only set permissions inside the database directory before anything that goes outside it is copied, so basically its a list of everything that we have so far added to the systems in an update. However this potentially could grow to include any file across the OS and any update where we have a change that isnt in this script already, it needs to be added to.

What im looking for is something I can use to build a template list of every file on the gold image (With permissions) and either
1) use a grep whenever files are delivered by updates to verify permissions from the template and correct if needed.
or
2) find a tool that can build and use this list to quickly correct/set permissions based on this template.
or
2) lock permissions across the OS based on the template and this way, I will only have to make changes if we need to specifically change permissions or add new files to the OS.

Thanks
 
  


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
Find/grep command to find matching files, print filename, then print matching content stefanlasiewski Programming 9 06-30-2016 05:30 PM
Utility for Disk Usage / Treesize utility teknoratti Linux - Software 1 06-08-2011 02:53 AM
[SOLVED] Matching two tables of non-matching sizes astroumut Programming 3 03-03-2011 07:05 AM
Perl Script needed to be reversed to output matching, not non-matching 0bfuscated Programming 2 07-20-2010 10:51 AM
how to preserve file permissions using mkisofs utility Lakki Linux - Software 3 04-25-2009 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:22 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