Posts

Showing posts with the label list

User listing.

Image
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...

Geek bucket list.

Image
This is way out of date, but it has it's points Done Item: Geek Bucket list. (from “Daily cup of tech”) Geek Bucket list. (from “Daily cup of tech”) 1. Add a Third Monitor 2. Build a Linux Firewall 3. Build a Network File Server 4. Build a PC 5. Build a Robot 6. Build an HTML based Website using Notepad 7. Bypass a Computer Password on All Major Operating Systems 8. Bypass School or Work Website Blocks 9. Carry a Computer Cleaning Arsenal on Your USB Drive 10. Compile a Linux Kernel 11. Control Your House Lights with a Computer 12. Convert Cassette Tapes to Digital Audio Files 13. Crack a Wi-Fi Password 14. Create “Hello, World” in at Least Five Different Programming languages 15. Create a Disposable E-Mail Account 16. Create a Recovery Drive Image of Your Computer 17. Create a WordPre...

Quickie user list.

Image
Need to know the users on a system, then try this: 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 ... ... john michael ... ...

Evolution of a script

Image
------------------------------------------------------------------------------------------------------------- Notice: Comments are correct the scripts need to be updated. -------------------------------------------------------------------------------------------------------------  Do not have time to do it now , but it isin the queue...... Someone had written a script to grab the weather from the web. A script is like a todo list for the computer. Even if you are not a programmer, you will see the added lines give the script more potential or power. Everything becomes less and less cryptic to use. How you interact with it is sometimes considered what is called the user interface. lynx -dump "http://mobile.weather.gov/port_mp_ns.php?select=3&CityName=Woonsocwa That yielded: National Weather Service __________________________________________________________________ Woonsocket, RI Current Local Conditions a...