Ga naar inhoud

Instelling samba


anoniem

Aanbevolen berichten

De installatie van Linux als fileserver is gelukt.(Redhat 7.2) Samba heb ik ingeregeld met Webmin (zie C!T okt. 2002 blz 47) Ik kan op de windows machines de fat-drives op de linux machines zien en de bestanden ook openen maar ik kan niet schrijven naar de fat-drives (of bestanden wissen) De shares zijn allemaal ingesteld op 'read/write voor everyone' Wat doe ik fout
Link naar reactie
Dit is de smb.conf # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options (perhaps too # many!) most of which are not shown in this example # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentry and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command "testparm" # to check that you have not made any basic syntactic errors. # #======================= Global Settings ===================================== [global] path = /windowsC smb passwd file = /etc/samba/smbpasswd printing = lprng dns proxy = no security = share encrypt passwords = yes workgroup = JOHAN server string = Samba Server socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 netbios name = Athlon_Linux log file = /var/log/samba/%m.log load printers = yes wins support = true printcap name = /etc/printcap max log size = 0 [homes] path = /home/johan comment = Home Directories writeable = yes create mode = 0664 directory mode = 0775 public = yes [printers] comment = All Printers path = /var/spool/samba browseable = no # Set public = yes to allow user 'guest account' to print guest ok = no writable = no printable = yes # This one is useful for people to share files ;[tmp] ; comment = Temporary file space ; path = /tmp ; read only = no ; public = yes # A publicly accessible directory, but read only, except for people in # the "staff" group ;[public] ; comment = Public Stuff ; path = /home/samba ; public = yes ; writable = yes ; printable = no ; write list = @staff # Other examples. # # A private printer, usable only by fred. Spool data will be placed in fred's # home directory. Note that fred must have write access to the spool directory, # wherever it is. ;[fredsprn] ; comment = Fred's Printer ; valid users = fred ; path = /home/fred ; printer = freds_printer ; public = no ; writable = no ; printable = yes # A private directory, usable only by fred. Note that fred requires write # access to the directory. ;[fredsdir] ; comment = Fred's Service ; path = /usr/somewhere/private ; valid users = fred ; public = no ; writable = yes ; printable = no # a service which has a different directory for each machine that connects # this allows you to tailor configurations to incoming machines. You could # also use the %U option to tailor it by user name. # The %m gets replaced with the machine name that is connecting. ;[pchome] ; comment = PC Directories ; path = /usr/local/pc/%m ; public = no ; writable = yes # A publicly accessible directory, read/write to all users. Note that all files # created in the directory by users will be owned by the default user, so # any user with access can delete any other user's files. Obviously this # directory must be writable by the default user. Another user could of course # be specified, in which case all files would be owned by that user instead. ;[public] ; path = /usr/somewhere/else/public ; public = yes ; only guest = yes ; writable = yes ; printable = no # The following two entries demonstrate how to share a directory so that two # users can place files there that will be owned by the specific users. In this # setup, the directory should be writable by both users and should have the # sticky bit set on it to prevent abuse. Obviously this could be extended to # as many users as required. ;[myshare] ; comment = Mary's and Fred's stuff ; path = /usr/somewhere/shared ; valid users = mary fred ; public = no ; writable = yes ; printable = no ; create mask = 0765 [User] path = /usr writeable = yes public = yes [Temp] path = /tmp writeable = yes public = yes [Johan] path = /home/johan writeable = yes public = yes [Fat C] path = /windowsC writeable = yes public = yes [Fat D] path = /windowsD writeable = yes public = yes [Fat E] path = /windowsE map archive = no writeable = yes public = yes [etc] path = /etc writeable = yes public = yes
Link naar reactie
[color=red:55f660df76] [global] workgroup = workgroup log file = /var/log/samba/log.%m max log size = 50 default = global netbios name = BSDServer socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 netbios aliases = Server load printers = yes dns proxy = no wins support = true share modes = yes interfaces = 192.168.10.1/24 encrypt passwords = yes hosts allow = 192.168.10. 127.0.0.1 [homes] comment = Je home dir browseable = no writeable = yes [www] comment = htdocs path = /htdocs of whatever valid users = @wheel (en dan moet je wel tot de groep behoren) public = yes writeable = yes printable = no create mask = 0765 [root] comment = tree path = / of whatever valid users = @wheel (en dan moet je wel tot de groep behoren) public = yes writeable = yes printable = no create mask = 0765 [/color:55f660df76] Neem dit eens over en pas aan waar aan te passen moet. Sux6
Link naar reactie

Om een reactie te plaatsen, moet je eerst inloggen

Gast
Reageer op dit topic

×   Geplakt als verrijkte tekst.   Herstel opmaak

  Er zijn maximaal 75 emoji toegestaan.

×   Je link werd automatisch ingevoegd.   Tonen als normale link

×   Je vorige inhoud werd hersteld.   Leeg de tekstverwerker

×   Je kunt afbeeldingen niet direct plakken. Upload of voeg afbeeldingen vanaf een URL in

  • Populaire leden

    Er is nog niemand die deze week reputatie heeft ontvangen.

  • Leden

    Geen leden om te tonen

×
×
  • Nieuwe aanmaken...