Add users manually
Requirements: add user hive manually, basic group is hive, id is 5000
Vi / etc/group:
Hive:x:5000:
Vi / etc/passwd:
Hive:x:5000:5000:Hive:/home/hive:/bin/bash
Vi / etc/shadow
HiveRangers: (date +% s) / 86400VOR 999997Rd:
Cp-r / etc/skel / / home/hive
Chown-R hive.hive / home/hive
Chmod-R go= / home/hive
Generate password:
Openssl passwd-1-salt '12345678'
Enter the password:
Generate password
Copy password to vi / etc/shadow
Hive: pasted encryption password: (date +% s) / 86400VOR 99999POS 7: