Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Loginfile mit bestimmten Benutzer auslesen!!

Empfohlene Antworten

Hallo!

Ich bin zur Zeit anfänger in der Shell-Programmierung und ich weiß nicht, wie ich das folgende Problem umsetzen muss!!!

Vielleich könnt ihr mir helfen???

Der Benutzer soll zwei Loginnamen eingeben können und das Programm soll nachschauen, ob es im /etc/passwd vorhanden ist, wenn nicht soll eine Meldung erscheinen!!!

fuid loginname1, loginname2,…

loginname1 : UID xxx

loginname2: UID xxx

bzw

loginname nicht regestriert

if Kommando

then

// exit code = 0

else

// exit code > 0

fi/

if grep „.“… > tem $$ “ “ = Suchstring

then

// exit code = 0

else

// exit code > 0

fi/

for….

If grep “$1†/etc/passwd >

Shift // schiebt die Variable um eins nach

/etc/passwd /etc/shadow

loginname:x:UID:SID:…

root:x:0:0:…

|

|

cut

^loginname:UID

cut –d: -f 1,3 | grep “^$1 “ //= sehr wichtig –d = demiliter

cut –d: -f 1,3 | temp$$ PID vom letzten $

Ich bedanke mich schon im voraus!!!

Mfg

Hoelli

Ich bin zur Zeit anfänger in der Shell-Programmierung und ich weiß nicht, wie ich das folgende Problem umsetzen muss!!!

Vielleich könnt ihr mir helfen???

Du scheinst auch nicht zu wissen, wie man eine Frage stellt.

Wie man Fragen richtig stellt

Dann kann dir vielleicht geholfen werden.

id -u username

Warum ständig das Rad neu erfinden? :P

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.