1833496 Members
3024 Online
110052 Solutions
New Discussion

trouble with permissions

 
SOLVED
Go to solution
Juergen Nagel_1
Frequent Advisor

trouble with permissions

Hi.
I have a great Issue with HP-UX 11i.
After the Installation the system operated well. During the installation from the application (database import only), the connection was interrupted. Since that time I have much trouble with the system. The reasons are false permissions from a couple of files. Such as: /usr/lib/security/libpam_unix1; /usr/lbin/chgpt; /usr/bin/login.
Every day, I found more files with false permissions.
What is the reason for this and how can I solve the Issue?
Thanks
5 REPLIES 5
Santosh Nair_1
Honored Contributor

Re: trouble with permissions

The first thing I would check is that everything was installed properly, i.e. check if all the filesets are in the configured state and not in the installed state:

swlist -a state -l fileset|grep -v -e "configured" -e "^#"

should return an empty line.

-Santosh
Life is what's happening while you're busy making other plans
Juergen Nagel_1
Frequent Advisor

Re: trouble with permissions

Hi,

At this moment the permission of the "/" was changed automatically from 755 to 666. I am helpless.
Santosh Nair_1
Honored Contributor

Re: trouble with permissions

Are you still logged in as root? If so, you should be able to change the permissions back. Meanwhile, you can try running Andreas Voss' script which should reset all the permissions back to their defaults.

See link for the script:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa7ef6c96588ad4118fef0090279cd0f9,00.html

-Santosh
Life is what's happening while you're busy making other plans
Juergen Nagel_1
Frequent Advisor

Re: trouble with permissions

Hi,

I will install the HP-UX again. But I want to know the reason for this trouble.
The swlist command doesn?t work too.

Bye
Santosh Nair_1
Honored Contributor
Solution

Re: trouble with permissions

I would look at the import script that you were running when this happened. You said that everything was working fine up until that point.
Its possible that there's some syntax error or undefined variable in the script and it might be trying to do a chmod -R, i.e. if in the command chmod 660 -R /$DIR $DIR is not defined, than it will change the permissions of everything to 660 from / down.
Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans