snip of /etc/auto.cifs (edited for security)
tpolzin -fstype=cifs,rw,noperm,user=********\tpolzin,pass=***,sec=ntlmv2 ://**********************************
Snip of /var/log/messages after trying to cd to /cifs/tpolzin
Jan 29 13:57:12 voyager kernel: [22565.810964] Status code returned 0xc000000d NT_STATUS_INVALID_PARAMETER Jan 29 13:57:12 voyager kernel: [22565.810979] CIFS VFS: Send error in SessSetup = -22 Jan 29 13:57:12 voyager kernel: [22565.811182] CIFS VFS: cifs_mount failed w/return code = -22
If I remove the sec=netlmv2 I get complaints and the error code is a -13
Jan 29 13:59:30 voyager kernel: [22704.014185] CIFS VFS: default security mechanism requested. The default security mechanism will be upgraded from ntlm to ntlmv2 in kernel release 3.3 Jan 29 13:59:30 voyager kernel: [22704.118135] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE Jan 29 13:59:30 voyager kernel: [22704.118151] CIFS VFS: Send error in SessSetup = -13 Jan 29 13:59:30 voyager kernel: [22704.118387] CIFS VFS: cifs_mount failed w/return code = -13
In either case, the cd command itself returns no such file or directory. Also interestingly enough root can mount this directory without an issue with the correct credentials.
Something is missing in autofs I believe.
On 01/29/2013 12:41 PM, JOYCE POLZIN wrote:
In either case, the cd command itself returns no such file or directory. Also interestingly enough root can mount this directory without an issue with the correct credentials.
Just to be clear, is root mounting this directory (as you write here) or using cd to get to that directory as you describe at the top? It's not clear to me which of the two you mean and it does make a difference because you can't cd to a directory in a partition that's not mounted. (Assuming the mount point exists, of course, you can cd to that, but under normal circumstances it will be empty.)
----- Original Message ----- On 01/29/2013 12:41 PM, JOYCE POLZIN wrote:
In either case, the cd command itself returns no such file or directory. Also interestingly enough root can mount this directory without an issue with the correct credentials.
Just to be clear, is root mounting this directory (as you write here) or using cd to get to that directory as you describe at the top? It's not clear to me which of the two you mean and it does make a difference because you can't cd to a directory in a partition that's not mounted. (Assuming the mount point exists, of course, you can cd to that, but under normal circumstances it will be empty.)
Root can manually mount the directory ie mount -t cifs -o user=xxx,password=yyy [ UNC] [TARGET]
A mortal user cannot cd, nor can root same results in /var/log/messages depending upon value of sec in /etc/auto.cifs. Yes, auto.cifs is mentioned in auto.master
/cifs /etc/auto.cifs -timeout=30
On 01/29/2013 12:59 PM, JOYCE POLZIN wrote:
Root can manually mount the directory ie mount -t cifs -o user=xxx,password=yyy [ UNC] [TARGET]
A mortal user cannot cd, nor can root same results in /var/log/messages depending upon value of sec in /etc/auto.cifs. Yes, auto.cifs is mentioned in auto.master
I'm not quite clear on one thing: if what you've written is correct, a regular user can't cd to that directory even after root mounts it. Is that correct? If so, what are the permissions on it when it's mounted?
----- Original Message ----- On 01/29/2013 12:59 PM, JOYCE POLZIN wrote:
Root can manually mount the directory ie mount -t cifs -o user=xxx,password=yyy [ UNC] [TARGET]
A mortal user cannot cd, nor can root same results in /var/log/messages depending upon value of sec in /etc/auto.cifs. Yes, auto.cifs is mentioned in auto.master
I'm not quite clear on one thing: if what you've written is correct, a regular user can't cd to that directory even after root mounts it. Is that correct? If so, what are the permissions on it when it's mounted?
If root were to mount it with the mount command it's fine root nor a mortal user can mount via cd command expecting autofs to make the mount.
On 01/29/2013 01:37 PM, JOYCE POLZIN wrote:
If root were to mount it with the mount command it's fine root nor a mortal user can mount via cd command expecting autofs to make the mount.
OK, thanx. Not being familiar with autofs, I didn't realize what you were expecting. So the issue isn't being unable to mount or use the partition, it's not having the system mount it for you if and when you need it.
On Tue, 2013-01-29 at 13:49 -0800, Joe Zeff wrote:
On 01/29/2013 01:37 PM, JOYCE POLZIN wrote:
If root were to mount it with the mount command it's fine root nor a mortal user can mount via cd command expecting autofs to make the mount.
OK, thanx. Not being familiar with autofs, I didn't realize what you were expecting. So the issue isn't being unable to mount or use the partition, it's not having the system mount it for you if and when you need it.
DING DING DING folks we have a winner!
On 01/29/2013 04:41 PM, Terry Polzin wrote:
DING DING DING folks we have a winner!
Great! One thing I learned doing tech support: it's hard to solve things like this until you know just what's going wrong. That's why I often ask questions like this because I'm not sure just what the central issue is and I want to make sure we're all on the same page. Glad I could be of service.