Operating System - HP-UX
1834691 Members
2275 Online
110069 Solutions
New Discussion

Re: /etc/passwd after bastille

 
SOLVED
Go to solution
hydrocct
Advisor

/etc/passwd after bastille

I often copy one system's /etc/passwd to another system to synchronize the user databases. Now one of these systems has been secured using bastille and is now trusted. How can I resynchronise that system's user database with the un-secured systems. In other words, how can I regenerate the /tcb/files/auth/... files from a regular untrusted /etc/passwd file.
Guichet DPT
3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: /etc/passwd after bastille

There is really no easy way, that I know of, to sync trusted and untrusted systems. You really should just make both systems trusted. Then you can copy /etc/passwd and the /tcb structure to synchronize the 2 systems.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: /etc/passwd after bastille

You can run the tsconvert command which will take the standard /etc/passwd and convert the system to trusted. Alternately, you can copy /etc/passwd, /etc/group, and the entire /tcb/files tree.

Aa always when editing files like these, have copies and be logged in as root in at least two sessions so you can get yourself out of trouble almost as fast as you got yourself in.
If it ain't broke, I can fix that.
Robert Fritz
Regular Advisor

Re: /etc/passwd after bastille

Also note that as more features (like logging) move into standard mode, trusted becomes less necessary. Bastille, in general, only converts to trusted when it has to because of a requested feature.
Those Who Would Sacrifice Liberty for Security Deserve Neither." - Benjamin Franklin