Fred Matthiesen
2025-Apr-04 08:03 UTC
[Samba] Berechtigung lokaler User auf Verzeichnis Samba-User gleichen Namens
Hallo, ich m?chte folgendes Problem l?sen: ich habe auf dem Samba4-Server jeweils einen einen Samba-User Fritz und einen lokalen Linux-User Fritz. Beide haben nat?rlich eine verschiedene Id. M?chte der User Fritz mit "cd /sambafreigabe/fritz" auf das Verzeichnis des Samba-User Fritz zugreifen ist das durch die unterschiedliche User-ID zum scheitern verurteilt. Physisch gesehen handelt es sich ja aber um die selbe Person vor dem Display. Meine Frage: wie kann ich den Linux-User erlauben auf die Samba-Freigabe zu zugreifen? Viele Gr??e Fred Hello all, I want to solve the following problem: I have a Samba user Fritz and a local Linux user Fritz on the Samba4 server. Both, of course, have a different Id. If the user Fritz wants to access the directory of the samba user Fritz with "cd /sambafreigabe/fritz" this is doomed to failure due to the different user ID. Physically, however, it is the same person in front of the display. My question: how can I allow the Linux user to access the Samba share? Regards Fred
Rowland Penny
2025-Apr-04 08:11 UTC
[Samba] Berechtigung lokaler User auf Verzeichnis Samba-User gleichen Namens
On Fri, 04 Apr 2025 08:03:47 +0000 Fred Matthiesen via samba <samba at lists.samba.org> wrote:> Hello all, > I want to solve the following problem: > I have a Samba user Fritz and a local Linux user Fritz on the Samba4 > server. > Both, of course, have a different Id. > If the user Fritz wants to access the directory of the samba user > Fritz with "cd /sambafreigabe/fritz" > this is doomed to failure due to the different user ID. > Physically, however, it is the same person in front of the display. > My question: how can I allow the Linux user to access the Samba share? > Regards > FredYou haven't really provided a lot of information, but from what you have provided I am going to guess that this is a domain joined machine. If that is the case, delete the local user 'Fritz', this will then allow Samba to make the AD user 'Fritz' into a local Unix user 'Fritz', or to put it another way, you should not have users with same username in /etc/passwd and AD, even if they are totally different users. Rowland