On Fri, Jan 04, 2002 at 03:27:43PM +0100, mmu@gauss-computer.de wrote:
ich habe ein Benutzerrechteproblem aus dem SUSE 7.3 prof. Pakte (V? sorry) :
2.) Wenn ich nun die Option force group einstelle, so hat nun jedermann den Zugriff auf den Share. Nun das ist auch nicht so geplant, jedoch wird jetzt die Gruppe "eho" an neue Dateien vergeben.
Gibt es eine Möglichkeit, wie man die Gruppe ,in diesem Fall auf "eho", nur für die gültige Erstellung einer Datei/Verzeichnis einstellen kann ? Sprich nur für "chef" und nicht für "user1" zugänglich und dennoch in der richtigen Gruppe erstellt.....
#### man smb.conf(5) #### force group (S) This specifies a UNIX group name that will be assigned as the default primary group for all users connecting to this service. This is useful for sharing files by ensuring that all access to files on service will use the named group for their per missions checking. Thus, by assigning permissions for this group to the files and directories within this service the Samba administrator can restrict or allow sharing of these files. In Samba 2.0.5 and above this parameter has extended functionality in the following way. If the group name listed here has a '+' character prepended to it then the current user accessing the share only has the primary group default assigned to this group if they are already assigned as a member of that group. This allows an administrator to decide that only users who are already in a par ticular group will create files with group owner ship set to that group. This gives a finer granu larity of ownership assignment. For example, the setting force group = +sys means that only users who are already in group sys will have their default primary group assigned to sys when access ing this Samba share. All other users will retain their ordinary primary group. #### lies den zweiten Absatz mal, ich glaube das ist die gesuchte Funktion. On Fri, Jan 04, 2002 at 04:42:51PM +0100, Peter Woelfel wrote:
On Fri, 4 Jan 2002 mmu@gauss-computer.de wrote:
setzte das Verz. auf 770 und die die Gruppe auf "eho". Anschliessend setzt Du das s-Bit (setgid) fuer die Gruppe: chmod g+s /verz
Das solltest du aber auch machen, weil das an Unterverzeichnisse vererbt wird, die sonst moeglicherweise die Gruppe users erhalten wuerden. Peter