加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

惠普刀片机7代及虚拟VSpare5(六)

(2012-05-17 23:28:18)
标签:

it

分类: 工作
ESXi VSpare5 三个小技巧
1. Enable Clipboard Copy and paste option
Clipboard Copy and Paste option is disabled in vSphere Client
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1026437

# cp -p /etc/vmware/config /etc/vmware/config.`date +%Y%m%d`
# vi /etc/vmware/config
Add the following lines to the bottom and save:
isolation.tools.copy.disable="FALSE"
isolation.tools.paste.disable="FALSE"

NOTE: You MUST shutdown the ESX host for the above changes to take effect (a restart will not work)

2. Create Admin accounts
# cp -p /etc/passwd /etc/passwd.`date +%Y%m%d`
# vi /etc/passwd
Add the following to the bottom of the file:
user1:x:501:0:User One - Position:/:/bin/ash
user2:x:502:0:User Two - Position:/:/bin/ash


# cp -p /etc/shadow /etc/shadow.`date +%Y%m%d`
# vi /etc/shadow
Add the following to the bottom of the file:
user1:$1$aYVNtPML$8cYF0WaG.pNmp6s0lKlj80:18000:0:99999:7:::
user2:$1$aYVNtPML$8cYF0WaG.pNmp6s0lKlj80:18000:0:99999:7:::


3. Disable ROOT login via SSH
# cp -p /etc/ssh/sshd_config /etc/ssh/sshd_config.`date +%Y%m%d`
# vi /etc/ssh/sshd_config
Change 'PermitRootLogin' to 'no'
Change 'PasswordAuthentication' to 'yes'
Example:
PermitRootLogin no
PasswordAuthentication yes
# /etc/init.d/SSH restart

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有