目前分類:Linux (88)

瀏覽方式: 標題列表 簡短摘要
PAM(Pluggable Authentication Modules )是由Sun提出的一種認證機制。它通過提供一些
動態鏈接庫和一套統一的API,將系統提供的服務 和該服務的認證方式分開,使得系統管理
員可以靈活地根據需要給不同的服務配置不同的認證方式而無需更改服務程序,同時也便於
向系 統中添加新的認證手段。
PAM最初是集成在Solaris中,目前已移植到其它系統中,如Linux、SunOS、HP-UX 9.0等。

Aminzai 發表在 痞客邦 留言(0) 人氣()

可插拔驗證模塊(Pluggable Authentication Module,PAM)是大多數Linux系統上的用戶驗證機制。PAM也是一個抽像層,它允許應用程序驗證用戶,而不需要瞭解底層系統的細節。PAM是模塊化的,模塊可以按照需要來添加和刪除。

簡單地說,PAM允許應用程序使用各種不同的底層方法來驗證用戶或者進程,這些方法對於應用程序來說都是透明的。應用程序只需要知道PAM API,就可以利用被添加到PAM的任何模塊,而不需要對應用程序進行任何修改。例如,密碼的驗證和智能卡的驗證都能夠按照同PAM相同的方式進行處理。

多個Linux發行版裡缺省地都裝有PAM,包括RedHat、Mandrake和我最喜歡的Gentoo。如果你的系統裡沒有安裝它,你還可以通過源代碼或者二進制代碼的形式獲得PAM。你可以從你Linux發行版的下載網站得到它,或者從PAM的主頁下載。

Aminzai 發表在 痞客邦 留言(0) 人氣()

#vi /var/www/cgi-bin/openwebmail/etc/users.conf/XXXX (XXXX為使用者名稱 )

將 allowed_serverdomain all
改為allowed_serverdomain no
便可拒絕該使用者登入, 即使他有帳號

Aminzai 發表在 痞客邦 留言(0) 人氣()

官方FAQ網址: ftp://vsftpd.beasts.org/users/cevans/untar/vsftpd-2.0.3/FAQ

Q1) 我能把用戶限制在他的家(home)目錄裏嗎?
A) 能,設置chroot_local_user=YES就行了。

Aminzai 發表在 痞客邦 留言(0) 人氣()

網路 FTP 部份:

1. 設定完 ftp 後開放匿名登入,為何匿名登入的使用者無法正確存取到使用
symlink 建立的連結目錄檔案?

Aminzai 發表在 痞客邦 留言(0) 人氣()

http://article.gmane.org/gmane.linux.centos.general/39531

> May 20 10:40:03 mx01 snmpd[2572]: Connection from - 127.0.0.1
> May 20 10:40:03 mx01 snmpd[2572]: transport socket = 12
>

Aminzai 發表在 痞客邦 留言(0) 人氣()

在 apache 本身的套件中, 有個叫 ab(ApacheBench) 的程式.
ApacheBench 主要是用來測試 apache 執行效率.
ab 參數:
Usage: /usr/sbin/ab [options] [http[s]://]hostname[:port]/path
Options are:
-n requests Number of requests to perform

Aminzai 發表在 痞客邦 留言(0) 人氣()

1. #vi /etc/ssh/sshd_config
修改 #Banner /xxx/xxx
改成 #Banner /etc/ssh/sshd_banner (後面路徑自行調整)

2. #vi /etc/ssh/sshd_banner

Aminzai 發表在 痞客邦 留言(0) 人氣()

如何做到可以讓VSFTP可以

同時讓兩個帳號可以同時使用同一個資料夾

而且有可以分開控制他們的權限

Aminzai 發表在 痞客邦 留言(0) 人氣()

FreeBSD的帳號密碼及其他資訊都存在master.passwd,Linux則分別存在passwd及shadow中。
master.passwd@FreeBSD
帳號:密碼:UID:GID:Login Class:Change:Expire:Full Name:家目錄:Login SHELL

  • Login Class:幾乎沒在用了,通常是空的
  • Change:強迫使用者改密碼的時間週期, 0 表示不設定
  • Expire:使用者帳號的使用期限, 0 表示不設定

passwd@Linux
帳號:密碼:UID:GID:Full Name:家目錄:Login SHELL

Aminzai 發表在 痞客邦 留言(0) 人氣()

http://wiki.centos.org/Repositories/RPMForge#head-9fa574af94d24a84aa13e4bdfa6f17cf9a404954-2

-----------------------------------

Installing RPMForge

RPMForge is a collaboration of Dag, Dries, and other packagers. They provide over 2600 packages for CentOS, including mplayer, xmms-mp3, and other popular media tools. It is not part of RedHat or CentOS but is designed to work with these major distributions.


Packages are supplied in RPM format and in most cases are ready to use. Beware that some packages are newer than the official CentOS version and you should not blindly install those packages. Before you replace a CentOS package you should make sure that will not break anything important. In most cases you can revert any mistakes but it is best to avoid the mess.

Aminzai 發表在 痞客邦 留言(0) 人氣()

真是迅速阿
Centos 出來沒幾天 就讓我發現如何升級到CentOS的技術文件

哈哈

Aminzai 發表在 痞客邦 留言(0) 人氣()

#!/bin/bash
#####################
#
#This is a auto del file when that is old then 7 days
#

Aminzai 發表在 痞客邦 留言(0) 人氣()

加入useradd +eduquota+passwd

 #!/bin/bash
#####################
#

Aminzai 發表在 痞客邦 留言(0) 人氣()


#!/bin/bash
ntpdate time.stdtime.gov.tw

hwclock

Aminzai 發表在 痞客邦 留言(0) 人氣()



使用 screen

Aminzai 發表在 痞客邦 留言(0) 人氣()

Apache mod 錯誤提示信息
[root@srv-2 modules]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 358 of /etc/httpd/conf/httpd.conf:
Invalid command 'Order', perhaps mis-spelled or defined by a module not included
in the server configuration

Aminzai 發表在 痞客邦 留言(0) 人氣()


export PS1="\033[01;35m\]\u\[\033[00m\][\033[01;32m\]\d \A\[\033[00m\]]@\]\033[01;33m\]\h\]\033[00m\]:\[\033[01;34m\]\w\[\033[00m \033[02m\\]\033[36m\]\$\]\033[00m\]"

Aminzai 發表在 痞客邦 留言(0) 人氣()

---------------------------------dag.repo
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1

Aminzai 發表在 痞客邦 留言(0) 人氣()

http://www.hkitn.com/article.php/5630

怎麼建立Linux VPN伺服器

1)安裝DKMS包

  rpm --install dkms-1.12- 2.noarch.rpm

Aminzai 發表在 痞客邦 留言(0) 人氣()