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 |
Tags
- 20117
- graph
- 백준 #다익스트라 #dijkstra #9370 #c++
- 백준
- 1174
- 코딩
- BOJ
- 줄어드는수
- 3D #Reconstruction #computer #vision #volume #metric #tsdf #kinect #fusion
- 진법변환 #2to10 #10to2 #이진법 #십진법 #변환 #bitset #c++
- 30870
- N번째큰수
- 호반우 상인
- 16202
- 레드아보
- 이분탐색 #dp #11053
- hcpc
- LIS #가장긴증가하는부분수열 #
- c++ #입출력 #속도 #ios #sync_with_stdio #cin #cout #tie
- 쌤쌤쌤
- graph #최단경로
- 사이클 없는 그래프
- 최소 #공배수 #최대 #공약수 #유클리드 #호제법 #lcm #gcd #c++ #boj #3343 #백준 #장미
- C++
- backtracking #codetree #디버깅 #삼성코테
- c++ #boj #
- 22869
- 투포인터 #백준 #boj #20922 #22862
- 3343
- boj #백준
Archives
- Today
- Total
hyunjin
우분투 bash: [file] : Permission denied 본문
728x90
.py 파일 실행 시 permission denied error 발생
해결법
PermissionError: [Errno 13] Permission denied
우분투 웹서버에서 보통 폴더및 파일 권한 문제로 발생되는 이슈이다.
다양한 문제가 있겠지만
일시적 해결 방법으로 폴더또는 파일에 대한 권한을 모두 주면 된다.
1. data 라는 폴더에 모든 권한(읽기,쓰기,실행)을 준다 . /var/www/html/data 위치에 있다는 가정시
bigcat-ubuntu:/var/www/html#
sudo chmod 777 /var/www/html/data
또는 sudo chmod 777 data/
2. test.py 파일에 권한을 주려면 (모든 사용자에게 실행)
sudo chmod a+x test.py
→ 내 error는 이 명령어 통해 해결함.
- 참고로 모든 권한을 없앨경우
chmod 000 test.py
출처: https://redapply.tistory.com/entry/PermissionErrorErrno13-Permission-denied-우분투-에러시 [Bigcat:티스토리]
728x90
'개인 공부 > 환경세팅' 카테고리의 다른 글
cuda 버전 (0) | 2022.07.26 |
---|---|
No module name error (0) | 2022.07.18 |
visdom port (0) | 2022.03.04 |
우분투 가상환경 관련 명령어, pytorch cuda python 호환 버전 (0) | 2022.03.03 |
Error in using cuda (ValueError: Expected a cuda device with a specified index or an integer, but got: ) (0) | 2022.03.03 |