[03:58] <HeliNomad> Hey guys can I ask a support question?
[05:05] <tomreyn> !ask | HeliNomad
[05:07] <tomreyn> so yes, please do. and if you can't get a response after some time, ask in #ubuntu instead. after all, this channel stilll thinks the latest LTS release is 16.04.
[05:10] <HeliNomad> I'm getting an error with this code:  sudo mount -t cifs -o username=username //192.168.1.2/ShareVolume ~/ShareLoc/
[05:10] <HeliNomad> mount error(13): Permission denied
[05:10] <HeliNomad> Password isn't the issue.
[05:12] <HeliNomad> Share is hosted on a Mac
[05:13] <HeliNomad> Just trying to mount it...can't figure it out.
[07:03] <lordievader> Good morning
[07:03] <lordievader> HeliNomad: What do you see when you add the `-v` flag?
[08:09] <rbasak> teward: thanks!
[08:10] <rbasak> teward: please make sure you don't burn out on this though. I appreciate your work, but I just want to make sure you don't feel obliged to do it. The people who want the features can be expected to do most of the work :)
[14:27] <HeliNomad> lordievader This is what I get: user@skunky1:~$ sudo mount -t cifs -o username=user //10.10.1.81/LaCie ~/SharePoint/ -v
[14:27] <HeliNomad> Password for user@//10.10.1.81/LaCie:  **********
[14:27] <HeliNomad> mount.cifs kernel mount options: ip=10.10.1.81,unc=\\10.10.1.81\LaCie,user=user,pass=********
[14:27] <HeliNomad> mount error(13): Permission denied
[14:27] <HeliNomad> Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[14:29] <lordievader> Is your user allowed to access both the share and the sharepoint?
[14:30] <HeliNomad> Yes.  I am able to mount the share on my mac using smb://10.10.1.81 with the same credentials
[14:40] <HeliNomad> I found this article but not sure how to change my line to implement the "fix" they are talking about.  Seems that they are doing this in fstab and I just want the mount to done on demand, not on startup: https://ubuntuforums.org/showthread.php?t=2209987
[14:43] <sdeziel> HeliNomad: You'd use something like this: sudo mount -t cifs -o username=user,sec=ntlmssp,nounix //10.10.1.81/LaCie ~/SharePoint/ -v
[14:43] <sdeziel> HeliNomad: I'd try to leave out "nounix" first
[14:43] <HeliNomad> Oh I see needs a comma after user
[14:44] <HeliNomad> I was trying to append the sec= to the end
[14:44] <HeliNomad> sorry I'm new to linux
[14:45] <sdeziel> HeliNomad: sec=ntlmssp is reported to be the "new" default already so it likely won't help
[14:46] <HeliNomad> Yeah didn't change anything in the results
[14:46] <HeliNomad> Should I try adding the nounix?
[14:46] <sdeziel> sure
[14:46] <sdeziel> HeliNomad: there are many more values that sec= accepts, see "man mount.cifs"
[14:47] <HeliNomad> Yes I see that
[14:47] <HeliNomad> Let me run through those
[14:48] <sdeziel> HeliNomad: I'm not sure if "Permission denied" could be due to a version mismatch but this definitely changed no the linux side. If I were you, I'd try adding vers=1.0
[14:48] <sdeziel> HeliNomad: and if that doesn't work, I'd go with vers=2.1
[14:49] <HeliNomad> where do you add that
[14:49] <sdeziel> HeliNomad: sudo mount -t cifs -o username=user,vers=1.0 //10.10.1.81/LaCie ~/SharePoint/ -v
[14:50] <sdeziel> LaCie sounds like a potentially old'ish NAS which is why I'd try an old version
[14:50] <HeliNomad> and to add sec?  just:  sudo mount -t cifs -o username=user,vers=1.0,sec=ntlmssp //10.10.1.81/LaCie ~/SharePoint/ -v
[14:51] <sdeziel> HeliNomad: I would recommend to try the command I provided as is first
[14:52] <HeliNomad> That gives me a:  mount error(22): Invalid argument
[14:53] <sdeziel> HeliNomad: was that with or without the sec=ntlmssp?
[14:53] <HeliNomad> without
[14:54] <sdeziel> HeliNomad: hmm, what kernel version are you running? "uname -r" will tell you
[14:54] <HeliNomad> 4.15.0-88-generic
[14:55] <HeliNomad> Everything is up to date
[14:56] <sdeziel> OK good, could you share the output of "tail /var/log/kern.log"
[14:56] <HeliNomad> Mar  4 14:53:28 skunky1 kernel: [592441.451291] CIFS VFS: cifs_mount failed w/return code = -13
[14:56] <HeliNomad> Mar  4 14:53:46 skunky1 kernel: [592458.868524] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
[14:56] <HeliNomad> Mar  4 14:53:46 skunky1 kernel: [592458.868543] CIFS VFS: Send error in SessSetup = -13
[14:56] <HeliNomad> Mar  4 14:53:46 skunky1 kernel: [592458.868655] CIFS VFS: cifs_mount failed w/return code = -13
[14:56] <HeliNomad> Mar  4 14:54:17 skunky1 kernel: [592489.546557] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
[14:56] <HeliNomad> Mar  4 14:54:17 skunky1 kernel: [592489.546575] CIFS VFS: Send error in SessSetup = -13
[14:56] <HeliNomad> Mar  4 14:54:17 skunky1 kernel: [592489.546691] CIFS VFS: cifs_mount failed w/return code = -13
[14:56] <HeliNomad> Mar  4 14:54:30 skunky1 kernel: [592502.726243] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
[14:56] <HeliNomad> Mar  4 14:54:30 skunky1 kernel: [592502.726257] CIFS VFS: Send error in SessSetup = -13
[14:56] <HeliNomad> Mar  4 14:54:30 skunky1 kernel: [592502.726353] CIFS VFS: cifs_mount failed w/return code = -13
[14:58] <sdeziel> HeliNomad: thanks but please use a pastebin service next time for multiline outputs ;)
[14:58] <HeliNomad> Oops sorry
[14:59] <sdeziel> HeliNomad: are you 100% sure you have the password right? Have you tried typing it somewhere where you can visually inspect it to catch errors introduced by the wrong keyboard layout for example
[15:00] <HeliNomad> Yes 100%.  I am able to mount the drive in Mac OS using Connect to Server: smb://10.10.1.81 logging in with the same credentials and it works.
[15:00] <HeliNomad> I have a feeling it has to do with Mac OS Catalina's SMB file sharing protocol not jiving with CIFS in mount.cifs
[15:01] <sdeziel> HeliNomad: it's possible I'd try putting the username/password in a file as explained here https://thinkinginsoftware.blogspot.com/2011/09/cifs-vfs-cifsmount-failed-return-code.html
[15:02] <HeliNomad> Sure I can.  But just practically speaking what would be the difference.
[15:07] <sdeziel> in theory it would be identical, in practice it's worth trying. Worst case, you'll save keystrokes when mounting the share ;)
[15:08] <HeliNomad> So do I need to store the password file in /root/cifs/cifs_credentials.txt
[15:09] <sdeziel> no, a file in your home will do. Make sure to "chmod 0600" the file as it contains your creds
[15:10] <HeliNomad> chmod 0600 does what?
[15:10] <genii> Makes the file immutable
[15:10] <sdeziel> "chmod 0600 cifs_credentials.txt" would make sure the file is only read/writable by it's owner
[15:10] <HeliNomad> got it
[15:11] <HeliNomad> doing it now...i'll report back
[15:11] <sdeziel> to be pedantic, it's not immutable as that would be "chattr +i" ;)
[15:17] <HeliNomad> File created, new command is:  sudo mount -t cifs -o credentials=~/creds/cifs_credentials.txt //10.10.1.81/LaCie ~/SharePoint/
[15:17] <HeliNomad> Still getting:  mount error(13): Permission denied
[15:23] <sdeziel> HeliNomad: I've seen some suggesting to add this to your credentials file: domain=WORKGROUP
[15:24] <HeliNomad> sdeziel Yes I've tried all the arguments suggested in that article you shared
[15:24] <HeliNomad> All produce the same output
[15:24] <HeliNomad> For what it's worth, I just tried it with a windows share and it works
[15:24] <HeliNomad> Something about the Mac is causing the issues here
[15:25] <sdeziel> domain= was not in the blog post I provided though
[15:31] <sdeziel> HeliNomad: I'm sorry I couldn't help you. At this point I'm out of ideas and would iterate through various param vers=, nounix, etc until it starts working .... :/
[16:22] <HeliNomad> Thanks.  Yes it's a head scratcher.  If I find the fix I'll report back
[22:55] <teward> rbasak: burnout working on nginx and such?  Nope not happening heh.  This is a welcome addition to my regular tasks.  Theres a higher risk of burnout at my regular job than working with Ubuntu packages and tasks ;)
[22:56] <teward> Its why I am always willing to put effort in as volunteering right now - its things I can actually fix heh
[22:56] <teward> (In reply to the really ancient pings heh)
[22:56] <rbasak> teward: happy that you're volunteering. Thank you!
[22:56] <rbasak> I just wanted to make sure that you didn't feel obligated.