Tagged: grep

About linux : Linux-succesful-logins-via-varlogsecure

Question Detail I’m tryig to display all successful logins in to server last 24 hours from /var/log/secure file The task is Display information from the log, who was authorized(logged) on the server in the...

About linux : grep-ignore-string-inside-parenthesis

Question Detail Here is my input: (ALL) ALL (root) ALL,!/bin/sh,!/bin/ksh,!/bin/csh (ALL) NOPASSWD: ALL (ALL) NOPASSWD: EMC_LTH (ALL) NOPASSWD: ALL (ALL) ALL (ALL) NOPASSWD: ALL (ALL) NOPASSWD: /usr/sbin/dmidecode NOPASSWD: ALL,!/usr/bin/rm,!/bin/rm (ALL) NOPASSWD: /usr/bin/passwd root I...