我在 GCP 上创建了多个用户,所有这些用户都可以cd
进入主目录并执行任何他们想做的事情。我正在ubuntu lts 20.04
我的虚拟机上使用,想知道这是否是默认设置。如果是这样,就没有办法避免它,因为每次使用新的虚拟机时,您都会再次遇到这个问题。
total 28
drwxr-xr-x 6 user1 user1 4096 May 29 05:58 user1
drwxr-xr-x 4 user2 user2 4096 May 23 04:17 user2
drwxr-xr-x 10 user3 user3 4096 May 30 08:43 user3
drwxr-xr-x 4 user4 user4 4096 May 26 07:28 user4
drwxr-xr-x 6 user5 user5 4096 May 30 19:04 user5
drwxr-xr-x 3 ubuntu ubuntu 4096 May 20 22:10 ubuntu
drwxr-xr-x 4 user6 user6 4096 May 30 18:04 user6
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:syslog,ubuntu,user3,user2,user5,user6,user1
tty:x:5:syslog
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:ubuntu,user3,user2,user5,user6,user1
fax:x:21:
voice:x:22:
cdrom:x:24:ubuntu,user3,user2,user5,user6,user1
floppy:x:25:ubuntu,user3,user2,user5,user6,user1
tape:x:26:
sudo:x:27:ubuntu
audio:x:29:ubuntu,user3,user2,user5,user6,user1
dip:x:30:ubuntu,user3,user2,user5,user6,user1
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:ubuntu,user3,user2,user5,user6,user1
sasl:x:45:
plugdev:x:46:ubuntu,user3,user2,user5,user6,user1
staff:x:50:
games:x:60:
users:x:100:
nogroup:x:65534:
systemd-journal:x:101:
systemd-network:x:102:
systemd-resolve:x:103:
systemd-timesync:x:104:
crontab:x:105:
messagebus:x:106:
input:x:107:
kvm:x:108:
render:x:109:
syslog:x:110:
tss:x:111:
uuidd:x:112:
tcpdump:x:113:
ssh:x:114:
landscape:x:115:
admin:x:116:
netdev:x:117:ubuntu,user3,user2,user5,user6,user1
lxd:x:118:ubuntu,user3,user2,user5,user6,user1
_chrony:x:119:
systemd-coredump:x:999:
ubuntu:x:1000:user3,user2,user5,user6,user1
google-sudoers:x:1001:user3,user2,user5,user6
user3:x:1002:
user2:x:1003:
user5:x:1004:
user6:x:1005:
mysql:x:120:
user4:x:1006:
user1:x:1007: