+ -
当前位置:首页 → 问答吧 → su root or login root

su root or login root

时间:2014-06-25

来源:互联网

Hi,
I find there is some customized linux with application.
When I use login account root and type the password.
It is not allow to login.
But if I login with specified user and password.
Then I use command "su - " and type root passwd.
It allow you to switch to "root" account .
Or if i use "su - root" and type password .it is not allow to login again .
It is strange I cannot login if I specified to use "root" account .

How to make this setting ..
Please advice in detailed.

作者: chuikingman   发布时间: 2014-06-25

Which Linux are you using? Ubuntu will not allow you to login as root, you must login as a normal user, then use su (aka superuser) to get privileges. Yes, use 'su -', not ' su - root'.

作者: lam2070   发布时间: 2014-06-25

maybe use 'su -' = use 'su root'

作者: 种贱星堤   发布时间: 2014-06-25

引用:原帖由 lam2070 於 2014-3-28 21:03 发表
Which Linux are you using? Ubuntu will not allow you to login as root, you must login as a normal user, then use su (aka superuser) to get privileges. Yes, use 'su -', not ' su - root'.
You can't login as root in Ubuntu is because the password is set to a random character string during installation.

作者: 星海扬帆   发布时间: 2014-06-25

I use Centos linux . please advice how I can make this setting in normal centos linux ....

作者: chuikingman   发布时间: 2014-06-25

Oh! What a shit thread!
Several lines of bullshit without one word related to the theme.

Your subject should be
How to disable root login, or
How to disallowed root login

There's a thousand post if you search it from Google

See one of the answers;
http://www.centos.org/docs/4/4.5 ... vileges-noroot.html

作者: rs2754   发布时间: 2014-06-25

Your reference link is not my case.

My case is :

I can use "su - " to switch to "root" account from non-root account
But for the same account , the command " su - root" must be disabled or make it not work .

It is my case .
Your reference is not my case and I search before .

作者: chuikingman   发布时间: 2014-06-25

What an expert to move the "football gate" !!

Change the subject and then claim "Your reference link is not my case."

[ 本帖最后由 rs2754 於 2014-3-31 01:15 AM 编辑 ]

作者: rs2754   发布时间: 2014-06-25

引用:原帖由 chuikingman 於 2014-3-29 08:23 发表
I use Centos linux . please advice how I can make this setting in normal centos linux ....
I don't understand.
Are you saying you cannot 'su -' in your installation of CentOS?

作者: 星海扬帆   发布时间: 2014-06-25

My case is :
I find a customized Centos linux .In this OS , it is only allow use "su -" to switch root.
If I use "su - root" .. it is not work.

I want to know how I reporduce in a normal centos only ...

作者: chuikingman   发布时间: 2014-06-25