centos 5 machine plagued with 'mount error 13 = Permission denied'
I have a centos 5.10 machine (A) 64bit that is trying to mount a shared folder on another centos 5.9 machine (B) 32bit
The command I'm using on machine-A is: Code:
# mount -t cifs -o username=<my-user>,password=<my-password> //ip-machine-B/share /media/machine-B Quote:
Code:
SMB Tree Connect AndX Response, Error: STATUS_WRONG_PASSWORD I know the problem must be with machine-A but how do I fix this? |
Any characters in the password that might be interpreted by the shell as special? ('$' for example)
Can you try wrapping the username+password section of the command in single quotes? |
thanks for your response, there are no special characters in the password.
since my last post I rebooted machine-A, the mount command still doesn't work but this time I'm getting: Quote:
|
If you leave 'password=...' out of the arguments you should get prompted for it, could you give that a try?
|
yes thanks I tried that, it did prompt for the password but still get the same error:
Quote:
|
There's nothing mounted on /media/machine-B already is there?
|
no, this is the only mount being tried on machine-B from machine-A
|
Can you try adding 'sec=ntlmssp' to the mount options?
|
thankyou yes I'be tried both sec=ntlmssp and sec=ntlm but I still get the error:
Quote:
|
If you try a mount with verbose ('-v') it may give some more detail
Also have you tried specifying the domain? |
using the -v flag gives exactly the same output as above.
I'm a bit foggy regarding the domain. The share is on my lan so how would I do that? |
The RHEL system sharing the directory would be running samba, if you read https://access.redhat.com/documentat...nfiguring.html you should be able to determine the servers settings for authentication.
|
thankyou for that link. After reading some docs I installed samba-client.x86_64 and tried with:
Quote:
Quote:
I also tried Quote:
Quote:
one problem with the docs is they're all gui demo's, however my machines at both ends are console only. |
Anything interesting in the logs on the server side after a mount attempt? Could you please check that cifs module is present on the RHEL 5 client (lsmod | grep cifs)?
|
yes in /var/log/samba/log.<ip-machine-A> there were lots of lines like this:
Quote:
|
All times are GMT -5. The time now is 08:42 PM. |