TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: FOKKE NAUTA
from: THE NATURAL PHILOSOPHER
date: 2019-07-24 16:06:00
subject: Re: Can`t access share wi

On 24/07/2019 13:25, Fokke Nauta wrote:
> On 24/07/2019 12:37, The Natural Philosopher wrote:
>> On 24/07/2019 08:32, Fokke Nauta wrote:
>>> On 23/07/2019 22:52, Lew Pitcher wrote:
>>
>>>> For what it's worth, you can use the smb.conf(5) "username map" option
>>>> (see
>>>>
https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html#USERNAMEMAP)
>>>>
>>>> to map specific Linux usernames to specific Windows usernames. With
>>>> this,
>>>> you can have "Fokke Nauta" as your Windows username, and
>>>> "fokke_nauta" (or any
>>>> other acceptable Unix username) as your Linux username.
>>>>
>> 
>>
>>>
>>> Thanks.
>>> But I already have a Linux username: pi.
>>> I thought I should be able to use this account to log in.
>>
>> You should, but windows wont let you.
>>
>> What you need to do is map 'Fokke Nauta' in smb land to 'pi' in linux
>> land.
>>
>> i.e. in smb.conf under [global] add a line like
>>
>> [global]
>>      username map = /usr/local/samba/private/usermap.txt
>>
>>
>> and create that file (as root) and put in it...
>>
>>
>> pi = "Fokke Nauta"
>>
>
> OK.
> I thought I'll first create the text file.
> I used sudo nano /usr/local/samba/private/usermap.txt
> And inserted the text pi = "Fokke Nauta"
> When I tried to save it, it says Error: file or folder doesn't exist.
> When I looked, I found there was no folder called samba in /usr/local. I
> wasn't able to create it as I did not have the rights to do so.
> So I thought I'll do it differently: created a folder samba in /home/pi.
> Then: sudo nano /home/pi/samba/usermap.txt and inserted pi = "Fokke
> Nauta". Saved it.
> Then in smb.conf under [global]: username map = /home/pi/samba/usermap.txt
> Restarted samba
>  From my Win 10 pc I tried to log is as pi with the password: No way.
> Then logging in as Fokke Nauta with the password: No way.
>
> Tough job ...
>
make the password for 'pi' the same as the password for 'Fokke Nauta' on
windows.

>


--
The biggest threat to humanity comes from socialism, which has utterly
diverted our attention away from what really matters to our existential
survival, to indulging in navel gazing and faux moral investigations
into what the world ought to be, whilst we fail utterly to deal with
what it actually is.

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.