Posts

Showing posts from 2020

Basic Bash Scripting in Linux (Part-1)

  Script for adding users and their password: ==================================== (1) Method-1 ============= [root@itbd ~]# vim users.sh for a in `seq 1 5`; do useradd ituser$a; echo pass$a | passwd --stdin ituser$a; chage -d 0 ituser$a; done [root@itbd ~]# chmod +x user.sh [root@itbd ~]# bash users.sh (2) Method-2 ============ [root@itbd ~]# vim admin-user.txt mamun imran shazzad [root@itbd ~]# vim users.sh #!/bin/sh for a in `more admin-user.txt` do echo "$a" useradd $a echo "123" | passwd --stdin "$a" chage -d 0 $a done [root@itbd ~]# chmod +x user.sh [root@itbd ~]# bash users.sh Method-3: ========== #vim  user-list.txt mushfiq:mushfiq123:1003:1003::/home/mushfiq:/bin/bash testuser:testuser123:1004:1004::/home/testuser:/bin/bash demouser:demouser123:1005:1005::/home/demouser:/bin/bash # newusers user-list.txt                                                                                  [to create bulk users from given file

Some Questions for MTCNA Exam

Image
  ** Some Questions for MTCNA Exam **  ## Link for testing your skill for MTCNA: https://www.proprofs.com/quiz-school/story.php?title=ODQzMzMy1LXH 1.  Choose correct statements for MikroTik proxy (MULTI) A. Controls domains or servers which are allowed to cache by Proxy B. To deny access to a specific website, caching should be enabled C. Destination NAT rule is required to utilize transparent proxy facility D. Can deny access to a specific domains or servers, but not specific web pages 2.  What can be used as ’target-address’ in the simple queue? (ONE) A. server’s address B. client’s address C. client’s MAC address D. address list name 3.  A MikoTik PPPoE Server can be used only within a broadcast domain, that is, users can not run PPPoE protocol with a server if there is a router between the customer and that PPPoE server. TRUE / FALSE 4.   What is the minimal possible wireless configuration to create an Access Point? (ONE) A. ssid B. DFS mode C. radio name D. scan-list E. band F. WD