Samba Rechte

L

lebelflash

Grünschnabel
Hallo Linux Freunde,

hab eine Frage und zwar habe ich bei mir vier Rechner stehen.
Einen Linux Server und drei Windows2000 Rechner.
Nun habe ich auf dem Linux Rechner Samba installiert und drei Freigeben (Ordner) erstellt, jeweils eine Freigabe für einen Rechner.
Nun zu meiner eigentlichen Frage !!!
Was muss ich in der smb.conf schreiben damit jeder Windwos Rechner auf seine Freigabe zugreifen kann, aber nur auf seine Freigabe und nicht auf alle.
Momentan steht in der smb.conf nur das Verzeichnis z.b. /home/Rechner1, /home/Rechner2 .....

Danke im voraus

lebelflash
 
Hier verweise ich dich mal auf die Manpage von smb.conf. (Aufruf mit: man smb.conf)
Bitte am besten vorher immer die Manpages durchschauen oder bei Google suchen. Das geht meist schneller, als auf Antworten in einem Forum zu warten.

Hier der entsprechende Ausschnitt, den du brauchst:
Code:
    hosts allow (S)
           A synonym for this parameter is allow hosts.


           This parameter is a comma, space, or tab delimited set of  hosts 
           which are permitted to access a service.


           If  specified  in the [global] section then it will apply to all
           services, regardless of whether the  individual  service  has  a 
           different setting.


           You can specify the hosts by name or IP number. For example, you 
           could restrict access to only the hosts on a Class C subnet with 
           something like allow hosts = 150.203.5. . The full syntax of the 
           list is described in the man  page  hosts_access(5).  Note  that 
           this  man  page  may  not  be present on your system, so a brief 
           description will be given here also.


           Note that the localhost address 127.0.0.1 will always be allowed 
           access unless specifically denied by a hosts deny option.


           You  can also specify hosts by network/netmask pairs and by net- 
           group names if your system supports netgroups. The  EXCEPT  key-  
           word  can  also  be used to limit a wildcard list. The following 
           examples may provide some help:


           Example 1: allow all IPs in 150.203.*.*; except one


           hosts allow = 150.203. EXCEPT 150.203.6.66


           Example 2: allow hosts that match the given network/netmask


           hosts allow = 150.203.15.0/255.255.255.0


           Example 3: allow a couple of hosts


           hosts allow = lapland, arvidsjaur


           Example 4: allow only hosts in NIS netgroup "foonet",  but  deny 
           access from one particular host


           hosts allow = @foonet


           hosts deny = pirate


           Note that access still requires suitable user-level passwords.

           See  testparm(1) for a way of testing your host access to see if 
           it does what you expect.
 

Ähnliche Themen

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

Samba als Fileserver keine Berechtigung auf Unterordner

Zugriff auf Samba Fileserver Freigaben verweigert(Samba 4 Active Directory Domäne)

Keine Zugriff von Windows 10 auf Sambafreigaben

Per Samba falsche Angaben zum freien Speicherplatz übertragen

Zurück
Oben