查看完整版本 : su root or login root

chuikingman 2014-3-28 07:05 PM

su root or login root

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.

lam2070 2014-3-28 09:03 PM

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'.

種賤星堤 2014-3-28 11:25 PM

*** 作者被禁止或刪除 內容自動屏蔽 ***

星海揚帆 2014-3-29 12:26 AM

[quote]原帖由 [i]lam2070[/i] 於 2014-3-28 21:03 發表 [url=http://computer.discuss.com.hk/redirect.php?goto=findpost&pid=384523533&ptid=23100234][img]http://computer.discuss.com.hk/images/common/back.gif[/img][/url]
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'. [/quote]

You can't login as root in Ubuntu is because the password is set to a random character string during installation.

chuikingman 2014-3-29 08:23 AM

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

rs2754 2014-3-29 01:29 PM

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;
[url]http://www.centos.org/docs/4/4.5/Security_Guide/s2-wstation-privileges-noroot.html[/url]

chuikingman 2014-3-30 08:17 AM

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 .

rs2754 2014-3-30 08:15 PM

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

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

[[i] 本帖最後由 rs2754 於 2014-3-31 01:15 AM 編輯 [/i]]

星海揚帆 2014-4-12 09:28 AM

[quote]原帖由 [i]chuikingman[/i] 於 2014-3-29 08:23 發表 [url=http://computer.discuss.com.hk/redirect.php?goto=findpost&pid=384548617&ptid=23100234][img]http://computer.discuss.com.hk/images/common/back.gif[/img][/url]
I use Centos linux . please advice how I can make this setting in normal centos linux .... [/quote]

I don't understand.
Are you saying you cannot 'su -' in your installation of CentOS?

chuikingman 2014-4-13 08:04 PM

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 ...
頁: [1]
查看完整版本: su root or login root