Hi all
Thanks rhfromn for your reply. After asking that question I then learnt up about zones / projects / tasks.
When I asked you about global zone and the projects defined on them whether they replicate down to the zones, nope they dont. From zonecfg you can set various rctl controls, but only relating to cpus / memory / swap space and other phyiscal resources, things that will `shape` the setup of the zone.
Things like file descriptors, number of processes, etc, that were once controlled by /etc/system, are now done via projects / tasks and have to be done within the zone using the prctl command, or via projects.
You can set them on the fly :-
# ulimit -a
# prctl -n process.max-file-descriptor -v 400 $$
# ulimit -a
Or you can set them into the default project which is used if the user you log in as, hasn’t been defined a project. You can projmod / projadd, or you can just manually alter the /etc/project file. Its like the /etc/passwd file, despite having useradd / userdel, you can still manually alter it.
system:0::::
user.root:1::::
noproject:2::::
default:3::::
group.staff:10::::
group.bodi:103:Bodi Environments:bodi1173:bodi
rocess.max-file-descriptor=(basic,1024,deny)
Or you can set up a project and add the application users to it, or add the group they belong to, to the project. Instead of updating the /etc/passwd with more fields, solaris updates the users within the /etc/user_attr.
To add users to projects :-
# Usermod -K project=group.bodi sbk ( updates /etc/user_attr file)
Or
# projmod -p 103 -U bodi1173 group.bodi ( updates the /etc/project file)
If your adding two users, then you need to do :-
# projmod -p 103 -U bodi1173,bodi553 group.bodi
If you dont add them on the same line, then you over write the previous user.
So, there you go. A quick run down on projects, taks, zones and controlling the setup.
Thanks for your help. :-)
SBK