sudo chown -R realcom:realcom /mnt/storage
sudo chmod -R 775 /mnt/storage
sudo setfacl -R -m u:www-data:rwx /mnt/storage
sudo setfacl -R -d -m u:www-data:rwx /mnt/storage


sudo systemctl restart php8.4-fpm
sudo systemctl reload nginx

# 1. 마운트 지점 예시
MOUNT=/mnt/storage   # 네가 쓰는 실제 경로로

# 2. 소유권
sudo chown -R realcom:share_data $MOUNT

# 3. 기본 권한
sudo chmod -R 777 $MOUNT

# 4. ACL (www-data + 모든 신규파일 자동 적용)
sudo setfacl -R -m u:www-data:rwx $MOUNT
sudo setfacl -R -m g:share_data:rwx $MOUNT
sudo setfacl -R -d -m u:www-data:rwx $MOUNT
sudo setfacl -R -d -m g:share_data:rwx $MOUNT



sudo apt-get update
sudo apt-get install -y apache2-utils


