When tried to mount windows7 shared folder the following error appeared
mount -t cifs //172.16.0.10/DATA /mnt/BACKUP/ -o username=administrator,password=asFg10;
mount error(127): Key has expired
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
ay 2 22:44:01 wrsync kernel: [16634.082493] Registering the dns_resolver key type
May 2 22:44:01 wrsync kernel: [16634.152314] Status code returned 0xc0000072 NT_STATUS_ACCOUNT_DISABLED
May 2 22:44:01 wrsync kernel: [16634.152320] CIFS VFS: Send error in SessSetup = -127
May 2 22:44:01 wrsync kernel: [16634.152802] CIFS VFS: cifs_mount failed w/return code = -127
May 2 22:44:42 wrsync kernel: [16675.379522] Status code returned 0xc0000072 NT_STATUS_ACCOUNT_DISABLED
May 2 22:44:42 wrsync kernel: [16675.379529] CIFS VFS: Send error in SessSetup = -127
May 2 22:44:42 wrsync kernel: [16675.380041] CIFS VFS: cifs_mount failed w/return code = -127
May 2 22:46:13 wrsync kernel: [16766.652125] Status code returned 0xc0000072 NT_STATUS_ACCOUNT_DISABLED
May 2 22:46:13 wrsync kernel: [16766.652132] CIFS VFS: Send error in SessSetup = -127
May 2 22:46:13 wrsync kernel: [16766.652658] CIFS VFS: cifs_mount failed w/return code = -127
By default the administrator user account in windows 7 is disabled.To solve the problem just enable it.
Run cmd.exe as administrator and type
net user administrator /active:yes