question about TOP jails and uid

If you have a bunch of different users in different jails and you run TOP from the base system, will you see the user name beside the process as that from the base system user with that uid? or will you see the proper username for the jail user?
 
If you run top on the host it gets kinda confused (same deal with ps). I have an ircd running in a jail on a user accountB. But top shows accountA (from the host). The uids are the same.
 
ok, that's what i thought. I was looking at the exact same issue and was trying to figute out why TOM was running ircd when it's not supposed to be running under TOM.

it just goes by uid and then matches that against the names....i'm goiong to have to remember to use the option which shows JID
 
Use [CMD="top -j"][/CMD] (see TOP environment variable) or jps command from /usr/ports/sysutils/jailutils
  1. jps List processes in a jail
  2. jid Print id of a jail
  3. jstart Start up a jail securily
  4. jkill Shutdown a jail in an orderly fashion
  5. jails List running jails
  6. injail Determine if a process is running in a jail
 
Back
Top