- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- unique UID and username.
Operating System - HP-UX
1753534
Members
5983
Online
108795
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО05-17-2007 09:06 AM
тАО05-17-2007 09:06 AM
Is there any command/script using which I can check that each user is assigned a unique UID and username?
OS = HP-UX 11.11
Thanks in advance.
OS = HP-UX 11.11
Thanks in advance.
Everything is possible
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2007 09:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2007 09:53 AM
тАО05-17-2007 09:53 AM
Re: unique UID and username.
Hi Sanjiv:
To add to the discussion, NEVER declare additional accounts with a uid=0 (to create a duplicate 'root' account).
For example, if you defined the user 'sadmin' with a uid=0, and then later did:
# find / -user sadmin -exec rm -rf {} \+
...then you would remove ALL files and directories belonging to 'root' (uid=0). By the time you realized your mistake it would be time to reinstall your system! Numbers matter to Unix; not names.
Regards!
...JRF...
To add to the discussion, NEVER declare additional accounts with a uid=0 (to create a duplicate 'root' account).
For example, if you defined the user 'sadmin' with a uid=0, and then later did:
# find / -user sadmin -exec rm -rf {} \+
...then you would remove ALL files and directories belonging to 'root' (uid=0). By the time you realized your mistake it would be time to reinstall your system! Numbers matter to Unix; not names.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2007 10:21 AM
тАО05-17-2007 10:21 AM
Re: unique UID and username.
You must be working on SOX requirements:
The attached script, dupacct.sh, will list duplicate UID's and duplicate login's. If stdin is a terminal, output goes to stdout otherwise the duplicates and a message is sent to syslog. You should have no trouble adapting to your needs. I cron this guy to run once per week and then OV/O detects any of the syslog entries and alerts me. No news is good news.
The attached script, dupacct.sh, will list duplicate UID's and duplicate login's. If stdin is a terminal, output goes to stdout otherwise the duplicates and a message is sent to syslog. You should have no trouble adapting to your needs. I cron this guy to run once per week and then OV/O detects any of the syslog entries and alerts me. No news is good news.
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP