- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to recover the files' owner and group
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
10-29-2001 01:22 AM
10-29-2001 01:22 AM
How to recover the files' owner and group
# chown -R data:data /usr
when telnet to this system ,it told me
"Unable to set uid/gid"
and close this Connection.
How to correct owner and group of /usr?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2001 01:25 AM
10-29-2001 01:25 AM
Re: How to recover the files' owner and group
#uname -a
HP-UX legendn4 B.11.00 U 9000/800 631349303 unlimited-user license
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2001 01:32 AM
10-29-2001 01:32 AM
Re: How to recover the files' owner and group
boot the system in single user mode.
mount /usr
then try to change owener:group as below
10 bin bin 2048 Mar 31 2001 lbin
35 bin bin 8192 Sep 14 17:21 lib
8 bin bin 1024 Apr 6 2001 local
2 root root 96 Mar 31 2001 lost+found
1 root sys 9 Mar 31 2001 mail -> /var/mail
1 root sys 14 Mar 31 2001 man -> /usr/share/man
1 root sys 13 Mar 31 2001 netls -> /var/opt/ifor
7 bin bin 1024 Mar 31 2001 newconfig
1 root sys 9 Mar 31 2001 news -> /var/news
4 bin bin 96 Mar 31 2001 obam
6 bin bin 1024 Mar 31 2001 old
1 root sys 13 Mar 31 2001 preserve -> /var/prese
1 root sys 18 Mar 31 2001 pub -> /usr/share/lib/
6 bin bin 96 Mar 31 2001 sam
8 bin bin 7168 Apr 1 2001 sbin
6 bin bin 96 Mar 31 2001 share
1 root sys 10 Mar 31 2001 spool -> /var/spool
1 root sys 8 Mar 31 2001 tmp -> /var/tmp
8 bin bin 1024 Mar 31 2001 tsm
4 bin bin 96 Mar 31 2001 vue
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2001 01:33 AM
10-29-2001 01:33 AM
Re: How to recover the files' owner and group
you have committed a big mistake. some of the files/directories /usr are owned by root/bin/system. You need to change the ownership of the files by looking at the another system which works fine. Or if you have ignite backup just restore from backup. if you want only telnet to work at present just do # chown bin:bin /usr/bin/telnet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2001 01:35 AM
10-29-2001 01:35 AM
Re: How to recover the files' owner and group
You should not have run a chown data:data
on /usr. There are many directories that
have files that have ownership crucial to
the system. looks like you have flattened
the shells so that you can't login normally.
You can do one of two things, if you are
logged in already check with another system
for it's directory structure or restore it
from backup tape.
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2001 01:38 AM
10-29-2001 01:38 AM
Re: How to recover the files' owner and group
But there are lots of file under the /usr.
I have change some of them and the root user can telnet in.
However others given the mssage
"Unable to set uid/gid"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2001 02:11 AM
10-29-2001 02:11 AM
Re: How to recover the files' owner and group
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x8892abe92dabd5118ff10090279cd0f9,00.html
I'm trying to hunt down Adreas' script in the mean time.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2001 04:58 AM
10-29-2001 04:58 AM
Re: How to recover the files' owner and group
Over a year ago, Andreas Voss developed a script to rectify a similar problem. Here is his original post:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa7ef6c96588ad4118fef0090279cd0f9,00.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2001 07:28 AM
10-29-2001 07:28 AM
Re: How to recover the files' owner and group
in HP-UX this is swverify - man 1m swverify-. Check it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2001 08:15 PM
10-29-2001 08:15 PM