當前位置:首頁 » 操作系統 » 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.

熱點內容
android漂亮的listview 發布:2025-03-14 13:40:26 瀏覽:390
android路線規劃 發布:2025-03-14 13:23:22 瀏覽:302
poi瀏覽器島風go緩存 發布:2025-03-14 13:10:24 瀏覽:187
具體可要說存儲在鋼瓶中是因為 發布:2025-03-14 13:00:36 瀏覽:440
汽車空調壓縮機不轉了 發布:2025-03-14 12:55:45 瀏覽:30
安卓和平營地cp怎麼組 發布:2025-03-14 12:55:40 瀏覽:604
時序模式演算法 發布:2025-03-14 12:50:45 瀏覽:203
爐石傳說標准模式多腳本 發布:2025-03-14 12:47:53 瀏覽:210
密碼鎖用密碼打不開是什麼原因 發布:2025-03-14 12:31:25 瀏覽:196
低溫存儲測試 發布:2025-03-14 12:10:22 瀏覽:245