Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Apr 2004 10:49:03 +0100
From:      Peter Risdon <peter@circlesquared.com>
To:        oXid <oxid_o@mail.ru>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Problem with SU utility!!!
Message-ID:  <4073CE8F.8090409@circlesquared.com>
In-Reply-To: <786258236.20040407132535@mail.ru>
References:  <1607053553.20040407131225@mail.ru> <Pine.LNX.4.44.0404071239590.2558-100000@poczta.wup-katowice.pl> <786258236.20040407132535@mail.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
oXid wrote:

>Hello Arek,
>
>Wednesday, April 7, 2004, 2:42:26 PM, you wrote:
>
>AC> On Wed, 7 Apr 2004, oXid wrote:
>
>  
>
>>>Hello,
>>>
>>>I did to all my / chmod 777... i just wanted to test somthing, but it
>>>was a bad idea :(
>>>Now, i can't login under SU. The account is in wheel
>>>group...everything is fine, but when i enter root password it says,
>>>that it is incorrect.
>>>
>...
>
>AC> Before this changes (chmod ...) you can login as root via su on this user?
>
>...
>
>I can enter as root from console. But i can't enter as root, from ssh.
>I have to enter as some user from whell then SU and etc...
>
>  
>

Read /etc/ssh/sshd_config and find the line:

#PermitRootLogin no

Uncomment it and change no to yes if you really do want to permit direct 
root logins. It's generally thought to be a bad idea, though. Better to 
log in as a user and su/sudo when you need to.

PWR.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4073CE8F.8090409>