Operating System - HP-UX
1831360 Members
2776 Online
110024 Solutions
New Discussion

Re: Default file permissions

 
Cara Tock
Regular Advisor

Default file permissions

Is there any script or any other way to check the default files for correct permissions? I recently found that my spooler would not start because of a few incorrect file permissions and I would now like to check all of the system files.
Thanks,
Damon
11 REPLIES 11
schneider_15
Advisor

Re: Default file permissions

James R. Ferguson
Acclaimed Contributor

Re: Default file permissions

Hi Damon:

# swverify \*

Regards!

...JRF...
Leif Halvarsson_2
Honored Contributor

Re: Default file permissions

Hi,
Yes, you can use the find . - type f -perm ... -exec chmod .... {} \;

See man page for find.

But perhaps, most easy, set permissions for all files

find . -type f -exec chmod ... {}\;
Stuart Abramson_2
Honored Contributor

Re: Default file permissions

/usr/contrib/bin/X11/dr_dt checks a bunch of them for CDE setup. Not all of them.
Stefan Farrelly
Honored Contributor

Re: Default file permissions

You should run a swverify on all OS-Core filesets to check they have the correct permissions and ownerships as when they were originally installed (when the box was built);

swverify OS-Core.*

If anything is amiss it will tell you.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Cara Tock
Regular Advisor

Re: Default file permissions

I guess my question wasn't to clear. I would like a quick and easy way to check all of the file permissions, and correct them, for the files that were installed from the HP-UX 11.0 install cd. Every install has a certain set of default files and I found some of them to have the wrong permissions.
Cara Tock
Regular Advisor

Re: Default file permissions

Disregard my last message. I am looking for something like swverify, but I have seen scripts that will check all of the files and correct them if they are wrong. If I have to I will create a script from swverify.
James R. Ferguson
Acclaimed Contributor

Re: Default file permissions

Hi (again) Damon:

Have a look at 'swverify -F'.

Regards!

...JRF...
Paul Sperry
Honored Contributor

Re: Default file permissions

Damon

We use medusa, It will check the entire file system for user, group , and permissions (w,r,x) and provide the correct permissions for
any files that are not correct.
Caesar_3
Esteemed Contributor

Re: Default file permissions

Hello!

If you alredy changed the permissions this
would help but for the feature you can
use tripwire that made db about the files
and after you can made a check that show if
you have any changes.

Caesar
Lauren Breimyer
New Member

Re: Default file permissions

As opposed to Tripwire, I would use Pedestal Software INTACT. It will alert you to any permission changes in real-time (which Tripwire cannot do), notify you of the change, and (optionally) automatically reverse the change back to the original. It's a really powerful tool.