Information Technology Reference
In-Depth Information
The whodo Command
The
whodo
command allows the system administrator to combine the infor-
mation from
who
with process information to produce a list of what users are
doing. The following listing shows the results of a
whodo
command.
# whodo
Thu Jul 25 19:02:12 EDT 2002
solaris9
console root 18:49
? 573 0:00 Xsession
pts/3 617 0:00 sdt_shell
pts/3 632 0:00 ttsession
pts/3 620 0:00 sh
pts/3 633 0:00 dtsession
? 640 0:00 sdtperfmeter
? 638 0:02 dthelpview
? 636 0:07 dtwm
? 671 0:00 dtexec
? 673 0:00 dtaction
? 675 0:00 dtexec
? 676 0:00 dtterm
pts/5 679 0:00 sh
pts/5 697 0:00 telnet
? 659 0:00 dtexec
? 660 0:01 dtterm
pts/4 662 0:00 sh
pts/4 743 0:00 tee
pts/4 744 0:00 whodo
? 637 0:02 dtfile
? 677 0:00 dtfile
? 583 0:00 fbconsole
? 618 0:00 dsdm
pts/4 root 18:50
pts/5 root 18:50
pts/6 ambro 18:55
pts/6 700 0:00 sh
Keep in mind that commands that report current users such as
who
use the
/var/adm/utmpx
file, whereas commands that report
login/logout
history such as
last
use the
/var/adm/wtmpx
file.
File Permissions and Ownership
File permissions determine the operations that can be performed on files and
directories along with who can perform these operations. There are two
types of file permissions:
➤
Standard, which provides basic security
➤
Extended, which expands the standard permissions