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
Fred Matthiesen
2025-Apr-04 08:57 UTC
[Samba] Berechtigung lokaler User auf Verzeichnis Samba-User gleichen Namens
Correctly guessed: have provided I am going to guess that this is a domain joined machine. Tried, doesn't work. Server: Samba 4.17 Debian 12 Client system: Windows 11 User: Fritz Joined and logged in to the domain. Samba directory/share can be seen in Windows Explorer. However, the user Fritz cannot access the Samba share ------ Originalnachricht ------ Von "Rowland Penny via samba" <samba at lists.samba.org> An samba at lists.samba.org Cc "Rowland Penny" <rpenny at samba.org> Datum 04.04.2025 10:11:41 Betreff Re: [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 >> Fred > >You 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 > > > >-- >To unsubscribe from this list go to the following URL and read the >instructions: https://lists.samba.org/mailman/options/samba