當前位置:首頁 » 操作系統 » linuxapache許可權

linuxapache許可權

發布時間: 2022-07-22 19:24:58

linux Apache中的awstats日誌分析軟體,訪問時出現沒有許可權,求大神幫忙

selinux的問題,簡單的做法是setenforce 0;
麻煩的方案是,你去設置文件夾的selinux許可權;
selinux的許可權用ls -alZ 查看。

㈡ 我想把linux系統下的 /etc/apache2/apache2.conf 這個文件的許可權修改為可讀可寫可執行 ,具體如何操作

修改許可權 用 chmod 命令你找找他的用法

㈢ linux 下apache的許可權該怎樣設置

樓上已經說的很全了,該用戶能不能登錄主要要看/etc/passwd文件中該用戶對應的shell是什麼,如果是nologin說明不能登錄。正常能登錄的shell有sh,bash,csh,ksh等。

㈣ linux 主機 我已經設置 所有文件夾為777許可權,為什麼 apache不能訪問呢,而drwxr-xr-x確可以訪問

你可以用find指令來完成:

# 例如現在在test文件夾下面有這些文檔和子目錄
find ./test -exec ls -l {} \;

# output如下:

drwxr-sr-x 2 wenlee comm 256 Dec 22 10:43 d1
drwxr-sr-x 2 wenlee comm 256 Dec 22 10:43 d2
drwxr-sr-x 2 wenlee comm 256 Dec 22 10:43 d3
drwxr-sr-x 2 wenlee comm 256 Dec 22 10:43 d4
drwxr-sr-x 2 wenlee comm 256 Dec 22 10:43 d5
total 0
-rw-r--r-- 1 wenlee comm 0 Dec 22 10:35 1.txt
-rw-r--r-- 1 wenlee comm 0 Dec 22 10:35 ./test/d1/1.txt
total 0
-rw-r--r-- 1 wenlee comm 0 Dec 22 10:35 1.txt
-rw-r--r-- 1 wenlee comm 0 Dec 22 10:35 ./test/d2/1.txt
total 0
-rw-r--r-- 1 wenlee comm 0 Dec 22 10:35 1.txt
-rw-r--r-- 1 wenlee comm 0 Dec 22 10:35 ./test/d3/1.txt
total 0
-rw-r--r-- 1 wenlee comm 0 Dec 22 10:35 1.txt
-rw-r--r-- 1 wenlee comm 0 Dec 22 10:35 ./test/d4/1.txt
total 0
-rw-r--r-- 1 wenlee comm 0 Dec 22 10:35 1.txt
-rw-r--r-- 1 wenlee comm 0 Dec 22 10:35 ./test/d5/1.txt

# 現在你可以用下面的指令把其他的許可權更改為 - rw- 如(-rw-r--rw-):

find ./test -exec chmod o+w {} \;

# 驗證結果:

$ find ./test -exec ls -l {} \;
total 0
drwxr-srwx 2 wenlee comm 256 Dec 22 10:43 d1
drwxr-srwx 2 wenlee comm 256 Dec 22 10:43 d2
drwxr-srwx 2 wenlee comm 256 Dec 22 10:43 d3
drwxr-srwx 2 wenlee comm 256 Dec 22 10:43 d4
drwxr-srwx 2 wenlee comm 256 Dec 22 10:43 d5
total 0
-rw-r--rw- 1 wenlee comm 0 Dec 22 10:35 1.txt
-rw-r--rw- 1 wenlee comm 0 Dec 22 10:35 ./test/d1/1.txt
total 0
-rw-r--rw- 1 wenlee comm 0 Dec 22 10:35 1.txt
-rw-r--rw- 1 wenlee comm 0 Dec 22 10:35 ./test/d2/1.txt
total 0
-rw-r--rw- 1 wenlee comm 0 Dec 22 10:35 1.txt
-rw-r--rw- 1 wenlee comm 0 Dec 22 10:35 ./test/d3/1.txt
total 0
-rw-r--rw- 1 wenlee comm 0 Dec 22 10:35 1.txt
-rw-r--rw- 1 wenlee comm 0 Dec 22 10:35 ./test/d4/1.txt
total 0
-rw-r--rw- 1 wenlee comm 0 Dec 22 10:35 1.txt
-rw-r--rw- 1 wenlee comm 0 Dec 22 10:35 ./test/d5/1.txt

了解了嗎?
Good Luck! thx

㈤ 如何在Linux下修改文件file的用戶許可權,從root修改成Apache

如果想要修改許可權使用
chmod
rxw
file_name
r代表只讀
w代表只寫
x代表只有指向許可權
修改用戶
chown
Apache
file_name。

㈥ linux apache進程 什麼許可權

一般都是新建一個普通賬戶,比如www,然後在httpd.conf里設置www為守護進程

㈦ linux下如何讓ftp賬戶獲得apache文件的讀寫許可權又不會影響apache的讀寫

vsftpd設置虛擬賬戶許可權,把local_root的路徑設置為apache的文件夾路徑,再設置讀寫許可權。

㈧ linux root用戶安裝apache運行README文件時提示許可權不夠

這個是正常的,如果你的許可權設置不對的話,root也不能安裝。
一方面要看看文件/文件夾的許可權,另一方面要看看是否啟用了SELinux.

熱點內容
蘋果店教編程 發布:2025-09-16 01:55:33 瀏覽:531
linux安全狗 發布:2025-09-16 01:51:18 瀏覽:638
bash腳本格式 發布:2025-09-16 01:42:02 瀏覽:505
ftp訪問錯誤代碼550 發布:2025-09-16 01:32:21 瀏覽:439
打lol什麼配置要求 發布:2025-09-16 01:32:14 瀏覽:60
香港績點演算法 發布:2025-09-16 01:25:33 瀏覽:935
集合順序存儲 發布:2025-09-16 01:17:31 瀏覽:583
安卓如何開啟應用數據 發布:2025-09-16 00:51:14 瀏覽:585
it固定資產管理系統源碼 發布:2025-09-16 00:35:42 瀏覽:357
Linux是搭建www伺服器 發布:2025-09-16 00:35:34 瀏覽:342