루트 계정 다시 막기 sudo passwd -l root

보통 초보자 분들이
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]

초창기에 sudo가 뭔질 몰라서…루트 계정을 많이 넘나들었었습니다. ^^

ㅇㅇ 반듯이 메모해두고 활용해야할듯싶네요!!

좋은 글 보고 갑니다. 근데…
떔 ???

[quote="세벌":2ihigcpp]떔 ???[/quote:2ihigcpp]
두벌식을 애용합시다?