보통 초보자 분들이
sudo가 불편해서 루트 계정을 열어 사용 하는데요 ( sudo root passwd 로…)
이게 별의미가 없습니다. su - 나 sudo -i 가 같기 때문에 [b:2j97g1x3]sudo -i [/b:2j97g1x3]하면 되거든요
루트 계정을 열면서 비번을 정하면 sudo가 자신 비번으로 안되고
서버 경우 다른 유저에게 sudo 권한을 줄 수 없습니다.
그래서 다시 root 계정을 막는 명령어는
[b:2j97g1x3]sudo passwd -l root[/b:2j97g1x3] 입니다.
-l 옵션을 주면 root 계정이 다시 막힙니다.
치매 떔시 자주 적어야 겠습니다.
[code:2j97g1x3]If you want to enable root account (which is not recommended) enter the following command.
$sudo passwd root
This will prompt for a new root password and once you confirm it, you can start using the root account to login.
If you want to disable root account in ubuntu you need to lock the root account by using the following command
$sudo passwd -l root
If you want to work on a root console you’d better use the following command
$sudo -i[/code:2j97g1x3]