- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: UID/GUID
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-06-2002 06:28 AM
09-06-2002 06:28 AM
103/102 to 101/101 (it's not used by any other user). Is it safe to do it? And what would be the correct way?
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2002 06:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2002 06:32 AM
09-06-2002 06:32 AM
Re: UID/GUID
GL,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2002 06:36 AM
09-06-2002 06:36 AM
Re: UID/GUID
You can do this. Use 'usermod' to change both the UID and the GID:
# usermod -u 101 oracle
# groupmod -g 101 -o dba
Yoo will need to subsequently find all files belonging to the old UID and old GID and change them to the new ones. The 'find' command can be used for this.
# find / -user 103 -exec chown oracle:dba {} \;
See the man pages of the three commands for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2002 06:38 AM
09-06-2002 06:38 AM
Re: UID/GUID
find / -u oracle > /tmp/oracle.files
find / -g oracle > /tmp/oracle-group.files
This will identify all files that you will need to change ownership and group for.
Then use SAM or change the password file.
Then you can run
cat /tmp/oracle.files | xargs chown oracle
cat /tmp/oracle-group.files | xargs chgrp oracle
to change the ownership and group of the files needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2002 06:38 AM
09-06-2002 06:38 AM
Re: UID/GUID
ensure no one is logged and oracle is not up .
change the uid/gid
chown -R uid:gid $oracle_home
chown -R uid:gid /opt/oracle
also check for the ownership of the files in /etc belongin g to oracle
also donot assign the old UID/GID to anyone else till everything settles down
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2002 06:38 AM
09-06-2002 06:38 AM
Re: UID/GUID
You may end up changing far more than you intended.
For example on some of our servers there is an apache server under the oracle directories. The files in there need to be owned by www and not oracle.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2002 06:39 AM
09-06-2002 06:39 AM
Re: UID/GUID
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 02:33 AM
09-09-2002 02:33 AM
Re: UID/GUID
Warning: Do not use
chmod -R oracle:dba $ORACLE_HOME
because some files in the ORACLE_HOME Directory needs in some cases root-permission, e.g. $ORACLE_HOME/bin/dbsmnp has sometimes suid-root
The correct way to change uid/gid is a
find / -user
You have to use the -h option of chown, without -h option you will change the destination of a link and not the link, this will causes problems sometimes.
If you change uid/gid with SAM, SAM will do the find - command without -h option.
Christian