samba设置如下,其中cdrom和usb两个文件夹在xp中始终只有浏览权限,请问要怎么设置才有读写权限!
=======================GlobalSettings=====================================
[global]
#workgroup=NT-Domain-NameorWorkgroup-Name,eg:MIDEARTH
;workgroup=WORKGROUP
#serverstringistheequivalentoftheNTDescriptionfield
serverstring=SambaServer
#Securitymode.DefinesinwhichmodeSambawilloperate.Possible
#valuesareshare,user,server,domainandads.Mostpeoplewillwant
#userlevelsecurity.SeetheSamba-HOWTO-Collectionfordetails.
security=User
#Thisoptionisimportantforsecurity.Itallowsyoutorestrict
#connectionstomachineswhichareonyourlocalnetwork.The
#followingexamplerestrictsaccesstotwoCclassnetworksand
#the"loopback"interface.Formoreexamplesofthesyntaxsee
#thesmb.confmanpage
;hostsallow=192.168.1.192.168.2.128.
#Ifyouwanttoautomaticallyloadyourprinterlistrather
#thansettingthemupindividuallythenyou''llneedthis
;loadprinters=yes
#youmaywishtooverridethelocationoftheprintcapfile
;printcapname=/etc/printcap
#onSystemVsystemsettingprintcapnametolpstatshouldallow
#youtoautomaticallyobtainaprinterlistfromtheSystemVspool
#system
;printcapname=lpstat
#Itshouldnotbenecessarytospecifytheprintsystemtypeunless
#itisnon-standard.Currentlysupportedprintsystemsinclude:
#bsd,cups,sysv,plp,lprng,aix,hpux,qnx
;printing=cups
#Thisoptiontellscupsthatthedatahasalreadybeenrasterized
cupsoptions=raw
#Uncommentthisifyouwantaguestaccount,youmustaddthisto/etc/passwd
#otherwisetheuser"nobody"isused
;guestaccount=pcguest
#thistellsSambatouseaseparatelogfileforeachmachine
#thatconnects
logfile=/var/log/samba/%m.log
#Putacappingonthesizeofthelogfiles(inKb).
maxlogsize=50
#Usepasswordserveroptiononlywithsecurity=server
#Theargumentlistmayinclude:
#passwordserver=My_PDC_Name[My_BDC_Name][My_Next_BDC_Name]
#ortoauto-locatethedomaincontroller/s
#passwordserver=*
;passwordserver=
#Usetherealmoptiononlywithsecurity=ads
#SpecifiestheActiveDirectoryrealmthehostispartof
;realm=MY_REALM
#Backendtostoreuserinformationin.Newinstallationsshould
#useeithertdbsamorldapsam.smbpasswdisavailableforbackwards
#compatibility.tdbsamrequiresnofurtherconfiguration.
;passdbbackend=tdbsam
#Usingthefollowinglineenablesyoutocustomiseyourconfiguration
#onapermachinebasis.The%mgetsreplacedwiththenetbiosname
#ofthemachinethatisconnecting.
#Note:Considercarefullythelocationintheconfigurationfileof
#thisline.Theincludedfileisreadatthatpoint.
;include=/usr/local/samba/lib/smb.conf.%m
#ConfigureSambatousemultipleinterfaces
#Ifyouhavemultiplenetworkinterfacesthenyoumustlistthem
#here.Seethemanpagefordetails.
;interfaces=192.168.12.2/24192.168.13.2/24
#BrowserControlOptions:
#setlocalmastertonoifyoudon''twantSambatobecomeamaster
#browseronyournetwork.Otherwisethenormalelectionrulesapply
;localmaster=yes
#OSLeveldeterminestheprecedenceofthisserverinmasterbrowser
#elections.Thedefaultvalueshouldbereasonable
;oslevel=33
#DomainMasterspecifiesSambatobetheDomainMasterBrowser.This
#allowsSambatocollatebrowselistsbetweensubnets.Don''tusethis
#ifyoualreadyhaveaWindowsNTdomaincontrollerdoingthisjob
;domainmaster=yes
#PreferredMastercausesSambatoforcealocalbrowserelectiononstartup
#andgivesitaslightlyhigherchanceofwinningtheelection
;preferredmaster=yes
#EnablethisifyouwantSambatobeadomainlogonserverfor
#Windows95workstations.
;domainlogons=yes
#ifyouenabledomainlogonsthenyoumaywantaper-machineor
#peruserlogonscript
#runaspecificlogonbatchfileperworkstation(machine)
;logonscript=%m.bat
#runaspecificlogonbatchfileperusername
;logonscript=%U.bat
#Wheretostorerovingprofiles(onlyforWin95andWinNT)
#%Lsubstitutesforthisserversnetbiosname,%Uisusername
#Youmustuncommentthe[Profiles]sharebelow
;logonpath=\\%L\Profiles\%U
#WindowsInternetNameServingSupportSection:
#WINSSupport-TellstheNMBDcomponentofSambatoenableit''sWINSServer
;winssupport=yes
#WINSServer-TellstheNMBDcomponentsofSambatobeaWINSClient
#Note:SambacanbeeitheraWINSServer,oraWINSClient,butNOTboth
;winsserver=w.x.y.z
#WINSProxy-TellsSambatoanswernameresolutionquerieson
#behalfofanonWINScapableclient,forthistoworktheremustbe
#atleastoneWINSServeronthenetwork.ThedefaultisNO.
;winsproxy=yes
#DNSProxy-tellsSambawhetherornottotrytoresolveNetBIOSnames
#viaDNSnslookups.ThedefaultisNO.
dnsproxy=no
#Thesescriptsareusedonadomaincontrollerorstand-alone
#machinetoaddordeletecorrespondingunixaccounts
;adduserscript=/usr/sbin/useradd%u
;addgroupscript=/usr/sbin/groupadd%g
;addmachinescript=/usr/sbin/adduser-n-gmachines-cMachine-d/dev/null-s/bin/false%u
;deleteuserscript=/usr/sbin/userdel%u
;deleteuserfromgroupscript=/usr/sbin/deluser%u%g
;deletegroupscript=/usr/sbin/groupdel%g
#============================ShareDefinitions==============================
;[homes]
;comment=HomeDirectories
;browseable=no
;writable=yes
#Un-commentthefollowingandcreatethenetlogondirectoryforDomainLogons
;[netlogon]
;comment=NetworkLogonService
;path=/usr/local/samba/lib/netlogon
;guestok=yes
;writable=yes
;sharemodes=no
#Un-commentthefollowingtoprovideaspecificrovingprofileshare
#thedefaultistousetheuser''shomedirectory
;[Profiles]
;path=/usr/local/samba/profiles
;browseable=yes
;guestok=yes
#NOTE:IfyouhaveaBSD-styleprintsystemthereisnoneedto
#specificallydefineeachindividualprinter
[printers]
comment=AllPrinters
path=/usr/spool/samba
;browseable=yes
#Setpublic=yestoallowuser''guestaccount''toprint
;guestok=no
writeable=yes
printable=yes
#Thisoneisusefulforpeopletosharefiles
;[tmp]
;comment=Temporaryfilespace
;path=/tmp
;readonly=no
;public=yes
#Apubliclyaccessibledirectory,butreadonly,exceptforpeoplein
#the"staff"group
;[public]
;comment=PublicStuff
;path=/home/samba
;public=yes
;writable=yes
;printable=no
;writelist=@staff
#Otherexamples.
#
#Aprivateprinter,usableonlybyfred.Spooldatawillbeplacedinfred''s
#homedirectory.Notethatfredmusthavewriteaccesstothespooldirectory,
#whereveritis.
;[fredsprn]
;comment=Fred''sPrinter
;validusers=fred
;path=/homes/fred
;printer=freds_printer
;public=no
;writable=no
;printable=yes
#Aprivatedirectory,usableonlybyfred.Notethatfredrequireswrite
#accesstothedirectory.
;[fredsdir]
;comment=Fred''sService
;path=/usr/somewhere/private
;validusers=fred
;public=no
;writable=yes
;printable=no
#aservicewhichhasadifferentdirectoryforeachmachinethatconnects
#thisallowsyoutotailorconfigurationstoincomingmachines.Youcould
#alsousethe%Uoptiontotailoritbyusername.
#The%mgetsreplacedwiththemachinenamethatisconnecting.
;[pchome]
;comment=PCDirectories
;path=/usr/pc/%m
;public=no
;writable=yes
#Apubliclyaccessibledirectory,read/writetoallusers.Notethatallfiles
#createdinthedirectorybyuserswillbeownedbythedefaultuser,so
#anyuserwithaccesscandeleteanyotheruser''sfiles.Obviouslythis
#directorymustbewritablebythedefaultuser.Anotherusercouldofcourse
#bespecified,inwhichcaseallfileswouldbeownedbythatuserinstead.
;[public]
;path=/usr/somewhere/else/public
;public=yes
;onlyguest=yes
;writable=yes
;printable=no
#Thefollowingtwoentriesdemonstratehowtoshareadirectorysothattwo
#userscanplacefilestherethatwillbeownedbythespecificusers.Inthis
#setup,thedirectoryshouldbewritablebybothusersandshouldhavethe
#stickybitsetonittopreventabuse.Obviouslythiscouldbeextendedto
#asmanyusersasrequired.
;[myshare]
;comment=Mary''sandFred''sstuff
;path=/usr/somewhere/shared
;validusers=maryfred
;public=no
;writable=yes
;printable=no
;createmask=0765
#cdrom
[cdrom]
comment=cdrom
path=/mnt/cdrom
writeable=yes
public=yes
[usb]
comment=usb
path=/mnt/usb
writeable=yes
#browseable=yes
public=yes
Linux与Xp共享问题Linux与Xp共享问题Linux与Xp共享问题Linux与Xp共享问题Linux与Xp共享问题Linux与Xp共享问题Linux与Xp共享问题Linux与Xp共享问题Linux与Xp共享问题Linux与Xp共享问题
阅读(356) | 评论(0) | 转发(0) |