iThome online | iThome Blog | iThome周刊訂閱

載入中...

fantasy

IT邦初學者
9級

能否於HP-UX環境限制使用者只能FTP,但不能用Telnet登入系統?

分享ITRC一個針對帳號管控的討論經驗



收到書籤:發佈到twitter      
分享時間:2008-09-13 14:01:19

▼ ADVERTISEMENT ▼

分享內容(
2

[簡單做法](但不安全,如有其他user也設定使用/user/bin/false的shell話)
/etc/passwd of /usr/bin/false. THen add /usr/bin/false to /etc/shells.

[安全做法]
1. Create a normal user account (user=xxxx group=none)
2. Make /usr/bin/false as the start-up program
3. The entry in password file should look something like
xxxx:chus5tya:233:20:,,,:/home/xxxx/./:/usr/bin/false
4. Make sure /usr/bin/false is coded in /etc/shells
5. Create the file /etc/ftpd/ftpaccess and put in the following lines ..
class all john,guest
guestgroup none
noretrieve /etc/passwd
6. Perform a man on ftpaccess if you are not sure about the format
7. Perform chmod 444 ftpaccess
# chown bin:bin ftpaccess
8. Edit /etc/inetd.conf & add "-a" argument to ftpd, its illustrated below
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a
9. # inetd -c
10. Create the following sub-dirs and files
a) ~xxxx/usr
# chown ???R bin:bin usr
# chmod 555 usr
b) ~xxxx/usr/bin
# chown root bin
# chmod 555 bin
# cp -p /sbin/ls ~xxxx/usr/bin/ls

參考資料:ITRC討論網站

能否於HP-UX環境限制使用者只能FTP,但不能用Telnet登入系統?

目前沒有資料

回應

請填寫您的回應,長度限為1,000個字,回應不計點數,也不限使用次數



 

檢舉違規

違規事項:

*補充檢舉理由(可省略),字數不可超過100字

推薦

推薦理由:


*給回答者的鼓勵(可不填),字數不可超過100字

▼ ADVERTISEMENT ▼

熱門標籤

 cisco   crystal   exchange   it   java   javascript   linux   m-power   mail   microsoft   msnlib   msnp15   msnsdk   msn機器人   mysql   nas   oracle   outlook   pmi   pmp   raid   report   sap   server   smartquery   sql   vista   windows   xp   倍力   倍力資訊   免費軟體   國際專案管理師   報表   專案管理   微軟   有話大聲說   活動   省錢   網路   網路儲存   網路管理   網頁安全   網頁設計   資安   資料庫   資訊安全   防毒軟體   2003   2008