- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /tcb/files/auth/X and x missing - now what?
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
06-05-2003 07:30 AM
06-05-2003 07:30 AM
A security rep needs to build a user account on this system with userid beginning with "x". She reports back that the system will not let her add it. I assume she is using SAM.
My investigation shows that the "X" and the "x" directories under /tcb/files/auth are missing.
This happened once before about 8 months ago when she needed to add another userid starting with "x", and I just created the "x" directory and things seemed to work fine.
Now the "x" and the "X" directory are missing again and authck -p reports that the first userid is in /etc/passwd and not in the PPD.
So, I'm stumped. First of all I can't figure out what's happening to the "X" and "x" directories. Second, if I have the security rep try to delete the first account, wait until I touch the missing directories, and then create both 'x' accounts, will it work and will it last? Third, should I just unconvert and convert? This may cause all kinds of problems with the multitude of other users.
Thoughts anyone?
Connie K.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 07:37 AM
06-05-2003 07:37 AM
Re: /tcb/files/auth/X and x missing - now what?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 07:58 AM
06-05-2003 07:58 AM
Re: /tcb/files/auth/X and x missing - now what?
I was hoping not to have to perform a restore, as I would have to search through a multitude of backup sessions through Veritas NetBackup to find when the "X" and "x" directories actually were there. I can't rely on the one user built previously to complain as I don't think he's EVER logged in to use his account, but of course, since the tcb file is missing, I'll never know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 08:21 AM
06-05-2003 08:21 AM
SolutionIt's certainly confusing that those 2 dirs are disappearing. Are any of the other alphabet dirs under /tcb/files/auth missing? These dirs are owned by root:sys and have 770 permissions - really only root should be able to remove them. This suggests that someone is removing them, maybe by mistake? X/x is a pretty rare first letter for a username so maybe someone removed the dir if it had no files inside as part of some tidy up? Perhaps it's time to look round any cron jobs or manual housekeeping type scripts to see if there's any that might be doing the removing!
I don't think you can guarantee that it won't happen again - so maybe running authck -pv on a regular basis will help track down exactly when the dir is getting removed.
So, how can you fix the system now? You've mentioned that you don't really want to go through the backups to restore the dirs. How about creating the missing X/x dirs, then manually creating the /tcb files for the users. you'll need to step through /etc/passwd finding each X/x user and creating a file for them under /tcb/files/auth/x. You can use another user's tcb file as a template - just remember to ensure that you put the username in the appropriate places; also the uid and an unused audit id. Then ensure the password is blank; you can set that later.
Once you've done this run authck -pv to be sure that the tcb and /etc/passwd are matched. You will of course have lost the password for the missing users, along with their details of last login, etc but it will save the hassle of unconverting/converting and losing this data for all the users.
regards,
Darren
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 09:21 AM
06-05-2003 09:21 AM
Re: /tcb/files/auth/X and x missing - now what?
In answer to your question, no, no other directories are missing - that's why I was stumped. I fully intend to go on a "bug hunt" ASAP.
I will re-create the directories again and use a template from another directory to make sure I get the structure correct for the existing account. I am thankful for ONE thing so far... at least I only have to rebuild ONE account!
Thanks Darren!
Points coming!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 10:22 PM
06-05-2003 10:22 PM
Re: /tcb/files/auth/X and x missing - now what?
Its a bit of a hack, but the way that I have got out of this before is to create the "x" directory, then copy another user file such as root, then rename it to this user. Finally edit the file and remove the encrypted passwd string from the file, and run "passwd x" to allocate a new one.
You should find that this will fix your database, and allow you to login and/or delete this user.
In my experience the "tcb" is very unreliable once you start to add and remove a large number of users, or you make any manual changes to it. The best part is when you talk to HP and they tell you that they don't support any of the command line utilities that maintain it.
Good luck!