I've been using Arch for ~3 years and it's my first forum post, I always found a solution online normally but now I'm stuck!
I changed violently all mods in /usr after a mess up (I put everything owned by root with chmod 755)
Most of my applications could not start anymore, I fixed them by reinstalling them (xorg-server, chromium etc...). It seems I broke something related to setuid (whose mechanism is still quite unclear to me) since all programs requiring privilege elevation failed (I had to reinstall sudo, mlocate)...
Only one of them is still failing to recover: gnome-terminal, I get the following GUI message "grantpt failed: Exec format error".
I could not find any way to start gnome-terminal in a more verbose mode to have more information.
Reinstalling it does not fix this problem. (yaourt -Sf gnome-terminal)
xterm is working fine
I couldn't find any reference on modes to set for basic folders in arch linux so I might still have missing mods.
I saw that this problem could be linked to wrongly mounted /dev/pts, I had:
~ cat /etc/mtab|grep pts
devpts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0
I switched it to 755 via mount /dev/pts -o mode=755 -o remount and have now
devpts /dev/pts devpts rw,relatime,mode=755,ptmxmode=000 0 0
but I still get the same problem.
It seems that the problem is in vte, when I start it I get the same error message:
~ vte -d
** (vte:11996): WARNING **: Failed to fork: grantpt failed: Exec format error
Do you have any idea where to look at to fix this? Which file mode should still be changed or what can I do to have more information on this failure?
Last edited by jolivier (2012-11-30 09:55:07)
Yes it's quite similar to what I tried already, but I had a try:
~ sudo mount -o remount,mode=620 /dev/pts
** (vte:17418): WARNING **: Failed to fork: grantpt failed: Exec format error
Maybe there is a cache to clear after having remounted /dev/pts but I don't know which one...
I only did a very quick google, but I saw some bugreports about gnome-terminal and grantpt errors. Not sure if they're related. Maybe have another browse.
Ok I fixed by changing my fstab to
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0 like described here https://bugzilla.redhat.com/show_bug.cgi?id=509632
and rebooting, maybe the gid was also important or reboot was needed, anyway it's fixed now.
Thans for your help
Good to hear you managed to solve the issue.
Don't forget to mark your thread as [SOLVED].
I just wanted to quickly update this thread for users who experience this issue after updating glibc:
The update to glibc-2.18 removes pt_chown which is a security risk. It is not needed on an Arch system given we have /dev/pts.
However, some people appear to have /dev/pts in their /etc/fstab file, which generates it with the wrong permissions. This will result in errors like "grantpt failed: Operation not permitted".
To fix this, remove that line from your fstab file. systemd will take care of generating /dev/pts with the right permissions
Somehow I missed the heads-up in arch-dev-public. Thanks jstoik1
Commenting the devpts line in /etc/fstab file also did the trick for me. Changing permissions at runtime, by remounting /dev/pts, was instead not working.
Glad that I found the solution guys, each day I love Arch more...
And many many thanks to jstoik1!
Last edited by dennymallow (2013-08-24 12:49:15)
A good Arch can hold any weight!
I removed the line from /dev/fstab, but I guess the systemd reload happens after a reboot, right? (edit: systemctl daemon-reload didn't change anything either)
Since I can't reboot right now, this remount did the trick for me (note how it includes gid=5). It's a variation of the fstab line jolivier posted, I took it from the redhat bug:
sudo mount -o remount,gid=5,mode=620 /dev/pts
Last edited by dx (2013-08-26 06:46:06)
(whoa it's like i'm actually using a forum, i can even use bbcode)
Hi, thanks for the feedback but this is necro-bumping. The original issue predates systemd as the default init for Arch and the thread was marked solved over a year ago. I am closing this thread to prevent further replies. If anyone needs more help, start a new thread.