Buyisela izingodo zakho ku-ArchLinux njengaseDebian noma amanye ama-distros ane-syslog-ng

Yize ku-ArchLinux esinayo I-Systemd, yini nge systemctl Siyazibona izingodo zohlelo, kusenabaningi bethu abaphuthelwa ukuba nezingodo ezinjenge /var/log/auth.log noma okufanayo, okuthi ngokuzenzakalela ku-ArchLinux asikwazi ukukuthola. kungani? ... ngoba nje sesivele sizijwayeze ukuzisebenzisa kanjena, ngoba kwamanye ama-distros afana ne-Debian, Ubuntu, njll eza kanjena, njengenjwayelo.

Thatha isibonelo i- auth.log okufanele ibe ku / var / log / (akuyona ngokuzenzakalela). Uma ku-ArchLinux sifuna ukubuyisela lelo log lapho lihlala likhona, ukuze sazi imizamo yokuqinisekisa kukhompyutha yethu nakwabanye, ukuze siqiniseke ngokuvikeleka ngale kwe-firewall, i-syslog-ng ingaba enye indlela enhle kakhulu.

Okokuqala kufanele siyifake ku-ArchLinux:

sudo pacman -S syslog-ng

Uma sekufakiwe, siyaqhubeka nokuyiqala:

sudo systemctl start syslog-ng

Ngemuva kwalokho, ukuze iqale ngokuzenzakalela siyinika amandla ngokunika amandla:

sudo systemctl enable syslog-ng

Nasi isithombe-skrini:

syslog-ng

 

Njengoba ukwazi ukubona, sesivele sinamafayela we-log ebesingenawo ngaphambili, ngokwesibonelo i-auth.log ehlobene nokufakazela ubuqiniso, okuyothi (futhi ngokuningiliziwe) sikwazi imizamo (yehlulekile noma kuvunyelwe) kokungena ngemvume ngokusebenzisa ssh, ukungena kwangaphakathi kanjalo, njll. Wozani, lokho kuye kufana nokuba nogodo lwendlu yethu umkhandi wezikhiye ophuthumayo 24h Izinsuku eziyi-7 ngeviki 😀

syslog-ng-auth-log

 

 

Ngendlela, uma ubuza ukuthi ngizifaka kanjani izingodo, ngikwenze ngazo ccze.

Futhi nakhu okuthunyelwe kuyaphela. Lokhu ngaphezu kwanoma yini kuyimemorandamu kimi, kepha ngiyethemba kuzoba wusizo ngaphezu kweyodwa one

Phendula ngokucaphuna


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-7, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   angelblade kusho

    Akubukeki kubi nakancane.

  2.   Rodolfo kusho

    Okuthunyelwe okuthakazelisayo, kuhle ukuba namanye amarekhodi ku-Arch, ngendlela iKZKG ^ Gaara oyisebenzisayo i-DE?

    1.    Tesla kusho

      Uma angididekile ngicabanga ukuthi yi-KDE enetimu ethile elingisa ukubonakala kwe-Elementary OS. Ngicabanga into enjengale: http://www.deviantart.com/art/elementary-qtcurve-1-2-333198882

      Un saludo!

  3.   ifilosofi kusho

    Okuthunyelwe okuhle! Ngingazi ukuthi uzithathephi izinhlamvu ozisebenzisayo ku- $ PS1?

  4.   umgibeli kusho

    Ngiyabonga ngale ndatshana. Ukuntuleka kwamarekhodi ohlelweni lwami. 🙂

  5.   eVeR kusho

    Umyalo wokubuka izingodo ezenziwe i-systemd ngu "journald".
    Ngokuyisisekelo kuyafana (ungahlunga okukhiphayo ukubona isibonelo imizamo yokufinyelela ehlulekile, noma yini enye), umehluko kuphela ukuthi izingodo zigcinwa ngefomethi kanambambili hhayi embhalweni njengoba kwenza i-syslog.
    Phendula ngokucaphuna