Re: Service logs only when exiting

[email protected] (Paul Jarc) Thu, 28 Aug 2003 16:21:15 -0400
Newsgroups gmane.comp.lib.ptyget
Organization What did you have in mind? A short, blunt, human pyramid?
Message-ID <[email protected]>
Jurjen Oskam <[email protected]> wrote:
> "make" succeeded after all these changes. "make setup"
> however didn't, because AIX 5.2 doesn't have a group
> named "tty".

You can edit conf-group.h and use a different group instead.  If
programs such as "write" and "wall" are setgid to a particular group,
use that group.

> However, the warning "ptyget: warning: unable to allocate secure
> pty" is displayed. This is undoubtedly because of the editing of
> conf-secure.h, but what are the consequences of this?  Does it mean
> that every local user can interfere?

I guess so.  If line 79 of ptyget.c is correct, then there is no way
to handle ptys securely on your system.  I guess expect has the same
problem, but just doesn't tell you about it.

> bash-2.05a# ptybandage dsmadmc <<EOF >uit.txt
> > joskam
> > password
> > query session
> > query process
> > quit
> > EOF
> ptyget: warning: unable to allocate secure pty
> readline: warning: turning on OPOST for terminal

You might be able to silence the readline warning like this:
# ptybandage sh -c 'stty opost && exec dsmadmc'


paul