I'm currently replicating the setup of a CentOS box an am running into a strange error while trying to mount a samba share that resides on a NAS. The error I'm getting is:
mount error 127 = Key has expired
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
The settings are identical to the old machine, the password is definitely correct as well. I have googled the issue of course, and looked at every single page that references this issue (not that many) and have still not found an answer.
The older CentOS box is using version 3.0.28-0.el4.9 of Samba and the one I'm trying to setup now is 3.0.33-3.7.el5_3.1. I don't know if this has anything to do with it but it's certainly one of the only differences between the 2 setups.
When I try the mount command this appears in the syslog:
Sep 8 10:51:54 helvetica2 kernel: Status code returned 0xc0000072 NT_STATUS_ACCOUNT_DISABLED
Sep 8 10:51:54 helvetica2 kernel: CIFS VFS: Send error in SessSetup = -127
Sep 8 10:51:54 helvetica2 kernel: CIFS VFS: cifs_mount failed w/return code = -127
The account is very much not disabled as it works on the old box using the same credentials.
Has anyone else seen this problem?
I had the similar problem. The reason for it is that your password may have expired or need to change it You can solve it as follows:
Maybe you solved this....
Basically yoiu go to the computer you try to connect to, login and reissue the password for the account you use... you can re-use the same password if you want... you are then good for a certain number of days as per your system defaults if you didn't change anyting 8)
I've got same error with ubuntu 11.04/windows 7
After I tried to log in (on windows machine) as user, which credentials used in samba mount options,
windows said account password expired and prompted for new password.
I changed account password both at windows machine and in .credentials,
now my share mounts.
The same thing just happened to me. Check your login account and change the
Password expires
toNever
See below for my
net user
output.To set the account's
Password expires
field toNever
, run the following command.So, for example, for my account, I would run:
Command prompt output:
When you check the account again it should be changed to
Never
Are the date/time on your NAS and Linux machine synced?
the only three factor that I personnaly faced using CIFS on linux where (as said upper):
1°/-Kerberos ticket refresh error (umount your point, stop the kernel module, purge every cache).
2°/-Password issues due to some weird ciphering problems (quite impossible to solve quickly without deeper inspection of logs and network capture on both side).
3°/-Time setup on the linux side difer from the windows one for more than a second.
I do not said those upper points are the solution, but, it can help ;-)
See ya!
Maybe I'm pedant, but have you tried from another machine after you have got the error?
Are you really sure the account is not just expired now?
EDIT:
Does this post help?
EDIT2:
Does it works if you use smbfs instead of cifs ?
Got a similar problem just now, and solved by changing
to
I got this error today when I tried to remove a directory, it was because ...
Even thou
df -h
would not show this folder as a mounted path, it was actually mounted but remote server was disconnected (or refusing connection).I seen the path defined in
/etc/fstab
and I was able to remove the folder after unmounting the path withumount /my_path