GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Default permissions
Operating System - HP-UX
1850453
Members
2348
Online
104054
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2001 03:48 AM
05-09-2001 03:48 AM
Hi have inherited a system that was not very well taken care of. It is running HPUX 10.20 If something seemed suspect, the first thing tried was chmod 777 on the whole directory, etc! I would like to start by getting the permissions back to normal. Is there somewhere I can get a list of what the default permissions of all the key system directories, e.g. /etc /dev, etc. should be.
Thanks.
Dermot
Thanks.
Dermot
Happy is harder than money. Anyone who thinks money will make them happy, doesn't have money.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2001 04:11 AM
05-09-2001 04:11 AM
Re: Default permissions
Hi Dermont,
well I guess at first I think you need to have a reference system, to look up what you want to set.
I would start there with
ls -l | cut -c2- | awk '{ print "chmod " $1 " " $9 }' >file_to_be_edited.sh
In this file_to_be_edited.sh globaly exchange
--x -> 1
-w- -> 2
-wx -> 3
r-- -> 4
r-x -> 5
rw- -> 6
rwx -> 7
and so on ...
Check (!) and execute it, and I guess 85% is done.
Do corresponding if user and group has been changed in addition.
Base your listing on
ls -l `find /etc -print`
if you need to recurse the subdirs (this will take time).
Compare the above output of both systems to find diffrences.
Hope this helps
Volker
well I guess at first I think you need to have a reference system, to look up what you want to set.
I would start there with
ls -l | cut -c2- | awk '{ print "chmod " $1 " " $9 }' >file_to_be_edited.sh
In this file_to_be_edited.sh globaly exchange
--x -> 1
-w- -> 2
-wx -> 3
r-- -> 4
r-x -> 5
rw- -> 6
rwx -> 7
and so on ...
Check (!) and execute it, and I guess 85% is done.
Do corresponding if user and group has been changed in addition.
Base your listing on
ls -l `find /etc -print`
if you need to recurse the subdirs (this will take time).
Compare the above output of both systems to find diffrences.
Hope this helps
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2001 04:28 AM
05-09-2001 04:28 AM
SolutionAll the default permissions for the key system directories and files are in;
/var/adm/sw/products/OS-Core/UX-CORE/INFO
Search this file (INFO) for path and mode commands;
grep -e path -e mode INFO
and it will list paths (files or dirs) and their permissions after each one. If several paths are together before a mode entry then all the files/dirs have the same permissions as the following mode entry. You should be able to write a script to read all this in and apply it.
Im from Palmerston North, New Zealand, but somehow ended up in London...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2001 04:55 AM
05-09-2001 04:55 AM
Re: Default permissions
Hi Dermot:
Andreas Voss wrote an elegant awk script to rectify this very problem. See this thread for his script:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa7ef6c96588ad4118fef0090279cd0f9,00.html
...JRF...
Andreas Voss wrote an elegant awk script to rectify this very problem. See this thread for his script:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa7ef6c96588ad4118fef0090279cd0f9,00.html
...JRF...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP