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

熱點內容
c語言求位數字 發布:2025-03-14 10:53:02 瀏覽:131
掛qphp 發布:2025-03-14 10:13:12 瀏覽:641
資料庫關系表示 發布:2025-03-14 10:13:11 瀏覽:233
腳本抖音號 發布:2025-03-14 10:11:07 瀏覽:668
演算法第 發布:2025-03-14 04:40:56 瀏覽:227
天選2什麼配置好 發布:2025-03-14 03:37:17 瀏覽:287
魅族手機怎麼找回密碼 發布:2025-03-14 02:35:48 瀏覽:298
配置高低主要看什麼 發布:2025-03-14 01:49:22 瀏覽:88
locpython 發布:2025-03-14 01:12:50 瀏覽:352
java數組的定義方法 發布:2025-03-14 00:53:25 瀏覽:527