• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Rechtevergabe

Hi, hab mal ne Frage:
Hab meinen Linux-Rechner per Samba ins LAN gestellt.
Wie kann ich nun die Rechte so setzten, dass jeder im LAN auf meinen Linux-Rechner ohne username/passwort zugreifen kann?

Immer wenn ich auf meinen Linux-Rechner zugreifen will kommt ne Fehlermeldung, dass ich nicht die benötigten Rechte besitze.

Kennt jemand ein Rezept ;) ?
 
Leg auf dem Linux identische User + Passwort an und übernehme sie auch als Samba-User.
Für das "Wie?" ... ForenSuche nutzen ;)
 

framp

Moderator
Teammitglied
Mit der users.map kann man auch WINDOOF Namen (Hein Bloed) auf andere Linux/Samba Namen mappen (purzel).
 
@framp:
wo liegt denn die users.map? Auf Linux/Windows?Verzeichniss?

--- Edit
Warum wird mein Linux nicht in der Netzwerkumgebung von Windows angezeigt, obwohl mir "/etc/init.d/smb status" -> running anzeigt.
Erst wenn ich Samba-Server per yast2 aktiviere klappt's aber ich hab mit vorgenommen auf SuSe's Hilfe zu verzichten.

-danke
 

framp

Moderator
Teammitglied
karahead schrieb:
@framp:
wo liegt denn die users.map? Auf Linux/Windows?Verzeichniss?
Normalerweise im /etc/samba Verzeichnis. Um das zu aktivieren musst du noch eine zeile in smb.conf stellen.
Code:
username map = /etc/samba/users.map
Sieh doch mal in die Samba logs in /var/log/samba. Da steht i.d.R. recht hilfreiche Info drin.
 

framp

Moderator
Teammitglied
man smb.conf liefert
Code:
This option allows you to specify a file containing a mapping of
              usernames from the clients to the server. This can be  used  for
              several purposes. The most common is to map usernames that users
              use on DOS or Windows machines to those that the UNIX box  uses.
              The  other is to map multiple users to a single username so that
              they can more easily share files.

              The map file is parsed line by line. Each line should contain  a
              single  UNIX  username on the left then a '=' followed by a list
              of usernames on the right. The list of usernames  on  the  right
              may  contain  names  of  the form @group in which case they will
              match any UNIX username in that group. The special  client  name
              '*'  is  a  wildcard  and matches any name. Each line of the map
              file may be up to 1023 characters long.

              The file is processed on each line by taking the supplied  user‐
              name  and comparing it with each username on the right hand side
              of the '=' signs. If the supplied name matches any of the  names
              on  the right hand side then it is replaced with the name on the
              left. Processing then continues with the next line.
Beispiel:
Code:
karl=schmid "Karl Schmid"
heisst, der user kann im WIndows schmid oder "Karl Schmid" heissen und sein samba account heisst karl.
 
Oben