java.nio.file.AccessDeniedException

2024. 10. 23. 00:10·에러일기

 

java.nio.file.accessdeniedexception

 

파일을 업로드하려는데 만났다.

 

말 그대로 파일 접근이 거부되는 에러, 즉 파일 소유권 권한문제이다.

파일이 root 권한이기 때문에, 사용자로 변경해줘야 한다.

직접 해당 파일 경로 폴더 > 속성> 권한을 바꾸거나,  

chown -R 사용자 : 사용자[폴더 이름] (폴더 안의 모든 파일들의 소유권 변경)

위 명령어를 사용하면 에러가 해결된다.

 

'에러일기' 카테고리의 다른 글

org.springframework.dao.EmptyResultDataAccessException  (0) 2024.11.03
java.sql.SQLIntegrityConstraintViolationException  (0) 2024.10.28
org.springframework.web.multipart.MultipartException  (0) 2024.10.21
the server responded with a status of 415 ()  (0) 2024.10.14
[Spring] org.springframework.beans.factory.BeanDefinitionStoreException 에러  (0) 2024.10.08
'에러일기' 카테고리의 다른 글
  • org.springframework.dao.EmptyResultDataAccessException
  • java.sql.SQLIntegrityConstraintViolationException
  • org.springframework.web.multipart.MultipartException
  • the server responded with a status of 415 ()
yn98
yn98
좌우명 : 여전할 것 인가, 역전할 것 인가? 백엔드 개발자가 되고싶은 역전하고 있는 개발자 꿈나무의 블로그입니다. 개발을 하면서 공부한 것들을 기록합니다. 24.06 ~
  • yn98
    개발 꿈나무
    yn98
  • 전체
    오늘
    어제
    • 분류 전체보기 (131)
      • Python (3)
      • 공부 (7)
      • DB (7)
      • JAVA (24)
      • JSP (9)
      • jQuery (2)
      • HTML (3)
      • Spring (20)
      • 웹 (4)
      • C (1)
      • Git (2)
      • 에러일기 (19)
      • 프로젝트 (6)
      • 책 (21)
        • 멘토씨리즈 자바 (14)
        • 2024 수제비 정보처리기사 (7)
      • 기타 (2)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • GitHub
    • Notion
  • 공지사항

  • 인기 글

  • 태그

    ViewResolver
    codeup 4891 : 행복
    이벤트 스케줄러
    @repository
    2-layered 아키텍처
    Spring
    aop
    오블완
    객체지향
    정보처리기사 실기
    스프링 프레임워크
    @service
    정보처리기사
    DispatcherServlet
    정처기
    어노테이션
    @Component
    html
    java
    오버로딩
    jsp
    정처기 실기
    생성자
    recoverabledataaccessexception
    수제비
    멘토씨리즈 자바
    티스토리챌린지
    상속
    MVC
    Di
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.0
yn98
java.nio.file.AccessDeniedException
상단으로

티스토리툴바