Search Options
close
Search the following clips:
All Clips
news
science
politics
food
economy
art
technology
health
internet
religion
psychology
Sign Up
Install
Learn More
Login
永久掛載smbfs/cifs filesystem時 於/etc/fstab不顯示user info
hawkchou14
follow
0
9-9-2009 9:30 PM
111 views
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
New Years Eve Blue Moon & Partial Lunar Eclipse
Some Female Penguins Engage in Prostitution
Does Death Exist? New Theory Says 'No'
MOVE YOUR MONEY, A New Years's Resolution:
Faith in Free-Market Capitalism Is Being Rewarded
Welcome the New Year
No rise of atmospheric carbon dioxide in past 160 yrs..new research finds
Reuters: Best Photos of the Decade
Frontpage's Man of the Year: GLENN BECK
Nikola Tesla Page
visit the
Top Clips page
View the Top Clips from
September 9, 2009
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/21ad0579-7e14-479b-a90e-149e21bbbcb6/FE82DCDC-1D34-40B7-8864-C69FF61C045A/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://go-linux.blogspot.com/2008/09/smbfscifs-filesystem-etcfstabuser-info.html" href="http://go-linux.blogspot.com/2008/09/smbfscifs-filesystem-etcfstabuser-info.html" style="font-size: 11px;">go-linux.blogspot.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://go-linux.blogspot.com/2008/09/smbfscifs-filesystem-etcfstabuser-info.html"><H3 class="post-title entry-title"><A href="http://go-linux.blogspot.com/2008/09/smbfscifs-filesystem-etcfstabuser-info.html">永久掛載smbfs/cifs filesystem時 於/etc/fstab不顯示user info</A> </H3> <DIV class="post-header-line-1"></DIV> <DIV class="post-body entry-content"><DIV> 以前帽客在/etc/fstab mount smb/cifs的遠端FileServer時, 總是壞習慣的把username與password寫在/etc/fstab中, 不太好也不建議, 所以目前改用以下的方法將username與password存入到別的檔案, 而在/etc/fstab中則指定去讀這個檔案以取得user的相關info, 整個fstab的格式改變如下:</DIV><BR />-before:<BR /><DIV>//172.17.1.254/homes /mnt/smb cifs defaults,<SPAN>username=lawrence%redhat</SPAN></DIV><BR />-after:<BR /><DIV>//172.17.1.254/homes /mnt/smb cifs defaults,<SPAN>credentials=/root/creds</SPAN></DIV><BR />/root/creds 內容:<BR /><SPAN>username=lawrence</SPAN><BR /><DIV><SPAN>password=redhat</SPAN></DIV><BR />* /root/creds 權限建議設定為400 </DIV></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/FE82DCDC-1D34-40B7-8864-C69FF61C045A/blog/" title="blog or email this clip"><img src="http://content9.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK