LoginSignup
1
1

More than 5 years have passed since last update.

apacheでチーム開発するときのパーミッション設定

Posted at

参考

https://qiita.com/knife0125/items/603624e9e15d1eda0869

# グループ作成
groupadd team

# ユーザをグループに所属
usermod -aG team user1
usermod -aG team user2  # ← -a 忘れると既存のgroup全部消すから気をつけて!


...


# 物置(共有フォルダ)のパーミッション
chmod -R 2775 /share

# /var/wwwのパーミッション
chmod -R 2775 /var/www
chmod -R g+s /var/www

ログインしなおせば完了。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1