create a program that is expected to monitor access and attempted accesses to your network. All logon activities should be logged. All passwords should have a minimum length of 6 characters and they should use a mixture of letters, numbers and capital letters. Users are required to change their password every 30 days. All users are to get 700 MB secure storage space on the server for personal use. All home folders must be protected in such a way that only the owner can access his/her home folder. All users except those in production should be able to retain their individual settings regardless of the workstation they are using. Users in Production should not be able to change their individual setting and any changes should be discarded on log off.
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
String password;
while(true){
System.out.println("Set password: ");
password=in.next();
int n=password.length();
if (n>=6)
break;
}
System.out.println("Your password is: "+password);
}
}
Comments
Leave a comment