Operating System - Linux
1752672 Members
5891 Online
108789 Solutions
New Discussion юеВ

Re: sed command giving an error

 
Dennis Handly
Acclaimed Contributor

Re: sed command giving an error

>Will this fix errors?

The ones you listed, yes.
srnagu
Occasional Advisor

Re: sed command giving an error

It gave some errors while executing.

Please refer attachment.

Which is that script file ?

If i change the permission of that script file alone manually will it fix error ?
Dennis Handly
Acclaimed Contributor

Re: sed command giving an error

>It gave some errors while executing.

Of course it did. The same ones you got before. But it should have fixed them.

>Which is that script file?

You tell us. You would need to look at the swverify.log.

>If i change the permission of that script file alone manually will it fix error?

Without more details, we can't tell. You could try "swverify -F \*" a second time to see if it has already fixed the problems.
srnagu
Occasional Advisor

Re: sed command giving an error

Hi,

I executed swverify -F\* again.
It did fix the errors which was there earlier.

But is there any way I can fix the ownership issue of other files like
/etc/..
/dev/..
/usr/..

I feel it has fixed only package/sw files errors, not system files
James R. Ferguson
Acclaimed Contributor

Re: sed command giving an error

Hi (again):

> But is there any way I can fix the ownership issue of other files like
/etc/..
/dev/..
/usr/..

If you mean the permissions and ownership of these DIRECTORIES, then

# chmod 555 /etc /dev /usr
# chown bin:bin /etc /dev /usr

Regards!

...JRF...
srnagu
Occasional Advisor

Re: sed command giving an error

I didnt mean the directories alone.

The files in those directories. For ex..

/etc/passwd, /etc/inittab, /var/adm/syslog/....
There are somany device files too with wrong ownership.

Is there any method I can find this ownership details from some other system and put the same in this server.

As you know doing one by one is near impossible.
Dennis Handly
Acclaimed Contributor

Re: sed command giving an error

>I feel it has fixed only package/sw files errors, not system files

That's correct. It only fixes files recorded in the IPD. You'll have to correct those other files/directories.
You would need to look at another system for the correct values.
srnagu
Occasional Advisor

Re: sed command giving an error

If I'm not wrong, the permission of each file will be different in any given directory.

how can I bring back those settings ?

James R. Ferguson
Acclaimed Contributor

Re: sed command giving an error

Hi (again):

> If I'm not wrong, the permission of each file will be different in any given directory.

True.

> how can I bring back those settings ?

You could the broken server directory contents to that of a known good one.

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: sed command giving an error

>how can I bring back those settings?

From your backup of course. ;-)

Otherwise you would have to compare with another system and either manually or with a script, fix them.

I suppose you could use swpackage on your good system to create a dummy product, then copy the IPD entries to your new system and then use swverify -F.

Of course this may be harder than writing a script from scratch. :-)