User listing.
Sometimes you may want to know who has access to a system and even some of the applications that might be installed. All you have to do is to get a user listing. lsuser.sh [code] #================================= # lsuser - list users #================================= # Assignments # -------------------------------- datafile="/etc/passwd" # end assignments #================================= # Data input #--------------------------------- while read line do echo $line | cut -d: -f1 done < $datafile [/code] $ chmod +x lsuser.sh $ ./lsuser.sh root daemon bin sys sync games man lp mail news uucp ... ... Note if the batch file is is a user accessible area on another server you can $ ssh oeorgan1 "lsuser.sh" Now the write command $ write eddie test <ctrl-d> Message from eddie@oedt01 on pts/1 at 14:19 ... test EOF write sends a message to another user. Syntax write user [tty] Description The wr...