0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

FTPパーミッションdenyをvsftpd設定で直した

0
Posted at

基本環境
不具合
不具合の理由
不具合を解消
今後の課題
参考記事

基本環境

CentOS-7.9.2009
Apache-2.4.6
php-8.0.10

不具合

File Zillaで接続するものの、アップロード、ダウンロード、パーミッション変更、削除ができない(つまり見るだけ)
アップロード、ダウンロードファイルの親ディレクトリをパーミッション777にするとアップロード、ダウンロードができる

不具合の理由

vsftpdの設定ファイルvsftpd.conf内で
local_umask=022
という設定をしていたため
この設定では、アップロードするファイルのパーミッションを自動的に下げてしまう
local_umask=022
規定値755を644に下げる

不具合を解消

vsftpd設定を変更

# vim /etc/vsftpd/vsftpd.conf
local_umask=022
↓下記に変更
local_umask=002

今後の課題

FTPからのパーミッション変更

sftp接続


参考記事

https://www.logw.jp/server/7517.html
http://park12.wakwak.com/~eslab/pcmemo/linux/vsftpd/vsftpd3.html

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?