- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reset permisions on system files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
Community
Resources
Forums
Blogs
- 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
09-21-2000 02:39 AM
09-21-2000 02:39 AM
Reset permisions on system files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2000 03:15 AM
09-21-2000 03:15 AM
Re: Reset permisions on system files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2000 03:17 AM
09-21-2000 03:17 AM
Re: Reset permisions on system files
unfortunately there is no tool to restore the default permissions on a system, I don't know if the changes affect the entire system (all the directories and files) if it is the case then you will have to restore or if you have a similar system you can rcp with -p option
from the remote system some of the files and directories.
If you do a rcp, don't copy the configuration files.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2000 03:50 AM
09-21-2000 03:50 AM
Re: Reset permisions on system files
i've looked for something to do this and have found that under /var/adm/sw/products files with the name INFO have the contents of the installed files/dirs with their permission modes.
I wrote a script, that read these files and produces another script (perm_reset.sh) with the chmod commands.
Just running the script perm_reset.sh should correct many system files/dirs.
Hope that helps.
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2000 06:40 AM
09-21-2000 06:40 AM
Re: Reset permisions on system files
If you have a recent make_recovery, you could always use that to get the root VG perms back. If you didn't want to actually use the make_recovery to recreate the root VG, you could use TAR to extract files from the tape to a different directory, then compare the perms (mt -t
Good luck!
-Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2000 07:13 AM
09-21-2000 07:13 AM
Re: Reset permisions on system files
Try swverify. It wont change the permissions to what they were but they will check if they are not the defaults.
For example:
# swverify -v check_permission=true SystemAdmin
will check that the permissions for the SAM fileset are correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 01:42 AM
09-22-2000 01:42 AM
Re: Reset permisions on system files
I ran perm_reset.sh and SAM is now functioning but I'm getting the following error :-
Sep 22 10:14:07 zireh500 sendmail[17519]: KAA17513: SYSERR(root): savemail: cannot save rejected email anywhere
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 05:13 AM
09-22-2000 05:13 AM
Re: Reset permisions on system files
The savemail error is a common problem when your sendmail version does not match the sendmail configuration file.
Check the following:
# sendmail -di (debug mode, displays the version)
# grep DZ /etc/mail/sendmail.cf
If the two versions do not match:
# grep DZ /usr/newconfig/etc/mail/sendmail.cf
If this version matches your sendmail -di version:
# mv /etc/mail/sendmail.cf /tmp/sendmail.sav
# cp /usr/newconfig/etc/mail/sendmail.cf /etc/mail/sendmail.cf
If you had any custom configuration in the old version (/tmp/sendmail.sav), add them to the new file.
Stop and restart sendmail:
# /sbin/init.d/sendmail stop
# /sbin/init.d/sendmail start
Loading the sendmail patch will update the /usr/newconfig/etc/mail/sendmail.cf instead of /sendmail.cf (because this is a custom file).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2000 05:15 AM
09-22-2000 05:15 AM
Re: Reset permisions on system files
To solve the problem check permissions and ownerships on /var/mail
drwxrwxr-x 2 bin mail
and on the single mailboxes, e.g. root /var/mail/root and user /var/mail/user
-rw-rw---- 1 root mail /var/mail/root
-rw-rw---- 1 user mail /var/mail/user
Furthermore allow savemail to write to $HOME/dead.letter and /var/tmp/dead.letter: Set permissions to 777
Regards