| local service | user | pw | |——|——|—-| | portainer | nsadmin | What#Time$ | | cockpit | nsadmin | What#Time | | gitea | nsadmin | What#Time |
| user | uid | gid | pw | groups | |———|——|—–|————-|—–| | root | 0 | 0 | What#Time | - | | nsadmin | 1000 |1000 | What#Time | - | | na | 1001 |1001 | - | - | | cat | 1002 |1002 | What#Time | - | | na | 1003 |1003 | - | - | | na | 1004 |1004 | - | - | | smbshare| 1005 |1005 | What#Time | - |
8 groupadd -g 1005 smbshare
9 sudo groupadd -g 1005 smbshare
10 cat /etc/group
11 sudo useradd smbshare -u 1005 -g 1005 -m -s /bin/bash
12 sudo usermod -a -G smbshare nsadmin
13 cat /etc/group
14 cd /media/TestStorage/
15 ls
16 ls -alu
17 vi fromdockervm.txt
18 exit
19 ls -alu /media/TestStorage/
20 usermod -aG sudo smbshare
21 sudo usermod -aG sudo smbshare
22 cat /etc/groups
23 cat /etc/group
24 cat /media/TestStorage/testfromnsadminsmbslwin11.txt
25 ls -alu /media/TestStorage
26 id
27 id smbshare
28 id cat
29 id testsmb
30 id root
31 deluser --remove-home nsuser1
32 sudo deluser --remove-home nsuser1
33 sudo deluser --remove-home nsuser2
34 id testsmb
35 sudo delgroup testsmb
36 cat /etc/group
37 sudo useradd -u 1001 docker
38 id docker
39 sudo useradd -u 1001 nsdocker
40 cat /etc/passwd
41 sudo deluser --remove-home cat
42 cat /etc/passwd
43 cat /etc/group
44 sudo useradd -u 1001 nsdocker
45 cat /etc/group
46 cat /etc/passwd
47 sudo usermod --shell /bin/bash nsdocker
48 cat /etc/passwd
49 sudo passwd nsdocker
50 sudo useradd -m /home/nsdocker nsdocker
51 sudo useradd -m nsdocker
52 sudo mkhomedir_helper nsdocker