TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: DENNIS LEE BIEBER
date: 2019-07-24 11:39:00
subject: Re: Can`t access share wi

On Wed, 24 Jul 2019 14:25:58 +0200, Fokke Nauta 
declaimed the following:

>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.

 You have the same rights as you used for editing... You just have to
use the sudo command on the mkdir invocations, and likely have to do it for
each layer of the directory tree...

md_admin@microdiversity:~$ uname -a
Linux microdiversity 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019
armv7l GNU/Linux
md_admin@microdiversity:~$ date
Wed Jul 24 11:32:23 EDT 2019
md_admin@microdiversity:~$ ls /usr
bin  games  include  lib  local  man  sbin  share  src
md_admin@microdiversity:~$ ls /usr/local/
bin  etc  games  include  lib  man  sbin  share  src
md_admin@microdiversity:~$ mkdir /usr/local/samba/private
mkdir: cannot create directory ‘/usr/local/samba/private’: No such file or
directory

 ^^^ attempt to create all parts at once from user account

md_admin@microdiversity:~$ mkdir /usr/local/samba
mkdir: cannot create directory ‘/usr/local/samba’: Permission denied

 ^^^ attempt to create one layer at a time from user account

md_admin@microdiversity:~$ sudo mkdir /usr/local/samba/private
[sudo] password for md_admin:
mkdir: cannot create directory ‘/usr/local/samba/private’: No such file or
directory

 ^^^ attempt to create all parts at once from super-user

md_admin@microdiversity:~$ sudo mkdir /usr/local/samba
md_admin@microdiversity:~$ sudo mkdir /usr/local/samba/private
md_admin@microdiversity:~$ ls /usr/local/
bin  etc  games  include  lib  man  samba  sbin  share  src
md_admin@microdiversity:~$ ls /usr/local/samba
private

 ^^^ created each layer piecemeal using super-user





--
 Wulfraed                 Dennis Lee Bieber         AF6VN
 wlfraed@ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/

--- 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™.