- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: sed command giving an error
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
Discussions
Discussions
Forums
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
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
тАО03-21-2008 11:22 AM
тАО03-21-2008 11:22 AM
Re: sed command giving an error
The ones you listed, yes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2008 11:27 AM
тАО03-21-2008 11:27 AM
Re: sed command giving an error
Please refer attachment.
Which is that script file ?
If i change the permission of that script file alone manually will it fix error ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2008 11:38 AM
тАО03-21-2008 11:38 AM
Re: sed command giving an error
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2008 12:01 PM
тАО03-21-2008 12:01 PM
Re: sed command giving an error
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2008 12:10 PM
тАО03-21-2008 12:10 PM
Re: sed command giving an error
> 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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2008 12:21 PM
тАО03-21-2008 12:21 PM
Re: sed command giving an error
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2008 12:26 PM
тАО03-21-2008 12:26 PM
Re: sed command giving an error
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2008 12:27 PM
тАО03-21-2008 12:27 PM
Re: sed command giving an error
how can I bring back those settings ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2008 01:00 PM
тАО03-21-2008 01:00 PM
Re: sed command giving an error
> 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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2008 01:07 PM
тАО03-21-2008 01:07 PM
Re: sed command giving an error
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. :-)