Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #241716
| From | David Christensen <dpchrist@holgerdanske.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Samba Won't Mount, Buster to Bullseye migration |
| Date | 2021-10-27 07:50 +0200 |
| Message-ID | <DcJYZ-5pO-5@gated-at.bofh.it> (permalink) |
| References | <DcITf-4My-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 10/26/21 9:11 PM, Charles Curley wrote: > I just re-installed my Samba server, formerly on Buster, now on > Bullseye. This has worked in the past, including Bullseye clients > mounting a share on a Buster server. I have one share defined, for my > user: > > [samba] > path = /crc/samba > valid users = charles > read only = no > > /etc/fstab has the following line (possibly wrapped in transit): > > # # SMB mount per > https://wiki.samba.org/index.php/Mounting_samba_shares_from_a_unix_client > and some experimenting. ,noauto //samba.localdomain/samba > /home/charles/samba cifs > x-systemd.automount,_netdev,rw,credentials=/etc/samba/charles.credentials,uid=charles,gid=charles,file_mode=0644 > 0 0 > > So when I try to mount, I get: > > root@hawk:~# mount /home/charles/samba/ && ll /home/charles/samba/ > mount error(13): Permission denied > Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel > log messages (dmesg) root@hawk:~# > > syslog shows: > > Oct 26 21:22:49 hawk kernel: [ 2901.229826] CIFS: Attempting to mount > //samba.localdomain/samba Oct 26 21:22:49 hawk kernel: [ 2901.242021] > CIFS: VFS: cifs_mount failed w/return code = -13 > > charles@hawk:~$ ll -d samba/ > drwxr-xr-x 2 charles charles 4096 Oct 26 12:56 samba// > charles@hawk:~$ > > root@hawk:/crc# ll -d samba/ > drwxr-xr-x 16 charles charles 4096 Oct 19 18:28 samba// > root@hawk:/crc# > > > Searching on that last line turned up nothing informative. The man page > for mount.cifs wasn't very informative. Getting Samba shares working can be very difficult. In recent years, the authentication mode has been my primary issue -- I had to lower it to a deprecated level to get shares to work. I have yet to find a rational process for debugging Samba server shares and client mounts. The following represents "RTFM, STFW, poke at it until it works, and then stop". I very much doubt that it is "correct". Here is the server: 2021-10-26 22:31:18 toor@samba ~ # freebsd-version ; uname -a 12.2-RELEASE-p10 FreeBSD samba.tracy.holgerdanske.com 12.2-RELEASE-p7 FreeBSD 12.2-RELEASE-p7 GENERIC amd64 2021-10-26 22:31:19 toor@samba ~ # pkg info 'samba*' samba413-4.13.8 2021-10-26 22:31:24 toor@samba ~ # egrep -A 9 '\[global\]' /usr/local/etc/smb4.conf [global] local master = Yes netbios name = SAMBA ntlm auth = ntlmv1-permitted passdb backend = tdbsam preferred master = Yes security = USER server string = Samba Server Version %v wins support = Yes workgroup = WORKGROUP 2021-10-26 22:31:31 toor@samba ~ # egrep -A 3 '\[dpchrist\]' /usr/local/etc/smb4.conf [dpchrist] path = /var/local/samba/dpchrist read only = No valid users = dpchrist Here is the client: 2021-10-26 22:39:01 root@tinkywinky ~ # cat /etc/debian_version ; uname -a 9.13 Linux tinkywinky 4.9.0-16-amd64 #1 SMP Debian 4.9.272-2 (2021-07-19) x86_64 GNU/Linux 2021-10-26 22:39:19 root@tinkywinky ~ # apt list --installed 2> /dev/null | egrep '^(smb|cifs)' cifs-utils/oldoldstable,now 2:6.7-1 amd64 [installed] smbclient/oldoldstable,now 2:4.5.16+dfsg-1+deb9u4 amd64 [installed] 2021-10-26 22:39:25 root@tinkywinky ~ # grep 'samba/dpchrist' /etc/fstab //samba/dpchrist /home/dpchrist/samba/dpchrist cifs noauto,vers=3.0,user,username=dpchrist 0 0 I mount the share manually: 2021-10-26 22:34:32 dpchrist@tinkywinky ~ $ mount samba/dpchrist Password for dpchrist@//samba/dpchrist: ******** Good luck. David
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Samba Won't Mount, Buster to Bullseye migration Charles Curley <charlescurley@charlescurley.com> - 2021-10-27 06:40 +0200
Re: Samba Won't Mount, Buster to Bullseye migration David Christensen <dpchrist@holgerdanske.com> - 2021-10-27 07:50 +0200
Re: Samba Won't Mount, Buster to Bullseye migration Keith Bainbridge <keithrbaugroups@gmail.com> - 2021-10-27 07:50 +0200
Re: Samba Won't Mount, Buster to Bullseye migration Charles Curley <charlescurley@charlescurley.com> - 2021-10-27 15:30 +0200
csiph-web