hy mastah

i have a exercise from lab on campus

1. create a user but the user cannot login

2. create 2 user. user1 only can login in tty1 but cannot login in tty2 until tty6. user2 cannot login in tty1 but can login in tty2 - tty6

anyone can help me to solve my exercise ?

i'm hopeless

thx before