System of Infra/Linux
[Linux] You need to be root to perform this command 에러
2swan
2024. 8. 14. 13:12
*root 권한이 아닐경우 발생하는 에러이다.
su ( switch user ) : 로그아웃 없이 계정 전환 명령어
sudo ( superuser do ) : root 권한으로 수행하는 명령어
root 계정으로 전환
su - root
root 권한으로 명령어 수행
sudo 명령어
( 이 같은 경우는 명령어마다 sudo를 붙여준다 )