自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

如果SELinux拒絕vsftpd上傳文件到用戶(hù)主目錄怎么辦

系統(tǒng) Linux
vsftpd是一款在Linux發(fā)行版中最受推崇的FTP服務(wù)器程序。特點(diǎn)是小巧輕快,安全易用。vsftpd 的名字代表"very secure FTP daemon",本文給大家說(shuō)個(gè)關(guān)于SELinux拒絕vsftpd上傳文件的小問(wèn)題。

用慣了vsftpd,覺(jué)得vsftpd非常實(shí)用而且安全,但是那些初學(xué)者經(jīng)常會(huì)遇到一些問(wèn)題如下:

  系統(tǒng)是CentOS 5.1,創(chuàng)建用戶(hù)后,不能登陸FTP,在/var/log/messages文件記錄以下信息:

  Mar 31 13:46:15 localhost kernel: audit(1206942375.697:5719): avc: denied { append } for pid=32111 comm="vsftpd" name="test" dev=sda3 ino=19400200 scontext=root:system_r:ftpd_t:s0 tcontext=root:object_r:root_t:s0 tclass=file

  SELinux ftp daemon policy is customizable based on least access required. So by default SElinux does not allow users to login and read their home directories.

  If you are setting up this machine as a ftpd server and wish to allow users to access their home directorories, you need to set the ftp_home_dir boolean.

  執(zhí)行命令:

  setsebool -P ftp_home_dir 1

  上傳文件成功。

通過(guò)閱讀上面文章,你是否也遇到過(guò)這樣類(lèi)似的問(wèn)題,那就請(qǐng)留言給我,我?guī)湍銈兘獯穑?/P>

【編輯推薦】

責(zé)任編輯:趙鵬 來(lái)源: 網(wǎng)絡(luò)轉(zhuǎn)載
相關(guān)推薦

2009-04-15 20:32:39

Linux工作目錄用戶(hù)主目錄

2024-03-13 15:26:13

Node.js戶(hù)主目錄Windows

2017-06-30 13:23:59

SaaS供應(yīng)商破產(chǎn)

2022-04-22 10:30:07

框架JavaScript前端

2011-03-01 09:29:45

vsftpd用戶(hù)目錄

2013-02-28 11:00:51

IE10瀏覽器

2021-11-16 07:02:05

函數(shù)Python返回值

2011-03-04 09:59:41

Vsftpd匿名用戶(hù)

2021-01-23 23:18:21

Windows 10Windows微軟

2018-09-04 16:01:33

工作挑戰(zhàn)性技術(shù)

2021-02-24 08:38:48

Kafka消息Consumer

2018-03-21 11:14:22

云計(jì)算云計(jì)算提供商數(shù)據(jù)

2023-07-07 00:54:05

2017-12-08 11:14:21

2020-04-30 13:41:59

用戶(hù)輸入錯(cuò)誤Pythonkeyerror

2010-05-20 16:08:01

亞馬遜故障

2017-03-01 15:08:44

Linuxboot目錄啟動(dòng)

2015-10-10 10:42:03

企業(yè)級(jí)云服務(wù)AWS

2022-02-17 08:57:18

內(nèi)存設(shè)計(jì)進(jìn)程

2013-08-07 09:43:28

點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)