"/etc/securetty is used by login(1); the file contains the
device names of tty lines (_one per line_, without leading
/dev/) on which root is allowed to login."
This would imply that a regex etc in the file is going to be fsck all use,
because a regex would most likely be treated as a string. If you do manage
to get something working though I'd be interested to hear about it. In the
meantime if he's really feeling suicidal he can do something along the lines
"ls -1 /dev/tty* | cut -d"/" -f3 > /etc/securetty" (The ls option is a
----- Original Message -----
From: "Dermot Canniffe" <canniffd at student.cs.ucc.ie>
To: "Cork Linux Users Group" <cork at linux.ie>
Sent: Friday, May 11, 2001 9:12 PM
Subject: Re: [CLUG] allow root login on all ttys
> Since as far as I can remember ttys for things like telnet are
> created on the fly, how do I catch all possibilities? I'm looking
> for a sort of wildcard/regexp to do it all....
>> Adam Lock (locka at iol.ie):
> > Adam Lock wrote:
> > >
> > > Dermot Canniffe wrote:
> > > >
> > > > I know this is hideously insecure, but my mate won't hear any of it.
> > > > How do allow root to login on all ttys?
> > > >
> > > > regards,
> > >
> > > Removing the appropriate entry from /etc/securetty may do the trick.
> > >
> > Apologies, I meant ADDING to /etc/securetty
> > --
> > Adam Lock - locka at iol.ie> >
> > _______________________________________________
> > Cork maillist - Cork at linux.ie> > http://www.linux.ie/mailman/listinfo/cork>> --
> Dermot Canniffe
> BScCS IV
> University College Cork
>dermot.canniffe at student.cs.ucc.iehttp://student.cs.ucc.ie/01/canniffd
>>> Dermot Canniffe's choice of Epitaph #7:
> "Don't make me come down there!" :-God
> Cork maillist - Cork at linux.ie>http://www.linux.ie/mailman/listinfo/cork>>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!