utorok 27. apríla 2021

List of account in Linux

 Some customers need list of account on linux without user=services. 


We will work with /etc/passwd. 




This is the output from /etc/passwd via awk help. (I found this guide on the internet)


[root@localhost ~]# awk -F/ '$NF != "nologin"' /etc/passwd | awk -F/ '$NF != "shutdown"'| awk -F/ '$NF != "halt"' | awk -F/ '$NF != "sync"'

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

user:x:1000:1000:user:/home/user:/bin/bash

peto:x:1001:1001:najvacsia ikona spevu:/home/peto:/bin/ksh

[root@localhost ~]# vlc mirove_prekvapenie.mp3 




Žiadne komentáre:

Zverejnenie komentára