V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
kojp
V2EX  ›  问与答

gentoo 新手的杯具!有没有补救方法?

  •  
  •   kojp · Oct 14, 2012 · 3700 views
    This topic created in 4944 days ago, the information mentioned may be changed or developed.
    设了一个不允许root 直接登录。。。以为和centos系一样。直接就能用su 过去了。
    貌似还需要加到某个组才能生效,这一步忘记做了。

    是linode家的vps。

    有什么解决方案没?(我在想,能不能通过vnc上去弄,其它的,实在想不到办法了)
    6 replies    1970-01-01 08:00:00 +08:00
    gonbo
        1
    gonbo  
       Oct 14, 2012
    root 不能远程登陆? sudo su - ? su - ?

    实在不行,重装一个吧。
    kojp
        2
    kojp  
    OP
       Oct 14, 2012
    @gonbo

    数据呀!!!环境搭建呀!!
    sqrabs
        3
    sqrabs  
       Oct 14, 2012
    Linode可以启动VPS到rescue模式,试试这个?
    Boots your Linode into Rescue Mode. Access it via the console.
    kojp
        4
    kojp  
    OP
       Oct 14, 2012
    @gonbo
    @sprabs
    已经搞定。。。谢谢!

    我用的是。Console Access
    kojp
        5
    kojp  
    OP
       Oct 14, 2012   ❤️ 1
    把正确的禁用root直接登录的方法也一贴吧。
    新建用户。然后

    #usermod -G wheel UserName

    再然后 vi /etc/ssh/sshd_config把PermitRoot那行,改一下。
    eric_q
        6
    eric_q  
       Oct 14, 2012
    是的,wheel 组
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   999 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 20:13 · PVG 04:13 · LAX 13:13 · JFK 16:13
    ♥ Do have faith in what you're doing.