The ESXi Shell can be disabled by an administrative user. See the vSphere Security documentation for more information. [root@localhost:~] ls altbootbank bootpart.gz etc local.tgz opt sbin tardisks usr vmimages bin bootpart4kn.gz lib locker proc scratch tardisks.noauto var vmupgrade bootbank dev lib64 mbr productLocker store tmp vmfs [root@localhost:~] cd vmfs [root@localhost:/vmfs] ls devices volumes [root@localhost:/vmfs] cd volumes/ [root@localhost:/vmfs/volumes] ls 6035539a-d5cf89aa-2ba2-d4f5ef22a700 6037fc19-8b1b1f46-8761-d4f5ef22a700 709f1276-e598b5f7-ed0e-1fc1d1d5f8a9 datastore243 603583e1-f925d50a-e531-d4f5ef22a700 6037fc24-88fcd478-287a-d4f5ef22a700 VMFS-243 e6a22d7e-61171781-e2c6-9a9d85c3552c [root@localhost:/vmfs/volumes] cd datastore243/ [root@localhost:/vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700] ls 603ab84a-770d-d240-9bc9-d4f5ef22a700 soft sysSwap-hc-603ab84a-770d-d240-9bc9-d4f5ef22a700.swp [root@localhost:/vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700] ls 603ab84a-770d-d240-9bc9-d4f5ef22a700 soft sysSwap-hc-603ab84a-770d-d240-9bc9-d4f5ef22a700.swp [root@localhost:/vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700] cd s -sh: cd: can't cd to s: No such file or directory [root@localhost:/vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700] cd soft/ [root@localhost:/vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/soft] ls localtime [root@localhost:/vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/soft] cp /vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/s soft/ sysSwap-hc-603ab84a-770d-d240-9bc9-d4f5ef22a700.swp [root@localhost:/vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/soft] cp /vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/soft/localtime /etc/localtime cp: can't create '/etc/localtime': Operation not permitted [root@localhost:/vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/soft] chmod 777 /etc/localtime [root@localhost:/vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/soft] cp /vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/soft/localtime /etc/localtime cp: can't create '/etc/localtime': Operation not permitted [root@localhost:/vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/soft] lsattr /etc/localtime -sh: lsattr: not found [root@localhost:/vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/soft] chattr -i /etc/localtime -sh: chattr: not found [root@localhost:/vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/soft] cp /vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/soft/localtime /etc/localtime cp: can't create '/etc/localtime': Operation not permitted [root@localhost:/vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/soft] lsattr -d /etc/localtime -sh: lsattr: not found [root@localhost:/vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/soft] data -sh: data: not found [root@localhost:/vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/soft] date Tue Mar 2 23:50:21 UTC 2021 [root@localhost:/vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/soft] cd [root@localhost:~] cp /vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/soft/localtime /etc/localtime cp: can't create '/etc/localtime': Operation not permitted [root@localhost:~] cd .. [root@localhost:~] cp /vmfs/volumes/6035539a-d5cf89aa-2ba2-d4f5ef22a700/soft/localtime /etc/localtime cp: can't create '/etc/localtime': Operation not permitted [root@localhost:~]
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.