Explorerwebmin
webmin 时间:2021-01-11 阅读:(
)
CopyrightIBMCorporation2012TrademarksLinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage1of13LinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsCanyoupoint-and-clickonLinuxAbsolutely!
TracyBostJune26,2012WorkingwithLinuxdoesn'tmeanyourworkisrestrictedtocommand-linetools.
True,mostexperiencedLinuxadministratorsusecommand-linetoolsforconvenienceandmoreefficientadministration.
However,theGNOMEprojectprovidessomeexcellenttoolsformanagingaLinuxserverusingagraphicaluserinterface(GUI).
UsingyourMicrosoftWindowsbackgroundexperience,youmightfindthatthesetoolsmakethetransitionlessdramatic.
ViewmorecontentinthisseriesOverviewOtherarticlesinthisseriesViewmorearticlesintheLinuxforWindowsystemsadministratorsseries.
Inthisarticle,learnabouttheseconceptswithLinuxonthedesktop:WorkingwithuserandgroupaccountsManagingfilesandfoldersWorkingwithservicesMonitoringthesystemReviewinglogfilesPrerequisitesTogetthemostfromthearticlesinthisseries,youshouldhaveknowledgeofmanaginguserandgroupaccounts,files,folders,andreviewinglogfilesinaWindowsserverenvironment.
AbasicunderstandingoflogginginandnavigatingaLinuxdesktopenvironmentsuchasLXDE,GNOME,orKDEisexpected.
Additionally,it'sbeneficialtohaveaworkingLinuxcomputertoexploretheconceptsandexamplesinthearticle.
developerWorksibm.
com/developerWorks/LinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage2of13WorkingwithuserandgroupaccountsWhenyouconsiderservermanagementfromadesktopenvironment,auserandgroupmanagementtoolisamusthave.
ForthelatestreleaseofGNOME3.
2,thattoolislocatedintheGNOMEControlCenter.
TheGNOMEControlCenterisacentrallocationtomanagevariousaspectsofyourLinuxcomputer—notunliketheWindowsControlPanel.
StillwidelyusedtodayistheGNOMESystemTools(GST).
GSTprovidesusefultoolsforLinuxadministrators,includingatooltomanageuserandgroupaccounts.
SomepopularLinuxdistributionsprovidethesystem-users-configtoolasthedefaultusermanager.
So,nomatteryourLinuxdistribution,youshouldhaveaccesstomanagelocaluseraccountsoutofthebox,usuallyundertheusersandgroupslabel.
LinuxdistributionforthisarticleThedistributionusedforthisarticleisUbuntu10.
0.
4withthedefaultGNOMEdesktopandtheme.
DependinguponyourLinuxdistribution,thescreensanddefaultlocationsofthevarioustoolsdescribedinthisarticlecandifferslightly.
Checkyourdistribution'sdocumentationformorespecifics.
Linuxhasnoregistry.
SotheGUItoolsyouusearejustfront-endtoolstowritedatatoafileonthefilesystem.
Forthetaskofmanagingusersandgroups,youmanagetheunderlying/etc/passwdand/etc/groupfileswiththosetools.
The/etc/passwdfilemaintainsuseraccountinformation,whilethe/etc/groupfilestoresgroupaccountinformation.
Userpasswordsareencryptedinthe/etc/shadowfile,whilegrouppasswordsarestoredinthe/etc/gshadowfile.
TheGNOMEuserandgroupmanagementtoolprovidesastraightforwardinterfaceforaccountmanagement,showninFigure1.
Figure1.
CreatingauserProvidedyouhavetheprivileges,youcancreateandedituserandgroupaccounts.
Inaddition,youcanmanagedetailedaccountsettingssuchaslocationofthehomedirectory,userID,defaultibm.
com/developerWorks/developerWorksLinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage3of13loginshell,passwordresets,andgroupmembershipassignment.
Standarduserstypicallyhaveaccesstothetoolforpasswordmanagement.
Tocreateanewgroup,clickontheGroupstabandenterthegroupname.
AsshowninFigure2,afteryoucreateagroupyoucanthenmanagethemembershipsimplybyselectingorclearingthecheckboxesnexttousers'names.
Figure2.
CreatingagroupManagingfilesandfoldersInWindows,WindowsExploreristhetoolofchoiceformanytonavigatethefilesystem.
TheGNOMEprojecthasNautilus.
Nautilusisafilemanagerwithastrongdevelopmentteamandwideuserbase.
Ithasbeenindevelopmentsince2001.
IfyouusetheGNOMEdesktop,chancesareNautilusisalreadyinstalled.
IfyouarenotusingGNOME,youcanstilldownloadandinstallNautilus,socheckyourdistribution'sdocumentation.
Oneoftheprimarytasksyouperformwithafilemanagerisnavigatingthefilesystem.
WithNautilus,youcanevenswitchittobrowsermode,whichgivesyoumoreofaWindowsExplorerfeel.
Remember,inLinuxallfoldersaremountedassubfolderstothemainroot(/)directory.
SoifyouhaveremotedrivesmountedtoyourLinuxserver,suchasfromaWindowsoranotherLinuxcomputer,youcannavigatethefilesystemfromtheroot(/)directoryjustasyouwouldadirectorylocatedonthelocalfilesystem,asshowninFigure3.
developerWorksibm.
com/developerWorks/LinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage4of13Figure3.
NavigatingthefilesystemNavigatinginNautilusissimilartonavigatinginWindowsExplorer.
Clickonafoldertodrilldownintothesubfolders.
Right-clickonanyfolderorfiletoperformtheusualtasksyou'vecometoexpectwithafilemanager,suchascopy,rename,delete,open,compress,andmanagethepermissions.
Forviewingpreferences,youcansetoptionssuchasdetailedview,listedview,byname,andsoon,asshowninFigure4.
ibm.
com/developerWorks/developerWorksLinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage5of13Figure4.
ManagingfilepreferencesRead,write,andexecuteWhenyouright-clicktomanagethepermissionsofafolderorfile,youcanvieworchangethepermissions(ifyouraccounthasaccesstodoso).
InNautilus,ifafileorfolderisnotwithinthesecuritypermissionsforyouruseraccount,alockicondisplaysnexttoit.
WithLinux,eachfolderhasthreesetsofpermissions:userowner(u),groupowner(g),andother(o).
Withineachset,youcanassignthebasicpermissionsofread,write,orexecute.
Remembertoassignexecutepermissiontoshellscriptsoranyotherfilesusersneedtoexecute.
UnlikeWindows,inLinuxyouneedtoexplicitlygrantthefileexecutepermissiontothesetofusersthatneedtoperformthataction.
SeeFigure5foranexample.
developerWorksibm.
com/developerWorks/LinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage6of13Figure5.
SettingthepermissionsonafileTable1summarizesthebasicpermissionoptionsforatypicalLinuxfile.
IincludeoctalrepresentationbecausemanyLinux-relatedinstallationandsoftwaredocumentsreferencethepermissionsinoctalnotation.
Table1.
LinuxpermissionsPermissionOctalrepresentationReadonly4Writeonly2Executeonly1Readandwrite6Readandexecute5Fullpermission(read,write,andexecute)7WhenyoucreateanewfileusingNautilus,itusestheunderlyingLinuxconfigurationforumask,justlikewhenyoucreateafilefromthecommandline.
Theumaskdeterminesthedefaultpermissions.
MostLinuxdistributionsdefaulttoumask022.
Filesworkfromthe666octal.
Youjustneedtodosomesubtractiontounderstandhowumaskworks.
Ifyoucreateanewfileandtheumaskis022,thefile'sdefaultpermissionsare666-022,or644.
That'stosaytheuserownerhasreadandwritepermission,whilethegroupownerandotherhaveread-onlypermission.
ThesameconceptapplieswhenyoucreatefoldersusingNautilus.
Foldersworkfromthe777octal.
Withthesameumaskof022,ifyoucreateanewfolderitsdefaultpermissionsare777-022,ibm.
com/developerWorks/developerWorksLinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage7of13or755.
Thismeanstheuserownerhasfullpermission,andthegroupownerandotherhavereadandexecutepermission.
SharingAsinWindowsExplorer,youcaneasilyshareafolderusingNautilus.
Todoso,right-clickonthefolderyouwanttoshare,andselecttheSharingOptionsmenuitem.
Next,selecttheSharethisfoldercheckbox,asshowninFigure6.
Figure6.
SharingafolderAdditionally,youcanselecttheAllowotherstocreateanddeletefilesinthisfoldercheckboxifyouwantotherpeopletobeabletosavedocumentsinthefolder.
Ifyoudo,Nautiluswillaskforconfirmationfromyoutochangethefolderpermissions.
Ifyouhaveusersfromamixedenvironment,youcanselecttheGuestaccesscheckboxtoallowthoseusersaccesstothefolderwithouthavingalocalSambaaccountforauthentication.
UsethisoptionwithcarebecauseitcouldintroduceunnecessarysecurityvulnerabilitiestoyourLinuxserver.
IfyouwanttosharethefolderswithWindowsusersandauthenticatethem,youmustfirstsetupandconfigureSambaonyourLinuxserver.
WorkingwithservicesWiththeGSTinstalled,youcanmanageyourserverservicesandvariousotherdaemons(aLinuxwordforservices)withinthedesktopenvironment,similartousingWindowsservices.
ThistoolisusuallylabeledasStartupPreferences,andyoucanlaunchitfromtheSystemmenubyclickingPreferences.
Todate,theGSTdoesn'tcompletelymanageservicessuchasloginas,reload,restart,andsoon.
ItcangiveyouabasisforunderstandingwhatservicesareinstalledonyourLinuxcomputerandwhetheryouwanttorunparticularservicesuponsystemboot.
developerWorksibm.
com/developerWorks/LinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage8of13ThegreenandrediconsshownfortheservicesinFigure7indicatewhethertheservicesareenabledordisabledtorunuponsystemboot.
ThesearesimilartotheWindowsservicesautomaticandmanualoptions.
Aseparateiconrepresentswhethertheservicesarerunning.
Figure7.
ViewingarunningsendmailserviceinGSTMonitoringthesystemAlthoughnotidenticaltotheWindowsTaskManager,GNOMESystemMonitorprovidessimilarfunctionality.
Ifyouwantahigh-levelviewofyourLinuxcomputer'sresourceusage,GNOMESystemMonitorcanprovideaquicksnapshotofthesystem.
Thefourmaintabsformonitoringare:SystemProcessesResourcesFileSystemsTheSystemtabprovidesgeneraloperatingsystemandhardwareinformation(memoryandprocessor),muchliketheSystemdialoginWindowsthatdisplayswhenyouclickPropertiesfromtheWindowManagerdesktopicon.
TheProcessestab(Figure8),displaysallrunningprocesses(andtherearemany!
).
Youcansorttheprocessesbyname,centralprocessingunit(CPU)usage,andsoon.
ibm.
com/developerWorks/developerWorksLinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage9of13Figure8.
KillingaprocessTheResourcestab(Figure9)issimilartotheWindowsTaskManagerPerformancetab.
ItprovideshistoricalgraphingofCPU,memory/swap,andnetworkbandwidthusage.
Figure9.
MonitoringsystemresourcesdeveloperWorksibm.
com/developerWorks/LinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage10of13TheFileSystemstabshowsallmountedfilesystemsandgeneralinformationsuchasmountpointsforvariouspartitions,freespace,totalspace,andsoon.
ReviewinglogfilesTheGNOMESystemLogVieweriscomparabletotheEventViewerinWindows.
Underthehood,Linuxtypicallyusesthesyslog(orrsyslog)mechanismtogeneratelogfilesforvariousapplications,serverservices,andsystemmessages.
Thesefilesusuallyresideinthe/var/logdirectoryontheLinuxfilesystem.
SowhenyoufirstopentheGNOMESystemLogViewer,yourdistributionmightprovideawayforthetooltoautomaticallyreadthevariouslogsinthatdirectory.
Ifnot,orifyouchoosetoaddadditionallogfilesintheviewer,simplyclickFile>Add,andnavigatetothedesiredlogfile.
Table2listsanddescribessomeofthecommonLinuxlogsyoumightwanttomonitorwiththelogviewer.
Table2.
LinuxlogfilesLogfileDescriptionboot.
logHardwaredetection,mounting,andothersystemmessagesuponstartupofthemachinesecureSecurityrelatedmessagesmessagesKernelandothergeneralsystemmessageinformationhttpdWebserverlogsdirectorycontainingaccessanderrorlogsinseparatefilescupsDirectorycontaininglogmessagesrelatedtoprintingcronLogmessagesrelatedtoscheduledjobsXorg.
0.
logLogmessagesrelatedtotheX-Windowserverauth.
logAuthenticationsuccessandfailuressambaDirectoryofaccessanderrorlogsrelatingtotheSambaserverTable2isnotanexhaustivelistofthelogfilesyoucanreadwiththelogviewer.
Evenifyouhavecommercialsoftwareinstalledonyourserver,youcanusethelogviewertoviewthoselogsfilesaslongtheyareintheproperlogformat.
Exploreyour/var/logdirectoryandaddthelogfilesthatareappropriateforyourneeds.
OnethingabouttheGNOMESystemLogViewerthatisconsiderablydifferentfromtheWindowsEventVieweristhatmanyofthelogviewsaredependentuponthesettingsfortheunderlyingsystemconfiguration.
Forexample,thelogsfortheApachewebservercanbeconfiguredtorotatedaily.
Inthatcase,thehttpdaccess.
logonlydisplaysthecurrentday'slogmessages,whiletheolderlogfilesaremovedtoarchives.
Youcanstillconfigurethelogviewertoviewthearchivelogsbyaddingthoseaswell.
Whenyouviewyourlogs,youcaneasilyscrollthroughandreadthevariousmessages.
Sometimesthevolumeofmessagescanmakefindingtheinterestinglogs,suchaserrorsorfatalmessages,muchliketheproverbialsearchfortheneedleinthehaystack.
TheGNOMEibm.
com/developerWorks/developerWorksLinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage11of13SystemLogViewerprovidesafilterfeaturethatallowsyoutodefinevariousfiltersusingregularexpressionstohighlightorshowonlyspecifiedlogmessages.
Forexample,whiletroubleshootinganemailissueforaparticularuser,youmightwanttofilteranddisplayonlymessagesthatcontainthatuser'semailaddress,asshowninFigure10.
Figure10.
DisplayingonlymessagesbaseduponafilterAnmoretypicalexamplefordailyuseistocreatefilterstohighlighterrormessagesinredwhileusinganothercolor,suchasorange,forwarningmessages.
Figure11demonstratesafilterconfigurationthatdisplaysonlyrootloginattempts.
Figure11.
HighlightinglogmessagesbaseduponafilterWithregularexpressions,youcanreallyuseyourimaginationastheneedarisestohighlightordisplayonlythemessagesyouneed.
developerWorksibm.
com/developerWorks/LinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage12of13ConclusionOtherarticlesinthisseriesViewmorearticlesintheLinuxforWindowsystemsadministratorsseries.
AlthoughLinuxisknownforitsabundantcommand-linetools,youdon'thavetouseitthatway.
Overthelastseveralyears,successfulprojectssuchasGNOMEhavemadetremendousstridesinprovidinggoodqualitydesktoptoolsforLinuxsystemadministration.
IfyouaremovingtoLinuxfromaWindowsenvironment,thesetoolscanprovideamorecomfortabletransitionwhileallowingyoutoeffectivelymanageyourLinuxservers.
ibm.
com/developerWorks/developerWorksLinuxforWindowssystemsadministrators:AdministerLinuxwithGNOMEdesktoptoolsPage13of13RelatedtopicsReadWindows-to-Linuxroadmap:Part3.
IntroductiontoWebmin(ChrisWalden,developerWorks,November2003)tolearnmoreaboutbrowser-basedadministrativetoolsforLinux.
TolearnmoreaboutLinuxlogging,checkoutWindows-to-Linuxroadmap:Part5.
Linuxlogging(ChrisWalden,developerWorks,November2003).
LearnmoreaboutthegeneralfeaturesoftheGSTandperformavarietyofadministrativechores.
ExploretheGNOMESystemLogViewer.
InthedeveloperWorksLinuxzone,findhundredsofhow-toarticlesandtutorials,aswellasdownloads,discussionforums,andawealthofotherresourcesforLinuxdevelopersandadministrators.
FollowdeveloperWorksonTwitter.
CopyrightIBMCorporation2012(www.
ibm.
com/legal/copytrade.
shtml)Trademarks(www.
ibm.
com/developerworks/ibm/trademarks/)
大硬盘服务器、存储服务器、Chia矿机。RackNerd,2019年末成立的商家,主要提供各类KVM VPS主机、独立服务器和站群服务器等。当前RackNerd正在促销旗下几款美国大硬盘服务器,位于洛杉矶multacom数据中心,亚洲优化线路,非常适合存储、数据备份等应用场景,双路e5-2640v2,64G内存,56G SSD系统盘,160T SAS数据盘,流量是每月200T,1Gbps带宽,配5...
spinservers是Majestic Hosting Solutions LLC旗下站点,主营国外服务器租用和Hybrid Dedicated等,数据中心在美国达拉斯和圣何塞机房。目前,商家针对圣何塞部分独立服务器进行促销优惠,使用优惠码后Dual Intel Xeon E5-2650L V3(24核48线程)+64GB内存服务器每月仅109美元起,提供10Gbps端口带宽,可以升级至1Gbp...
2022年春节假期陆续结束,根据惯例在春节之后各大云服务商会继续开始一年的促销活动。今年二月中旬会开启新春采购季的活动,我们已经看到腾讯云商家在春节期间已经有预告活动。当时已经看到有抢先优惠促销活动,目前我们企业和个人可以领取腾讯云代金券满减活动,以及企业用户可以领取域名优惠低至.COM域名1元。 直达链接 - 腾讯云新春采购活动抢先看活动时间:2022年1月20日至2022年2月15日我们可以在...
webmin为你推荐
me域名注册.me是什么域名独立ip主机独立IP主机和CDN主机的详细区别?免费com域名注册有没有永久免费的.com之类的域名vpsVPS是干嘛用的?me域名me域名好不好用?个人虚拟主机个人建网站用哪一种虚拟主机???php虚拟空间我已经有一套网站php代码和模板,并且有自己的虚拟空间和域名,怎么才能把我的代码加入到网站上.100m虚拟主机万网和新网虚拟主机有100M的吗100m虚拟主机一般100-200M虚拟主机一天最多支持多少人访问啊?apache虚拟主机linux apache虚拟主机有几种方式
虚拟主机软件 东莞虚拟主机 如何注册域名 bbr linode代购 私服服务器 vmsnap3 轻博客 账号泄露 服务器怎么绑定域名 网页背景图片 ca4249 免费个人空间申请 双线主机 阿里校园 世界测速 cdn加速是什么 如何注册阿里云邮箱 无限流量 移动服务器托管 更多