Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Add users manually

Shulou Source: shulou.com Published: 2022-06-03 07:16:58 09月23日 Update

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:

Tags: Password generate manual user demand encryption input Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Shulou Tech Info MySQL MariaDB macOS