Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Where do zone installation default files come from?

Default files installation zone
0
Posted

Where do zone installation default files come from?

0

After installation, the non-global zone /etc directory is populated with “empty” files. No users defined in /etc/passwd, no groups in /etc/group,… So these files can obviously not be copied from the Global zone at zone install time. Because the granularity of the installation is the package, looking in the package database gives good results. #grep /etc/passwd /var/sadm/install/contents /etc/passwd e passwd 0644 root sys 580 48298 1127200974 SUNWcsr tells that the /etc/passwd file is part of the SUNWcsr package. Looking inside the directory /var/sadm/pkg/SUNWcsr/save, we find those files that will be saved in case of a patch modifying the package. And the passwd file will be located in /var/sadm/pkg/SUNWnfscr/save/pspool/SUNWcsr/reloc/etc Note : modifying these files to get customized etc files after zone installation is not the way to go! Go for scripts.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123