The same thing just happened to me. Check your login account and change the Password expires
to Never
See below for my net user
output.
C:Usersusr>net user remote
User name remote
Full Name
Comment
User's comment
Country code 000 (System Default)
Account active Yes
Account expires Never
Password last set 9/15/2013 1:33:43 PM
Password expires 10/27/2013 1:33:43 PM <<<<<<< # password expired
Password changeable 9/15/2013 1:33:43 PM
Password required Yes
User may change password Yes
To set the account’s Password expires
field to Never
, run the following command.
WMIC USERACCOUNT WHERE "Name='username" SET PasswordExpires=FALSE
So, for example, for my account, I would run:
WMIC USERACCOUNT WHERE "Name='remote" SET PasswordExpires=FALSE
Command prompt output:
wmic:rootcli>useraccount where "name='remote'" set PasswordExpires=FALSE
Update property(s) of '\READINGRAINBOWROOTCIMV2:Win32_UserAccount.Domain="ReadingRainbow",Name="remote"' (Y/N/?)? y
Property(s) update successful.
wmic:rootcli>
When you check the account again it should be changed to Never
C:Usersusr>net user remote
User name remote
Full Name
Comment
User's comment
Country code 000 (System Default)
Account active Yes
Account expires Never
Password last set 10/28/2013 8:33:29 PM
Password expires Never <<<<<<< # Changed to Never
Password changeable 10/28/2013 8:33:29 PM
Содержание
- Thread: mount error(127): Key has expired
- mount error(127): Key has expired
- Re: mount error(127): Key has expired
- Mount error 127 key has expired cifs
- Re: Cannot connect to NAS server — Mount Error(127)
- Re: Cannot connect to NAS server — Mount Error(127)
- Re: Cannot connect to NAS server — Mount Error(127)
- Re: Cannot connect to NAS server — Mount Error(127)
- Re: Cannot connect to NAS server — Mount Error(127)
- Re: Cannot connect to NAS server — Mount Error(127)
- Re: Cannot connect to NAS server — Mount Error(127)
- Developer IT
- Mount CIFS share gives «mount error 127 = Key has expired» — Developer IT
- Search Box
- Who’s amung us?
- Alexa Rank
- Most popular posts
- Mount CIFS share gives «mount error 127 = Key has expired»
- Related posts about samba
- Unable to connect to Samba printer
- Samba folder is gone
- Samba on OS X 10.6.4
- OpenLDAP and Samba, can’t log onto Samba share from Windows
- Windows 7 Samba issue
- Related posts about linux
- apt-get install and update fail
- kernel module compiling error
- Build-Essentials installation failing
- Updating Debian kernel
- Serial connection over a single USB cable (Windows to linux, or linux to linux)
Thread: mount error(127): Key has expired
Thread Tools
Display
mount error(127): Key has expired
Until a few days ago, everything was mounting fine. Then, when I tried mounting my ******* share, I got the above message. (I added T-bird 3 RC2 that day.
I’ve tried so many different ways of searching for the solution. I’ve check the *******7 machine (all seems 2B set correctly there; but I cannot connect using either cifs or smbfs.
Here’s the command (in fstab):
How do I permanently renew this key?
Please help. I use the ******* machine for backup to Mozy, and I use rsync to backup this machine to *******. But right now I can’t mount a ******* share.
UPDATE: This is a ******* problem. Still haven’t solved it. But will update when I do.
SOLVED UPDATE: DOH! Apparently, I haven’t been using ******* in a while. I was mounting the widoze share folders from my ******* uac which is set up to have the pw expire (which it did).
Last edited by josephpmh; December 10th, 2009 at 10:16 PM . Reason: SOLVED
Re: mount error(127): Key has expired
Your password may have expired or need to change it. Log on into a Windows box or RDP terminal to change the password first, then try mount again.
Last edited by cesarradtke; January 2nd, 2012 at 06:49 PM .
Источник
Mount error 127 key has expired cifs
I use a Synology NAS server to store all my documents, photos, program code, etc. in a central location so I can access them from any device — and it works fine from Mac and Wndows machines. I want to do the same from my new RPi but am having trouble connecting.
First I logged into the NAS box and setup a new user profile = pi
Then logged into the RPi as ‘pi’ and created a new mountable directory on the RPi = /home/pi/NAS
Then tried to mount the NAS box using this:
This returned the message — mount error(13): Permission denied
After much searching on the internet it seemed the solution (work around) to the problem was to add the option sec=none, so trying again with that added
This returned the message — mount error(127): Key has expired
And at this point I am stuck. All solutions I have found to this error suggest logging onto the Windows server and changing/resetting the password of the user I am trying to connect as. But this is a Synology (ie. Linux) system and the passwords don’t expire. The only other key that I know was created between the two machines is that in the ‘known_hosts’ file but from what I have read that just authenticates one machine to another and is not relevant here.
If it helps:
I can SSH to the NAS box from the RPi with no problem using the NASes administrator ID, but get the same error trying to mount the server using the administrator ID (I can’t SSH using the ‘pi’ username because the NAS box is configured to deny user login).
As a test I did configure an NFS link between the two machines and that worked but I don’t want to have to do it that way.
So any suggestions would be appreciated
Re: Cannot connect to NAS server — Mount Error(127)
Since your Synology NAS is running Linux and the filesystem sharing of choice for Linux is NFS why not use that rather than cifs/samba?
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors — are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: Cannot connect to NAS server — Mount Error(127)
Thanks for response. As mentioned above I can get an NFS connection and if I can’t find a solution to the way I want to connect then I will resort it. The problem with connecting via NFS is that it is tedious to setup user permissions on the Synology box. Connecting via Windows/Mac there is a nice GUI frontend for setting user privileges for NFS, well lets just say it’s different.
Re: Cannot connect to NAS server — Mount Error(127)
Try using
sudo tcpdump -i eth0 -w /tmp/tcpdump.pcap &
Attempt to mount the cifs drive.
sudo killall tcpdump
Then take a look at that packet trace (with tcpdump on your RPi or Wireshark on Windows).
Hopefully you can see what cifs is really objecting to from a packet trace.
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors — are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: Cannot connect to NAS server — Mount Error(127)
Thanks for the reply. You will gather from what follows that Linux is not my forte — give me an IBM iSeries and I’m your man — however I am willing to learn.
I tried the tcpdump command and was told: command does not exist
So installed tcpdump ont RPi and tried again and was told:
15 packets captured
15 packets received by filter
0 packets dropped by kernel
Tried to view the file and it contained gibberish. Assumed file contained binary data and looked on web to find how to get human readable form — basically tcpdump -r. After figuring out how to copy result I get this:
Unfortunately I don’t really know what it means. The only contention I can see is a WARNING: Short Packet. Nothing else here indicates any kind of error.
Any assistance you can provide would be most welcome.
Re: Cannot connect to NAS server — Mount Error(127)
You need to look deeper at the packet contents. You should see your credentials go to the cifs server and the «computer says no» response coming back.
tcpdump tends to pale into a «could have done better» tool when you get to look at your packet trace on Wireshark (tcpdump’s distant cousin).
cifs servers normally log from their nmb and smb components, those logs (if you can find them on your NAS) may reveal more details of why you got a «computer says no» response.
I bumped into an AS/400 once (someone gave me a shove), that was a weird experience (no injuries sustained). I logged on to an iSeries once (for an education class) that was an even weirder experience — they’re not a bit like a proper zSeries mainframe.
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors — are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: Cannot connect to NAS server — Mount Error(127)
Hi Dougie
Thanks for your patient support.
The NAS box seems to reveal nothing (literally nothing) in the logs I could find (ie. /var/log/log.smbd, /var/log/log.nmbd and /var/log/synosys.log) regarding me trying to connect via the RPi . However I moved moved forward (or at least sideways) a bit.
I can connect to the NAS using:- smbclient -L //192.168.1.100
It asks for the pi’s password on the NAS box and when entered returns a list of shared folders
I have also found that enabling the guest account changes the message returned when trying to mount the share to:
Retrying with upper case share name
mount error(6): No such device or address
With the guest account enbled I can also use smb://192.168.1.100 and access the shared folders assigned to the guest account.
I don’t know what the above implies but I will continue to scour the web for possible solutions. If anything above rings a bell with you then please do let me know.
Re: Cannot connect to NAS server — Mount Error(127)
and see the contents of the shared folder in /home/pi/NAS
Note: This differs from the previous attempt that resulted in mount error(6)
I have removed the harddisk volume name (volume1)
The next thing to assertain is how to access the NAS box without having to enable the guest profile. Is there any configuration setting I can make to start the initial connection under a specific user name?
Also when connecting via Windows7 I simply set up a network drive pointing to the NAS box IP address with the appropriate username/password and ALL authorised shared folders are visible to me, I don’t have to mount each individually.
Any further help would me much appreciated.
Источник
Developer IT
Search Box
Who’s amung us?
Alexa Rank
Most popular posts
Posted by djk on Server Fault See other posts from Server Fault or by djk
Published on 2009-09-08T09:54:12Z Indexed on 2010/03/18 10:01 UTC
Read the original article Hit count: 4135
samba
linux
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?
© Server Fault or respective owner
Hit count: 4135 | Read the original article
Unable to connect to Samba printer
as seen on Ask Ubuntu — Search for ‘Ask Ubuntu’
I have a headless Ubuntu 12.04 server for files and printers. It shares files via Samba just fine. However, the HP PSC-750xi connected to the server via USB is not accessible from my Ubuntu 12.04 laptop. I can browse for it in the Printing control panel, but any attempt to authenticate my ID to the… >>> More
Samba folder is gone
as seen on Ask Ubuntu — Search for ‘Ask Ubuntu’
I seem to have some issues sharing folders from my Ubuntu 12.04 machine to a Win7 machine. After playing around with the settings, I decided to revert to Samba‘s original setting by reinstalling it: sudo apt-get purge samba sudo rm -rf /etc/samba/ /etc/default/samba sudo apt-get install samba just… >>> More
Samba on OS X 10.6.4
as seen on Server Fault — Search for ‘Server Fault’
I just updated from 10.6.3 to 10.6.4, and now my Samba shares won’t mount and won’t allow access into the directories. In the logs, I’ve started to get the following errors, any idea what might have gone wrong? 2010/06/25 15:54:27, 0, pid=13848] /SourceCache/samba/samba-235.4/samba/source/passdb/secrets… >>> More
as seen on Server Fault — Search for ‘Server Fault’
The former jackass IT-guy that I’m taking over for had a Samba share setup on a Fedora server that uses our OpenLDAP server to authenticate users who want to log in from Windows. We recently added a new employee and I jumped through the LDAP hoops to add them to the system. However, I can’t seem… >>> More
Windows 7 Samba issue
as seen on Server Fault — Search for ‘Server Fault’
We have a strange samba issue affecting only one user. Our samba setup is as follow : Red Hat Enterprise Linux Server release 5.4 (Tikanga) — Samba Server Samba version 3.0.33-3.14.el5 — Samba version Domain Controller WIN2008R2 Standard -… >>> More
apt-get install and update fail
as seen on Ask Ubuntu — Search for ‘Ask Ubuntu’
I’ve got a problem with apt-get update and apt-get install . commands . every time update or installing fails and errors are : Get:1 http://dl.google.com stable Release.gpg [198B] Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en_US Get:2 http://dl… >>> More
kernel module compiling error
as seen on Ask Ubuntu — Search for ‘Ask Ubuntu’
[email protected]:/home/ccpp/helloworld$ make gcc-4.6 -O2 -DMODULE -D_KERNEL_ -W -Wall -Wstrict-prototypes -Wmissing-prototypes -isystem /lib/modules/`uname -r`/build/include -c -o hello-1.o hello-1.c hello-1.c:4:0: warning: «MODULE» redefined [enabled by default] :0:0: note: this is… >>> More
Build-Essentials installation failing
as seen on Ask Ubuntu — Search for ‘Ask Ubuntu’
I am having trouble accessing the several critical header files that show to be a part of the build process. The «Ubuntu Software Center» shows «Build Essentials» as installed: Next I did the following two commands, which did not improve the problem:
$ sudo apt-get install build-essential [sudo]… >>> More
Updating Debian kernel
as seen on Super User — Search for ‘Super User’
I’m trying to update my Debian machine to 2.6.32-46 (which is the new stable). However, after doing apt-get update my apt-cache search linux-image shows me: linux-headers-2.6.32-5-486 — Header files for Linux 2.6.32-5-486 linux-headers-2.6.32-5-686-bigmem — Header files for Linux 2.6.32-5-686-bigmem linux-headers-2… >>> More
Serial connection over a single USB cable (Windows to linux, or linux to linux)
as seen on Server Fault — Search for ‘Server Fault’
I’m helping out with a project for an embedded device that only has USB and no serial. This device is running Linux. These days, when we need to connect to a serial port on a device we typically use a USB to serial adapter (on something like a phone system or a load balancing device, etc). I would… >>> More
Источник
В настоящее время я копирую настройку CentOS-бокса и сталкиваюсь со странной ошибкой при попытке смонтировать общий ресурс samba, который находится на NAS. Я получаю ошибку:
mount error 127 = Key has expired
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
Настройки идентичны старой машине, пароль также верный. Я, конечно, гуглил проблему и просмотрел каждую страницу, где есть ссылка на эту проблему (не так много), и до сих пор не нашел ответа.
В старой версии CentOS используется Samba версии 3.0.28-0.el4.9, и сейчас я пытаюсь настроить ее на 3.0.33-3.7.el5_3.1. Я не знаю, имеет ли это какое-либо отношение к этому, но это, безусловно, одно из единственных различий между двумя установками.
Когда я пытаюсь выполнить команду mount, это появляется в системном журнале:
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
Учетная запись практически не отключена, поскольку она работает на старом компьютере с использованием тех же учетных данных.
Кто-нибудь еще видел эту проблему?
Ответы:
У меня была похожая проблема. Это связано с тем, что срок действия вашего пароля истек или вам необходимо его изменить. Вы можете решить его следующим образом:
- Войдите в Windows Machine или удаленный рабочий стол
- После ввода текущих правильных учетных данных вам будет предложено изменить пароль
- Введите новый пароль
- После того, как пароль успешно изменен, попробуйте смонтировать снова (и он должен работать)
Может быть, вы решили это ….
Обычно вы идете на компьютер, к которому вы пытаетесь подключиться, входите в систему и повторно вводите пароль для учетной записи, которую вы используете … вы можете повторно использовать тот же пароль, если хотите … тогда вы годитесь на определенное количество дней по умолчанию в вашей системе, если вы ничего не меняли
У меня та же ошибка с Ubuntu 11.04 / Windows 7
После того, как я попытался войти (на машине с Windows) как пользователь, учетные данные которого использовались в параметрах монтирования samba,
Windows сказал, что пароль учетной записи истек и запросил новый пароль.
Я изменил пароль учетной записи как на компьютере с Windows, так и в .credentials,
Теперь моя доля растет.
То же самое случилось со мной. Проверьте свою учетную запись для входа и изменить Password expires
ToNever
Смотрите ниже мой net user
вывод.
C:Usersusr>net user remote
User name remote
Full Name
Comment
User's comment
Country code 000 (System Default)
Account active Yes
Account expires Never
Password last set 9/15/2013 1:33:43 PM
Password expires 10/27/2013 1:33:43 PM <<<<<<< # password expired
Password changeable 9/15/2013 1:33:43 PM
Password required Yes
User may change password Yes
Чтобы установить для Password expires
поля учетной записи значение Never
, выполните следующую команду.
WMIC USERACCOUNT WHERE "Name='username" SET PasswordExpires=FALSE
Так, например, для моего аккаунта я бы запустил:
WMIC USERACCOUNT WHERE "Name='remote" SET PasswordExpires=FALSE
Вывод командной строки:
wmic:rootcli>useraccount where "name='remote'" set PasswordExpires=FALSE
Update property(s) of '\READINGRAINBOWROOTCIMV2:Win32_UserAccount.Domain="ReadingRainbow",Name="remote"' (Y/N/?)? y
Property(s) update successful.
wmic:rootcli>
При повторной проверке учетной записи ее следует изменить на Never
C:Usersusr>net user remote
User name remote
Full Name
Comment
User's comment
Country code 000 (System Default)
Account active Yes
Account expires Never
Password last set 10/28/2013 8:33:29 PM
Password expires Never <<<<<<< # Changed to Never
Password changeable 10/28/2013 8:33:29 PM
Синхронизированы ли дата / время на вашем компьютере с NAS и Linux?
единственные три фактора, с которыми я лично столкнулся при использовании CIFS в Linux, где (как сказано выше):
1 ° / -Керберос Ошибка обновления билета (размонтируйте свою точку, остановите модуль ядра, очистите каждый кеш).
2 ° / — Проблемы с паролями из-за некоторых странных проблем с шифрованием (их невозможно быстро решить без более глубокого изучения журналов и захвата сети с обеих сторон).
3 ° / -Временная настройка на стороне Linux отличается от Windows на более чем на секунду.
Я не сказал, что эти верхние точки являются решением, но это может помочь
Увидимся!
Может быть, я педант, но вы попробовали с другой машины после того, как получили ошибку?
Вы действительно уверены , что счет не только истекли в настоящее время ?
РЕДАКТИРОВАТЬ:
Имеет ли этот пост помощь?
EDIT2:
Работает ли это, если вы используете smbfs вместо cifs?
Получил похожую проблему только сейчас, и решил путем изменения
//host/path /mnt/path cifs username=username1,password=password1,iocharset=utf8,sec=ntlm 0 0
в
//host/path /mnt/path cifs username=domain1username1,password=password1,iocharset=utf8,sec=ntlm 0 0
Общий ресурс монтирования CIFS дает «ошибка монтирования 127 = срок действия ключа истек»
В настоящее время я копирую настройку CentOS-бокса и сталкиваюсь со странной ошибкой при попытке смонтировать общий ресурс samba, который находится на NAS. Я получаю ошибку:
Настройки идентичны старой машине, пароль также верный. Я, конечно, гуглил проблему и просмотрел каждую страницу, где есть ссылка на эту проблему (не так много), и до сих пор не нашел ответа.
В старой версии CentOS используется Samba версии 3.0.28-0.el4.9, и сейчас я пытаюсь настроить ее на 3.0.33-3.7.el5_3.1. Я не знаю, имеет ли это какое-либо отношение к этому, но это, безусловно, одно из единственных различий между двумя установками.
Когда я пытаюсь выполнить команду mount, это появляется в системном журнале:
Учетная запись практически не отключена, поскольку она работает на старом компьютере с использованием тех же учетных данных.
Кто-нибудь еще видел эту проблему?
У меня была похожая проблема. Это связано с тем, что срок действия вашего пароля истек или вам необходимо его изменить. Вы можете решить его следующим образом:
- Войдите в Windows Machine или удаленный рабочий стол
- После ввода текущих правильных учетных данных вам будет предложено изменить пароль
- Введите новый пароль
- После того, как пароль успешно изменен, попробуйте смонтировать снова (и он должен работать)
Может быть, вы решили это .
Обычно вы идете на компьютер, к которому вы пытаетесь подключиться, входите в систему и повторно вводите пароль для учетной записи, которую вы используете . вы можете повторно использовать тот же пароль, если хотите . тогда вы годитесь на определенное количество дней по умолчанию в вашей системе, если вы ничего не меняли
У меня та же ошибка с Ubuntu 11.04 / Windows 7
После того, как я попытался войти (на машине с Windows) как пользователь, учетные данные которого использовались в параметрах монтирования samba,
Windows сказал, что пароль учетной записи истек и запросил новый пароль.
Я изменил пароль учетной записи как на компьютере с Windows, так и в .credentials,
Теперь моя доля растет.
То же самое случилось со мной. Проверьте свою учетную запись для входа и изменить Password expires To Never
Смотрите ниже мой net user вывод.
Чтобы установить для Password expires поля учетной записи значение Never , выполните следующую команду.
Так, например, для моего аккаунта я бы запустил:
Вывод командной строки:
При повторной проверке учетной записи ее следует изменить на Never
Синхронизированы ли дата / время на вашем компьютере с NAS и Linux?
единственные три фактора, с которыми я лично столкнулся при использовании CIFS в Linux, где (как сказано выше):
1 ° / -Керберос Ошибка обновления билета (размонтируйте свою точку, остановите модуль ядра, очистите каждый кеш).
2 ° / — Проблемы с паролями из-за некоторых странных проблем с шифрованием (их невозможно быстро решить без более глубокого изучения журналов и захвата сети с обеих сторон).
3 ° / -Временная настройка на стороне Linux отличается от Windows на более чем на секунду.
Я не сказал, что эти верхние точки являются решением, но это может помочь 😉
Источник
Mount error 127 key has expired cifs
I use a Synology NAS server to store all my documents, photos, program code, etc. in a central location so I can access them from any device — and it works fine from Mac and Wndows machines. I want to do the same from my new RPi but am having trouble connecting.
First I logged into the NAS box and setup a new user profile = pi
Then logged into the RPi as ‘pi’ and created a new mountable directory on the RPi = /home/pi/NAS
Then tried to mount the NAS box using this:
This returned the message — mount error(13): Permission denied
After much searching on the internet it seemed the solution (work around) to the problem was to add the option sec=none, so trying again with that added
This returned the message — mount error(127): Key has expired
And at this point I am stuck. All solutions I have found to this error suggest logging onto the Windows server and changing/resetting the password of the user I am trying to connect as. But this is a Synology (ie. Linux) system and the passwords don’t expire. The only other key that I know was created between the two machines is that in the ‘known_hosts’ file but from what I have read that just authenticates one machine to another and is not relevant here.
If it helps:
I can SSH to the NAS box from the RPi with no problem using the NASes administrator ID, but get the same error trying to mount the server using the administrator ID (I can’t SSH using the ‘pi’ username because the NAS box is configured to deny user login).
As a test I did configure an NFS link between the two machines and that worked but I don’t want to have to do it that way.
So any suggestions would be appreciated
Re: Cannot connect to NAS server — Mount Error(127)
Since your Synology NAS is running Linux and the filesystem sharing of choice for Linux is NFS why not use that rather than cifs/samba?
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors — are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: Cannot connect to NAS server — Mount Error(127)
Thanks for response. As mentioned above I can get an NFS connection and if I can’t find a solution to the way I want to connect then I will resort it. The problem with connecting via NFS is that it is tedious to setup user permissions on the Synology box. Connecting via Windows/Mac there is a nice GUI frontend for setting user privileges for NFS, well lets just say it’s different.
Re: Cannot connect to NAS server — Mount Error(127)
Try using
sudo tcpdump -i eth0 -w /tmp/tcpdump.pcap &
Attempt to mount the cifs drive.
sudo killall tcpdump
Then take a look at that packet trace (with tcpdump on your RPi or Wireshark on Windows).
Hopefully you can see what cifs is really objecting to from a packet trace.
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors — are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: Cannot connect to NAS server — Mount Error(127)
Thanks for the reply. You will gather from what follows that Linux is not my forte — give me an IBM iSeries and I’m your man — however I am willing to learn.
I tried the tcpdump command and was told: command does not exist
So installed tcpdump ont RPi and tried again and was told:
15 packets captured
15 packets received by filter
0 packets dropped by kernel
Tried to view the file and it contained gibberish. Assumed file contained binary data and looked on web to find how to get human readable form — basically tcpdump -r. After figuring out how to copy result I get this:
Unfortunately I don’t really know what it means. The only contention I can see is a WARNING: Short Packet. Nothing else here indicates any kind of error.
Any assistance you can provide would be most welcome.
Re: Cannot connect to NAS server — Mount Error(127)
You need to look deeper at the packet contents. You should see your credentials go to the cifs server and the «computer says no» response coming back.
tcpdump tends to pale into a «could have done better» tool when you get to look at your packet trace on Wireshark (tcpdump’s distant cousin).
cifs servers normally log from their nmb and smb components, those logs (if you can find them on your NAS) may reveal more details of why you got a «computer says no» response.
I bumped into an AS/400 once (someone gave me a shove), that was a weird experience (no injuries sustained). I logged on to an iSeries once (for an education class) that was an even weirder experience — they’re not a bit like a proper zSeries mainframe.
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors — are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: Cannot connect to NAS server — Mount Error(127)
Hi Dougie
Thanks for your patient support.
The NAS box seems to reveal nothing (literally nothing) in the logs I could find (ie. /var/log/log.smbd, /var/log/log.nmbd and /var/log/synosys.log) regarding me trying to connect via the RPi . However I moved moved forward (or at least sideways) a bit.
I can connect to the NAS using:- smbclient -L //192.168.1.100
It asks for the pi’s password on the NAS box and when entered returns a list of shared folders
I have also found that enabling the guest account changes the message returned when trying to mount the share to:
Retrying with upper case share name
mount error(6): No such device or address
With the guest account enbled I can also use smb://192.168.1.100 and access the shared folders assigned to the guest account.
I don’t know what the above implies but I will continue to scour the web for possible solutions. If anything above rings a bell with you then please do let me know.
Re: Cannot connect to NAS server — Mount Error(127)
and see the contents of the shared folder in /home/pi/NAS
Note: This differs from the previous attempt that resulted in mount error(6)
I have removed the harddisk volume name (volume1)
The next thing to assertain is how to access the NAS box without having to enable the guest profile. Is there any configuration setting I can make to start the initial connection under a specific user name?
Also when connecting via Windows7 I simply set up a network drive pointing to the NAS box IP address with the appropriate username/password and ALL authorised shared folders are visible to me, I don’t have to mount each individually.
Any further help would me much appreciated.
Источник
Developer IT
Mount CIFS share gives «mount error 127 = Key has expired» — Developer IT
Search Box
Who’s amung us?
Alexa Rank
Most popular posts
Mount CIFS share gives «mount error 127 = Key has expired»
Posted by djk on Server Fault See other posts from Server Fault or by djk
Published on 2009-09-08T09:54:12Z Indexed on 2010/03/18 10:01 UTC
Read the original article Hit count: 4130
samba
linux
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?
© Server Fault or respective owner
Hit count: 4130 | Read the original article
Related posts about samba
Unable to connect to Samba printer
as seen on Ask Ubuntu — Search for ‘Ask Ubuntu’
I have a headless Ubuntu 12.04 server for files and printers. It shares files via Samba just fine. However, the HP PSC-750xi connected to the server via USB is not accessible from my Ubuntu 12.04 laptop. I can browse for it in the Printing control panel, but any attempt to authenticate my ID to the… >>> More
Samba folder is gone
as seen on Ask Ubuntu — Search for ‘Ask Ubuntu’
I seem to have some issues sharing folders from my Ubuntu 12.04 machine to a Win7 machine. After playing around with the settings, I decided to revert to Samba‘s original setting by reinstalling it: sudo apt-get purge samba sudo rm -rf /etc/samba/ /etc/default/samba sudo apt-get install samba just… >>> More
Samba on OS X 10.6.4
as seen on Server Fault — Search for ‘Server Fault’
I just updated from 10.6.3 to 10.6.4, and now my Samba shares won’t mount and won’t allow access into the directories. In the logs, I’ve started to get the following errors, any idea what might have gone wrong? 2010/06/25 15:54:27, 0, pid=13848] /SourceCache/samba/samba-235.4/samba/source/passdb/secrets… >>> More
OpenLDAP and Samba, can’t log onto Samba share from Windows
as seen on Server Fault — Search for ‘Server Fault’
The former jackass IT-guy that I’m taking over for had a Samba share setup on a Fedora server that uses our OpenLDAP server to authenticate users who want to log in from Windows. We recently added a new employee and I jumped through the LDAP hoops to add them to the system. However, I can’t seem… >>> More
Windows 7 Samba issue
as seen on Server Fault — Search for ‘Server Fault’
We have a strange samba issue affecting only one user. Our samba setup is as follow : Red Hat Enterprise Linux Server release 5.4 (Tikanga) — Samba Server Samba version 3.0.33-3.14.el5 — Samba version Domain Controller WIN2008R2 Standard -… >>> More
Related posts about linux
apt-get install and update fail
as seen on Ask Ubuntu — Search for ‘Ask Ubuntu’
I’ve got a problem with apt-get update and apt-get install . commands . every time update or installing fails and errors are : Get:1 http://dl.google.com stable Release.gpg [198B] Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en_US Get:2 http://dl… >>> More
kernel module compiling error
as seen on Ask Ubuntu — Search for ‘Ask Ubuntu’
[email protected]:/home/ccpp/helloworld$ make gcc-4.6 -O2 -DMODULE -D_KERNEL_ -W -Wall -Wstrict-prototypes -Wmissing-prototypes -isystem /lib/modules/`uname -r`/build/include -c -o hello-1.o hello-1.c hello-1.c:4:0: warning: «MODULE» redefined [enabled by default] :0:0: note: this is… >>> More
Build-Essentials installation failing
as seen on Ask Ubuntu — Search for ‘Ask Ubuntu’
I am having trouble accessing the several critical header files that show to be a part of the build process. The «Ubuntu Software Center» shows «Build Essentials» as installed: Next I did the following two commands, which did not improve the problem:
$ sudo apt-get install build-essential [sudo]… >>> More
Updating Debian kernel
as seen on Super User — Search for ‘Super User’
I’m trying to update my Debian machine to 2.6.32-46 (which is the new stable). However, after doing apt-get update my apt-cache search linux-image shows me: linux-headers-2.6.32-5-486 — Header files for Linux 2.6.32-5-486 linux-headers-2.6.32-5-686-bigmem — Header files for Linux 2.6.32-5-686-bigmem linux-headers-2… >>> More
Serial connection over a single USB cable (Windows to linux, or linux to linux)
as seen on Server Fault — Search for ‘Server Fault’
I’m helping out with a project for an embedded device that only has USB and no serial. This device is running Linux. These days, when we need to connect to a serial port on a device we typically use a USB to serial adapter (on something like a phone system or a load balancing device, etc). I would… >>> More
Источник
Filed under:
samba
|
linux
Hi,
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?
Thanks!
© Server Fault or respective owner
Related posts about samba
-
Unable to connect to Samba printer
as seen on Ask Ubuntu
— Search for ‘Ask Ubuntu’
I have a headless Ubuntu 12.04 server for files and printers. It shares files via Samba just fine. However, the HP PSC-750xi connected to the server via USB is not accessible from my Ubuntu 12.04 laptop. I can browse for it in the Printing control panel, but any attempt to authenticate my ID to the…
>>> More -
Samba folder is gone
as seen on Ask Ubuntu
— Search for ‘Ask Ubuntu’
I seem to have some issues sharing folders from my Ubuntu 12.04 machine to a Win7 machine. After playing around with the settings, I decided to revert to Samba‘s original setting by reinstalling it:
sudo apt-get purge samba
sudo rm -rf /etc/samba/ /etc/default/samba
sudo apt-get install samba
just…
>>> More -
Samba on OS X 10.6.4
as seen on Server Fault
— Search for ‘Server Fault’
I just updated from 10.6.3 to 10.6.4, and now my Samba shares won’t mount and won’t allow access into the directories. In the logs, I’ve started to get the following errors, any idea what might have gone wrong?
2010/06/25 15:54:27, 0, pid=13848] /SourceCache/samba/samba-235.4/samba/source/passdb/secrets…
>>> More -
OpenLDAP and Samba, can’t log onto Samba share from Windows
as seen on Server Fault
— Search for ‘Server Fault’
The former jackass IT-guy that I’m taking over for had a Samba share setup on a Fedora server that uses our OpenLDAP server to authenticate users who want to log in from Windows.
We recently added a new employee and I jumped through the LDAP hoops to add them to the system. However, I can’t seem…
>>> More -
Windows 7 Samba issue
as seen on Server Fault
— Search for ‘Server Fault’
We have a strange samba issue affecting only one user. Our samba setup is as follow :
Red Hat Enterprise Linux Server release 5.4 (Tikanga) — Samba Server
Samba version 3.0.33-3.14.el5 — Samba version
Domain Controller WIN2008R2 Standard -…
>>> More
Related posts about linux
-
apt-get install and update fail
as seen on Ask Ubuntu
— Search for ‘Ask Ubuntu’
I’ve got a problem with apt-get update and apt-get install … commands .
every time update or installing fails and errors are :
Get:1 http://dl.google.com stable Release.gpg [198B]
Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en_US
Get:2 http://dl…
>>> More -
kernel module compiling error
as seen on Ask Ubuntu
— Search for ‘Ask Ubuntu’
[email protected]:/home/ccpp/helloworld$ make
gcc-4.6 -O2 -DMODULE -D_KERNEL_ -W -Wall -Wstrict-prototypes -Wmissing-prototypes -isystem /lib/modules/`uname -r`/build/include -c -o hello-1.o hello-1.c
hello-1.c:4:0: warning: «MODULE» redefined [enabled by default]
<command-line>:0:0: note: this is…
>>> More -
Build-Essentials installation failing
as seen on Ask Ubuntu
— Search for ‘Ask Ubuntu’
I am having trouble accessing the several critical header files that show to be a part of the build process.
The «Ubuntu Software Center» shows «Build Essentials» as installed:
Next I did the following two commands, which did not improve the problem:
~$ sudo apt-get install build-essential
[sudo]…
>>> More -
Updating Debian kernel
as seen on Super User
— Search for ‘Super User’
I’m trying to update my Debian machine to 2.6.32-46 (which is the new stable). However, after doing apt-get update my apt-cache search linux-image shows me:
linux-headers-2.6.32-5-486 — Header files for Linux 2.6.32-5-486
linux-headers-2.6.32-5-686-bigmem — Header files for Linux 2.6.32-5-686-bigmem
linux-headers-2…
>>> More -
Serial connection over a single USB cable (Windows to linux, or linux to linux)
as seen on Server Fault
— Search for ‘Server Fault’
I’m helping out with a project for an embedded device that only has USB and no serial. This device is running Linux.
These days, when we need to connect to a serial port on a device we typically use a USB to serial adapter (on something like a phone system or a load balancing device, etc). I would…
>>> More
Categories cloud
Thanks for the reply. You will gather from what follows that Linux is not my forte — give me an IBM iSeries and I’m your man — however I am willing to learn.
I tried the tcpdump command and was told: command does not exist
So installed tcpdump ont RPi and tried again and was told:
15 packets captured
15 packets received by filter
0 packets dropped by kernel
Tried to view the file and it contained gibberish. Assumed file contained binary data and looked on web to find how to get human readable form — basically tcpdump -r. After figuring out how to copy result I get this:
Code: Select all
12:27:49.887107 ARP, Request who-has 192.168.1.100 tell home.gateway, length 46
12:27:49.887112 ARP, Reply 192.168.1.100 is-at 00:11:32:0b:26:39 (oui Unknown), length 46
12:28:35.559699 IP 192.168.1.205.52813 > 192.168.1.100.microsoft-ds: Flags [S], seq 3125848858, win 14600, options [mss 1460,sackOK,TS val 1405062 ecr 0,nop,wscale 6], length 0
12:28:35.560274 IP 192.168.1.100.microsoft-ds > 192.168.1.205.52813: Flags [S.], seq 2871344061, ack 3125848859, win 5792, options [mss 1460,sackOK,TS val 1573806 ecr 1405062,nop,wscale 4], length 0
12:28:35.560532 IP 192.168.1.205.52813 > 192.168.1.100.microsoft-ds: Flags [.], ack 1, win 229, options [nop,nop,TS val 1405062 ecr 1573806], length 0
12:28:35.561219 IP 192.168.1.205.52813 > 192.168.1.100.microsoft-ds: Flags [P.], seq 1:83, ack 1, win 229, options [nop,nop,TS val 1405062 ecr 1573806], length 82SMB PACKET: SMBnegprot (REQUEST)
12:28:35.561730 IP 192.168.1.100.microsoft-ds > 192.168.1.205.52813: Flags [.], ack 83, win 362, options [nop,nop,TS val 1573806 ecr 1405062], length 0
12:28:35.568045 IP 192.168.1.100.microsoft-ds > 192.168.1.205.52813: Flags [P.], seq 1:102, ack 83, win 362, options [nop,nop,TS val 1573806 ecr 1405062], length 101SMB PACKET: SMBnegprot (REPLY)
12:28:35.568434 IP 192.168.1.205.52813 > 192.168.1.100.microsoft-ds: Flags [.], ack 102, win 229, options [nop,nop,TS val 1405063 ecr 1573806], length 0
12:28:35.569138 IP 192.168.1.205.52813 > 192.168.1.100.microsoft-ds: Flags [P.], seq 83:299, ack 102, win 229, options [nop,nop,TS val 1405063 ecr 1573806], length 216WARNING: Short packet. Try increasing the snap length by 26
SMB PACKET: SMBsesssetupX (REQUEST)
12:28:35.572688 IP 192.168.1.100.microsoft-ds > 192.168.1.205.52813: Flags [P.], seq 102:141, ack 299, win 429, options [nop,nop,TS val 1573807 ecr 1405063], length 39SMB PACKET: SMBsesssetupX (REPLY)
12:28:35.612901 IP 192.168.1.205.52813 > 192.168.1.100.microsoft-ds: Flags [.], ack 141, win 229, options [nop,nop,TS val 1405068 ecr 1573807], length 0
12:28:35.712972 IP 192.168.1.205.52813 > 192.168.1.100.microsoft-ds: Flags [F.], seq 299, ack 141, win 229, options [nop,nop,TS val 1405078 ecr 1573807], length 0
12:28:35.716426 IP 192.168.1.100.microsoft-ds > 192.168.1.205.52813: Flags [F.], seq 141, ack 300, win 429, options [nop,nop,TS val 1573821 ecr 1405078], length 0
12:28:35.716637 IP 192.168.1.205.52813 > 192.168.1.100.microsoft-ds: Flags [.], ack 142, win 229, options [nop,nop,TS val 1405078 ecr 1573821], length 0
Unfortunately I don’t really know what it means. The only contention I can see is a WARNING: Short Packet. Nothing else here indicates any kind of error.
Any assistance you can provide would be most welcome.
- Forum
- The Ubuntu Forum Community
- Ubuntu Official Flavours Support
- Networking & Wireless
- [ubuntu] mount error(127): Key has expired
-
mount error(127): Key has expired
Until a few days ago, everything was mounting fine. Then, when I tried mounting my ******* share, I got the above message. (I added T-bird 3 RC2 that day.
I’ve tried so many different ways of searching for the solution. I’ve check the *******7 machine (all seems 2B set correctly there; but I cannot connect using either cifs or smbfs.
Here’s the command (in fstab):
Code:
//192.168.1.101/Data ~/Data cifs credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
When I enter I get
Code:
mount error(127): Key has expired
How do I permanently renew this key?
Please help. I use the ******* machine for backup to Mozy, and I use rsync to backup this machine to *******. But right now I can’t mount a ******* share.
UPDATE: This is a ******* problem. Still haven’t solved it. But will update when I do.
SOLVED UPDATE: DOH! Apparently, I haven’t been using ******* in a while. I was mounting the widoze share folders from my ******* uac which is set up to have the pw expire (which it did).
Last edited by josephpmh; December 10th, 2009 at 10:16 PM.
Reason: SOLVED
-
Re: mount error(127): Key has expired
Your password may have expired or need to change it. Log on into a Windows box or RDP terminal to change the password first, then try mount again.
Last edited by cesarradtke; January 2nd, 2012 at 06:49 PM.