Archive for the ‘Bash’ Category

ClamAV + samba

This is a howto on getting samba + clamav  to work on a rpm system First thing first I need do install samba file server and clamav anti-virus, after configurating my samba share i have made 2 directory’s in /home virus logs the virus folder contains the infected files found during scanning and the logs [...]

Share

Creating Multiple Users on Multiple servers

Hey wassup, I was locking for a method to create multiple users on multiple Linux/Unix machines with different user id group id….. so i brows the internet back and forth and didnt found nothing what i was locking for . So i give up browsing and started scripting, shell scripting exactly because every Linux/Unix system [...]

Share

Script pentru afisare utilizatori linux, bash login, home directory

[code] #!/bin/bash case $1 in ( list-users ) reset echo "Listing users..... " cat /etc/passwd |cut -d ':' -f1 ;; ( list-valid-users ) reset echo "Listing valid users for god >:)" cat test|grep -w  "/bin/sh"$|cut -f1 -d':' cat test|grep -w  "/bin/bash"$|cut -f1 -d':' ;; ( get-user-home ) reset echo "Listing the users home...and username" echo [...]

Share