Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- port
- Source
- DB 도메인
- resource
- web.xml
- 네트워크
- netsh
- vscode
- VirtualBox
- lsof
- 줄바꿈 문자
- IntelliJ
- JavaScript
- Eclipse
- ssh
- xargs
- grep
- 단축키
- maVen
- tomcat
- context
- profile
- find
- bash
- GIT
- Windows
- Mac
- import
- Windows 10
- Quartz
Archives
- Today
- Total
develog
[bash] su 로 다른 계정으로 전환하고 스크립트 실행하기 본문
root 계정으로 ssh 에 로그인하고
su 로 user01 계정으로 전환하고 스크립트를 실행한다
[root@dev01 ~]# su - user01 -c "~/my_script.sh"
su 옵션
OPTIONS
-, -l, --login
Start the shell as a login shell with an environment similar to a real login:
-c, --command=command
Pass command to the shell with the -c option.
Comments