Samba on 22.04

Jerry Geis jerry.geis at gmail.com
Tue Dec 12 12:55:39 UTC 2023


On Tue, Dec 12, 2023 at 4:42 AM Karl Auer <kauer at biplane.com.au> wrote:

> On Tue, 2023-12-12 at 13:00 +1100, Karl Auer wrote:
> > mount: /mnt/other: cannot mount //192.168.X.X/my.user read-only.
>
> Further to this: Look at the logs on the server, usually under
> /var/log/samba. If there is nothing in the logs, turn the log level up
> until there is (e.g. "log level = 4" in the "[global]" section). You'll
> want to turn it back down for daily use once you've figured out this
> issue.
>
> Regards, K.
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Karl Auer (kauer at biplane.com.au)
> http://www.biplane.com.au/kauer
>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


Ok - I added "log level = 4" and restarted.

The error I see is this:
Authentication for user [my.user] -> [my.user] FAILED with error
NT_STATUS_NO_SUCH_USER, authoritative=1

doing ls -l /home
my.user is there

doing grep my.user /etc/passwd - my.user is there

What now?
Below is the smb.conf file using grep to remove all the coments so
its smaller.

Jerry

cat  smb.conf | grep -v "#"


[global]



   workgroup = WORKGROUP

   server string = %h server (Samba, Ubuntu)


;   interfaces = 127.0.0.0/8 eth0

;   bind interfaces only = yes




   log file = /var/log/samba/log.%m

   max log size = 1000

   logging = file

   panic action = /usr/share/samba/panic-action %d



   server role = standalone server

   obey pam restrictions = yes

   unix password sync = yes

   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

   pam password change = yes

   map to guest = bad user



;   logon path = \\%N\profiles\%U

;   logon drive = H:

;   logon script = logon.cmd

; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos
"" %u

; add machine script  = /usr/sbin/useradd -g machines -c "%u machine
account" -d /var/lib/samba -s /bin/false %u

; add group script = /usr/sbin/addgroup --force-badname %g


;   include = /home/samba/etc/smb.conf.%m

;   idmap config * :              backend = tdb
;   idmap config * :              range   = 3000-7999
;   idmap config YOURDOMAINHERE : backend = tdb
;   idmap config YOURDOMAINHERE : range   = 100000-999999
;   template shell = /bin/bash



;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes

;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

;   write list = root, @lpadmin

; Restart "systemctl restart smbd"
; Restart "systemctl restart nmbd"

[homes]
   comment = Directories for users
   browseable = no
   writable = yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20231212/a0e75e7b/attachment.html>


More information about the ubuntu-users mailing list