Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restricted Pine Shell

Status
Not open for further replies.

markstangroom

Technical User
Apr 25, 2001
96
GB
I am trying to set up some users so that when they log in they go straight into Pine and when they exit pine it logs them out again.

I've altered their shell to /usr/bin/pine this works to a point. My problem is they need to read GPG encrypted email using pgp4pine. When the shell is set to pine it's not running pgp4pine so that cannot read the encrypted email.

Can any one help.

Thanks [2thumbsup]

Mark Stangroom
 
You need to create a script to run what the user needs and make the last line of the script /usr/bin/pine and substitute that for the shell as before. You may want to add a line to disable ctrl-c while the script runs.
 
i've been trying to write a script but i still get the same problem, pine loads but pgp4pine doesn't.

My shell scripting skills are pretty basic.

Does anyone know of a good basic guide to shell scripting so i can figure out where I'm going wrong?

Thanks

Mark
 

How is this PGP thing normally run??

Cheers Henrik Morsing
IBM Certified AIX 4.3 Systems Administration
 
pgp4pine is an add-on to pine.

it is configured as a display filter within pine.

pine is started normally but when it detects a PGP header within an email it loads pgp4pine to display the message.

Thanks

Mark
 
It sounds like pgp4pine is running as an external program, is that right?

When an external program is run by pine, it will try to run it using the default shell. Since the shell is pine, it can't do it.

Here's another way to try. Set the default shell to a regular shell instead of pine (eg bash). In the login script, have it ignore ctrl-c, setup any environment vars and then run pine, then logout. It *should* sit in pine (still running the shell script) and not proceed to the logout until after they exit pine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top