* /dev/tty now a directory so can't ssh out anywhere
@ 2004-08-28 12:41 Suresh Ramasubramanian
2004-08-28 18:01 ` Greg KH
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Suresh Ramasubramanian @ 2004-08-28 12:41 UTC (permalink / raw)
To: linux-hotplug
[please cc me, I'm not on this list]
I can ssh into this box (running 2.6.9-rc1-bk2) but cant ssh out ..
suresh@quirk 17:49:58 <~> $ ssh -2 suresh@192.168.1.2
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password,keyboard-interactive).
Only thing I noticed between 2.6.8.1 and 2.6.9-rc1-bk2 on this box is that
the old /dev structure is now converted to udev, so I now have /dev/tty/*
instead of /dev/ttyX devices.
Openssh seems to expect that /dev/tty is a device, not a directory and
throws an error similar to when /dev/ttyX has a wrong permission - the
code's in readpass.c
In the routine (readpassphrase(), readpassphrase.c) where it reads in a
password, it tries to open() /dev/tty, and if THAT fails, then use
stdin/stdout:
So, if it can't open /dev/tty (which it can't, it being a directory), and
the RPP_REQUIRE_TTY flag is set, then it returns NULL here. From what I
can see, that gets passed up, so it ends up sending nothing as the
password
That's when things start to go boom .. so end result is I can't ssh out,
but I can ssh into this box just fine.
srs
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id\x10808&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: /dev/tty now a directory so can't ssh out anywhere
2004-08-28 12:41 /dev/tty now a directory so can't ssh out anywhere Suresh Ramasubramanian
@ 2004-08-28 18:01 ` Greg KH
2004-08-29 1:37 ` Suresh Ramasubramanian
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2004-08-28 18:01 UTC (permalink / raw)
To: linux-hotplug
On Sat, Aug 28, 2004 at 05:59:53PM +0530, Suresh Ramasubramanian wrote:
> [please cc me, I'm not on this list]
>
> I can ssh into this box (running 2.6.9-rc1-bk2) but cant ssh out ..
<snip>
Your udev rules are incorrect. I don't know what distro you are using,
but it's a recently reported issue among a few people. Fixing your udev
rules should fix the issue.
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id\x10808&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: /dev/tty now a directory so can't ssh out anywhere
2004-08-28 12:41 /dev/tty now a directory so can't ssh out anywhere Suresh Ramasubramanian
2004-08-28 18:01 ` Greg KH
@ 2004-08-29 1:37 ` Suresh Ramasubramanian
2004-08-29 3:35 ` Suresh Ramasubramanian
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Suresh Ramasubramanian @ 2004-08-29 1:37 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 259 bytes --]
Greg KH wrote:
> Your udev rules are incorrect. I don't know what distro you are using,
> but it's a recently reported issue among a few people. Fixing your udev
> rules should fix the issue.
default install of slackware 10
files attached - udev.tar.gz
[-- Attachment #2: udev.tar.gz --]
[-- Type: application/x-gzip, Size: 6102 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: /dev/tty now a directory so can't ssh out anywhere
2004-08-28 12:41 /dev/tty now a directory so can't ssh out anywhere Suresh Ramasubramanian
2004-08-28 18:01 ` Greg KH
2004-08-29 1:37 ` Suresh Ramasubramanian
@ 2004-08-29 3:35 ` Suresh Ramasubramanian
2004-08-30 4:30 ` jnf
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Suresh Ramasubramanian @ 2004-08-29 3:35 UTC (permalink / raw)
To: linux-hotplug
Greg KH wrote:
>
> Your udev rules are incorrect. I don't know what distro you are using,
> but it's a recently reported issue among a few people. Fixing your udev
> rules should fix the issue.
>
There's a fix at
http://stephen.evanchik.com/index.cgi/linux/udev.slackware.html?seemore=y
regards
--srs
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id\x10808&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: /dev/tty now a directory so can't ssh out anywhere
2004-08-28 12:41 /dev/tty now a directory so can't ssh out anywhere Suresh Ramasubramanian
` (2 preceding siblings ...)
2004-08-29 3:35 ` Suresh Ramasubramanian
@ 2004-08-30 4:30 ` jnf
2004-09-05 7:58 ` Greg KH
2004-09-05 7:59 ` Greg KH
5 siblings, 0 replies; 7+ messages in thread
From: jnf @ 2004-08-30 4:30 UTC (permalink / raw)
To: linux-hotplug
When I first switched over to udev I had similar problems- mainly because
I wasn't aware, so I suppose its an ignorance thing on my part. But some
of these things are kind've sane to have, for instance, /dev/null should
probably be writeable, probably need permissions to ptmx, etc.
Just out of curiousity, Greg, is there a particular reason that udev comes
like this? I'd imagine some things would be more or less portable amongst
the distro's. Just something I have been wondering for a while.
justin
--
The cry has been that when war is declared, all opposition should
therefore be hushed. A sentiment more unworthy of a free country could
hardly be propagated. If the doctrine be admitted, rulers have only to
declare war and they are screened at once from scrutiny ... In war,
then, as in peace, assert the freedom of speech and of the press.
Cling to this as the bulwark of all our rights and privileges.
-- William Ellery Channing
On Sun, 29 Aug 2004, Suresh Ramasubramanian wrote:
> Greg KH wrote:
>
> > Your udev rules are incorrect. I don't know what distro you are using,
> > but it's a recently reported issue among a few people. Fixing your udev
> > rules should fix the issue.
>
> default install of slackware 10
>
> files attached - udev.tar.gz
>
>
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id\x10808&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: /dev/tty now a directory so can't ssh out anywhere
2004-08-28 12:41 /dev/tty now a directory so can't ssh out anywhere Suresh Ramasubramanian
` (3 preceding siblings ...)
2004-08-30 4:30 ` jnf
@ 2004-09-05 7:58 ` Greg KH
2004-09-05 7:59 ` Greg KH
5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2004-09-05 7:58 UTC (permalink / raw)
To: linux-hotplug
On Mon, Aug 30, 2004 at 12:30:59AM -0400, jnf wrote:
> When I first switched over to udev I had similar problems- mainly because
> I wasn't aware, so I suppose its an ignorance thing on my part. But some
> of these things are kind've sane to have, for instance, /dev/null should
> probably be writeable, probably need permissions to ptmx, etc.
>
> Just out of curiousity, Greg, is there a particular reason that udev comes
> like this? I'd imagine some things would be more or less portable amongst
> the distro's. Just something I have been wondering for a while.
It's up to the distros to set this information up correctly as they all
have different groups and need different permissions for those groups :(
I track the gentoo rules and permissions in the main udev package, and
I'd gladly add the other distro's files if they would send them to me.
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id\x10808&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: /dev/tty now a directory so can't ssh out anywhere
2004-08-28 12:41 /dev/tty now a directory so can't ssh out anywhere Suresh Ramasubramanian
` (4 preceding siblings ...)
2004-09-05 7:58 ` Greg KH
@ 2004-09-05 7:59 ` Greg KH
5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2004-09-05 7:59 UTC (permalink / raw)
To: linux-hotplug
On Sun, Aug 29, 2004 at 06:55:57AM +0530, Suresh Ramasubramanian wrote:
> Greg KH wrote:
>
> >Your udev rules are incorrect. I don't know what distro you are using,
> >but it's a recently reported issue among a few people. Fixing your udev
> >rules should fix the issue.
Here's the fix, for those people having this problem:
thanks,
greg k-h
--------
# Fix old-style pty breakage in rules file for tty device.
#
# Thanks to Martin Schlemmer <azarah@nosferatu.za.org> for the fix.
diff -Nru a/etc/udev/udev.rules.gentoo b/etc/udev/udev.rules.gentoo
--- a/etc/udev/udev.rules.gentoo 2004-09-05 09:56:23 +02:00
+++ b/etc/udev/udev.rules.gentoo 2004-09-05 09:56:23 +02:00
@@ -65,7 +65,7 @@
# pty devices
KERNEL="pty[p-za-e][0-9a-f]*", NAME="pty/m%n", SYMLINK="%k"
-KERNEL="tty[p-za-e][0-9a-f]*", NAME="tty/s%n", SYMLINK="%k"
+KERNEL="tty[p-za-e][0-9a-f]*", NAME="pty/s%n", SYMLINK="%k"
# ramdisk devices
KERNEL="ram[0-9]*", NAME="rd/%n", SYMLINK="%k"
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id\x10808&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-09-05 7:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-28 12:41 /dev/tty now a directory so can't ssh out anywhere Suresh Ramasubramanian
2004-08-28 18:01 ` Greg KH
2004-08-29 1:37 ` Suresh Ramasubramanian
2004-08-29 3:35 ` Suresh Ramasubramanian
2004-08-30 4:30 ` jnf
2004-09-05 7:58 ` Greg KH
2004-09-05 7:59 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).