FHNW - SYSAD

Sysad bei Standke

Sysad bei Standke


Kartei Details

Karten 299
Lernende 23
Sprache Deutsch
Kategorie Technik
Stufe Universität
Erstellt / Aktualisiert 06.11.2018 / 28.04.2025
Weblink
https://card2brain.ch/box/20181106_fhnw_sysad
Einbinden
<iframe src="https://card2brain.ch/box/20181106_fhnw_sysad/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>
~-

$OLDPWD

Eigene shell installieren

Shell im dateisystem ablegen, shell ausführbar machen, eintrag in /etc/shells, eintrag in /etc/passwd

grep -rliwZ blabla / | xargs -0 rm -f

Löschte alle dateine vom root-verzeichnis her die mindestends eine Zeile mit blabla beinhalten

Löschen von File ? File

Rm "? File", rm '? File'

ISO Anwendung

Protokolle für den Austausch von Daten (DNS, HTTP, HTTPS …)

ISO Transport

Ende-zu-Ende Kommunikation

ISO Internet

Weitervermittlung der Pakete und Wegwahl (IPv4, IPv6, ICMP..)

ISO Netzzugang

Verschiedene Techniken von Datenübertragung von Punkt zu Punkt (PPP, Ethernet, WiFi…

Ip l, ip link

Zeigt netzwerkkarten an

Ip neighbour, ip n

Verwaltung der ARP Tabelle

sudo iw list

Wlan schnittstelle konfigurieren

Ip a,

Abrufen aller ips auf dem geräte

dhclient

DHCP Adresse holen

Dhclient -r

DHCP Adresse freigeben (Ohne DHCP Adresse kein Internetzugang)

ping

Antwortgeschwindigkeit abrufen

ip route, ip r

Routing

traceroute
(screenshot in protected net)

Route verfolgen welche gemacht wird zum beispiel beim Aufruf von google.com

ss

Abrufen der TCP Verbindungen welche beim Aufruf aufgebaut werden

/etc/hosts

Hosts umstellen Beispiel: google-dns auf 8.8.8.8 zeigen lassen

/etc/nsswitch.conf

Reihenfolge der DNS Namensauflösung bestimmen

whois

Herausfinden auf wen Websiete angemeldet ist

telnet

Get Website data

elinks

Webbrowser in shell

wget

Downloadmanager

tcpdump

Aufkommender Netzwerkverkehr tracken

wireshark

Graphical user interface Netzwerktracker

/etc/passwd
 

root:x:0:0:root:/root:/bin/bash

  1. Username: It is used when user logs in. It should be between 1 and 32 characters in length.
  2. Password: An x character indicates that encrypted password is stored in /etc/shadow file. Please note that you need to use the passwd command to computes the hash of a password typed at the CLI or to store/update the hash of the password in /etc/shadow file.
  3. User ID (UID): Each user must be assigned a user ID (UID). UID 0 (zero) is reserved for root and UIDs 1-99 are reserved for other predefined accounts. Further UID 100-999 are reserved by system for administrative and system accounts/groups.
  4. Group ID (GID): The primary group ID (stored in /etc/group file)
  5. User ID Info: The comment field. It allow you to add extra information about the users such as user’s full name, phone number etc. This field use by finger command.
  6. Home directory: The absolute path to the directory the user will be in when they log in. If this directory does not exists then users directory becomes /
  7. Command/shell: The absolute path of a command or shell (/bin/bash). Typically, this is a shell. Please note that it does not have to be a shell.

Konfigurationsdatei für alle benutzer

/etc/groups

Konfigurationsdatei für alle gruppen

id –u

ausgeben von User uid

id –un

ausgeben von Alphabetische uid

id –G

ausgeben von Group uid

id –Gn, groups

ausgeben von Alphabetische gid

-rw-r--r--

User: rw, group: r, all/others: r

drw-r--r--

D am Anfang bedeutet dass Datei ein Verzeiczhnis ist

chmod u+x file

User ausführrechte geben

chmod g-w file

Gruppen Write rechte entziehen

chmod 644 file

Oktale angabe: 6=rw 4=r 4=r

chown

Owner(Benutzer oder Gruppe) einer Datei

chgrp

Gruppe ändern

Aufruf einer Date erfolgt

Mit rechten des derzeitigen Users und nicht mit rechten des Erstellers