http://www.macdevcenter.com/pub/a/mac/2002/10/22/macforunix.html
Mac OS X for Unix Geeks 一書的作者所提供的訊息,值得一看。
Top Ten Mac OS X Tips for Unix Geeks
版主: ross_tt、bryanchang、digdog、chester
- bryanchang
- 討論區管理員
- 文章: 7057
- 註冊時間: 04/19/2001 1:01 am
- 來自: The '60s
- 聯繫:
Top Ten Mac OS X Tips for Unix Geeks
這篇文章中所說的第二點有點奇怪:很難相信 Unix Geek 不會用 sudo 而跑去用 su 的... [img]images/smiles/icon_smile.gif[/img]
Top Ten Mac OS X Tips for Unix Geeks
推斷:
在其他 Unix 系統,root account 已設立及啓動,使用者可不登出而用 su 來執行 root 權限的命令。
但在 Mac OS X 中,安裝時未有啓動 root account 。作者意在提醒眾 Unix geeks 們此點。
再者,sudo 在每次輸入密碼後有五分鐘時限,逾時嗎?要再 sudo。
如 root account 已啓動,則 su 無限時。
在其他 Unix 系統,root account 已設立及啓動,使用者可不登出而用 su 來執行 root 權限的命令。
但在 Mac OS X 中,安裝時未有啓動 root account 。作者意在提醒眾 Unix geeks 們此點。
再者,sudo 在每次輸入密碼後有五分鐘時限,逾時嗎?要再 sudo。
如 root account 已啓動,則 su 無限時。
- bryanchang
- 討論區管理員
- 文章: 7057
- 註冊時間: 04/19/2001 1:01 am
- 來自: The '60s
- 聯繫:
Top Ten Mac OS X Tips for Unix Geeks
悲兄說得是,不過用 sudo 就是為了安全,root 帳號實在太危險,尤其是當早上咖啡沒補充夠的時候... [img]images/smiles/icon_wink.gif[/img]
Top Ten Mac OS X Tips for Unix Geeks
<BLOCKQUOTE><font size="1" face="XYZ">quote:</font><HR>原始發信人 悲:
<STRONG>推斷:
在其他 Unix 系統,root account 已設立及啓動,使用者可不登出而用 su 來執行 root 權限的命令。
但在 Mac OS X 中,安裝時未有啓動 root account 。作者意在提醒眾 Unix geeks 們此點。
再者,sudo 在每次輸入密碼後有五分鐘時限,逾時嗎?要再 sudo。
如 root account 已啓動,則 su 無限時。</STRONG><HR></BLOCKQUOTE>
It you are a unix geek, sudo is your friend.
<STRONG>推斷:
在其他 Unix 系統,root account 已設立及啓動,使用者可不登出而用 su 來執行 root 權限的命令。
但在 Mac OS X 中,安裝時未有啓動 root account 。作者意在提醒眾 Unix geeks 們此點。
再者,sudo 在每次輸入密碼後有五分鐘時限,逾時嗎?要再 sudo。
如 root account 已啓動,則 su 無限時。</STRONG><HR></BLOCKQUOTE>
It you are a unix geek, sudo is your friend.
Top Ten Mac OS X Tips for Unix Geeks
<BLOCKQUOTE><font size="1" face="XYZ">code:</font><HR><pre>
on considering (Unix geek)
# type more
if sudo, then
input password
if time > 5 minutes
retype "sudo" preceding each command & retype password
else
retype "sudo" preceeding each command
endif
# type less
else if su, then
input password
# you're in a subshell as superuser, commands already have the root privilege # no more retype "sudo" preceeding each command
# no more retype password
endif
end considering
</pre><HR></BLOCKQUOTE>
Guess these Unix geeks like to type more or less?
Meanwhile, the book "Unix Power Tools", ISBN 1-56592-260-3, O'reilly only mentions the command su.
on considering (Unix geek)
# type more
if sudo, then
input password
if time > 5 minutes
retype "sudo" preceding each command & retype password
else
retype "sudo" preceeding each command
endif
# type less
else if su, then
input password
# you're in a subshell as superuser, commands already have the root privilege # no more retype "sudo" preceeding each command
# no more retype password
endif
end considering
</pre><HR></BLOCKQUOTE>
Guess these Unix geeks like to type more or less?
Meanwhile, the book "Unix Power Tools", ISBN 1-56592-260-3, O'reilly only mentions the command su.