How can I tell if a user is logged into a domain?
Answer
To check:
How to check the listening ports and applications on Linux:
If you want to use the graphical user interface you need to:
Answer
To check:
- Open the Start menu, then type cmd in the Search box and press Enter.
- In the command line window that appears, type set user and press Enter.
- Look at the USERDOMAIN: entry. If the user domain contains your computer’s name, you’re logged in to the computer.
Code:
https://commons.wikimedia.org/wiki/File:IFME_Linux_version_display_progression_log_via_terminal.png
- Open a terminal application i.e. shell prompt.
- Run any one of the following command: sudo lsof -i -P -n | grep LISTEN. sudo netstat -tulpn | grep LISTEN. sudo nmap -sTU -O IP-address-Here.
- Open a command prompt. For more information, see Opening a command or shell prompt (1003892).
- Run this command: netstat -bano. You see output similar to:
- If you see Can not obtain ownership information instead of the [process.exe] entry, you can find more information in the Windows Task Manager using the process ID:
If you want to use the graphical user interface you need to:
- Windows 7, 8.
- Open Windows Start menu > Type “Control Panel” > Press Enter > “Programs” > “Programs and Features” > Turn Windows features on or off > Select “Telnet Client” > Press “OK”
- Windows Server 2008:
- Is netcat available?
- netstat -lnt (with -t and without -a ) will limit output to listening TCP connections only.
- lsof -i is a personal favorite. –
- netstat -an | grep PORTNUMBER | grep -i listen If the output is empty, the port is not in use. –
- On Windows OS. go to the Start Menu on the bottom left corner; click Run and type cmd;
- On MAC OS. go to Applications directory; choose Utilities and this will open you a command line;
- On Linux. open your terminal emulator; type telnet.mydomain.com 21.