Configuring Telnet / FTP to login as root (Solaris)

Now before getting into the details of how to configure Solaris for root logins, keep in mind that this is VERY BAD security. Make sure that you NEVER configure your production servers for this type of login.

Configure Telnet for root logins

Simply edit the file /etc/default/login
and comment out the following line as follows:
# If CONSOLE is set, root can only login on that device.
# Comment this line out to allow remote login by root.
#
# CONSOLE=/dev/console

Configure FTP for root logins

First remove the 'root' line from /etc/ftpusers.

Also, don't forget to edit the file /etc/ftpaccess and comment out the 'deny-uid' and 'deny-gid' lines. If the file doesn't exist, there is no need to create it.

NOTE: If you are using Solaris 9 or Solaris 10, the ftp* files are located in /etc/ftpd


 ftp管理

  默认ftp服务是启动的,但不允许root访问,需要修改/etc/ftpd/ftpusers,将root用户注释掉,此文件夹下包含所有被拒绝访问的用户

  安装目录:  /etc/ftpd

  svcadm  enable netwrok/ftp   启动ftp服务

  svcadm  disable network/ftp  关闭ftp服务

  svcadm  restart network/ftp 重启ftp服务

  svcs -l network/ftp   查看ftp服务的状态

  ssh管理

  默认ssh服务是启动的,但不允许root访问,需要修改/etc/ssh/sshd_config文件,将

  permitrootlogin no 改为 yes

  svcadm  enable netwrok/ssh   启动ssh服务

  svcadm  disable network/ssh  关闭ssh服务

  svcadm  restart network/ssh 重启ssh服务

  svcs -l network/ssh   查看ssh服务的状态


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25196159/viewspace-694888/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/25196159/viewspace-694888/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值