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/)

iON Cloud七月促销适合稳定不折腾的用户,云服务器新购半年付8.5折,洛杉矶/圣何塞CN2 GT线路,可选Windows系统

iON Cloud怎么样?iON Cloud今天发布了7月份优惠,使用优惠码:VC4VF8RHFL,新购指定型号VPS半年付或以上可享八五折!iON的云服务器包括美国洛杉矶、美国圣何塞(包含了优化线路、CN2 GIA线路)、新加坡(CN2 GIA线路、PCCW线路、移动CMI线路)这几个机房或者线路可供选择,有Linux和Windows系统之分,整体来说针对中国的优化是非常明显的,机器稳定可靠,比...

hostkey荷兰/俄罗斯机房,GPU服务器

hostkey应该不用说大家都是比较熟悉的荷兰服务器品牌商家,主打荷兰、俄罗斯机房的独立服务器,包括常规服务器、AMD和Intel I9高频服务器、GPU服务器、高防服务器;当然,美国服务器也有,在纽约机房!官方网站:https://hostkey.com/gpu-dedicated-servers/比特币、信用卡、PayPal、支付宝、webmoney都可以付款!CPU类型AMD Ryzen9 ...

spinservers:圣何塞10Gbps带宽服务器月付$109起,可升级1Gbps无限流量

spinservers是Majestic Hosting Solutions LLC旗下站点,主营国外服务器租用和Hybrid Dedicated等,数据中心在美国达拉斯和圣何塞机房。目前,商家针对圣何塞部分独立服务器进行促销优惠,使用优惠码后Dual Intel Xeon E5-2650L V3(24核48线程)+64GB内存服务器每月仅109美元起,提供10Gbps端口带宽,可以升级至1Gbp...

webmin为你推荐
php虚拟主机免费的国内的php虚拟主机有吗vps虚拟主机虚拟主机和VPS的主要区别有哪些?主要是哪些参数不一样?香港虚拟主机香港虚拟主机多少钱一年呢?安徽虚拟主机华夏网络科技有限公司的介绍买域名购买域名去哪个平台比较有优势老域名求问老域名好吗老域名老域名对网站排名有什么好处动态域名解析怎么做动态域名解析啊,希望高手指点百度域名百度网址是啥?http://后面是啥,是不是how123? 请解答域名系统域名解析系统有什么用
flashfxp怎么用 linode日本 秒杀预告 双线主机 刀片式服务器 中国电信测网速 nerds 南通服务器 华为云盘 免费蓝钻 可外链的相册 江苏徐州移动 新疆服务器 贵州电信 htaccess 建站论坛 神棍节 戴尔主机 衡天主机 web服务器搭建软件 更多