PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > exit logout shell
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

exit logout shell

Réponse
 
LinkBack Outils de la discussion
Vieux 12/11/2007, 21h02   #1
pinoy2ser
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut exit logout shell

Hello All,

How will i be able to make the option exit of a menu also logs
out the user from the system?

This way the user will not be able to access the shell prompt at
all...

Thanks n advance...
pinoy.....

  Réponse avec citation
Vieux 12/11/2007, 23h39   #2
Janis Papanagnou
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: exit logout shell

pinoy2ser wrote:
> Hello All,
>
> How will i be able to make the option exit of a menu also logs
> out the user from the system?
>
> This way the user will not be able to access the shell prompt at
> all...


Invoke the program that contains the menu on startup, e.g. in the users
file '$HOME/.profile', by calling 'exec menuprog' instead of 'menuprog'.

Or define in /etc/passwd the menu-program instead of the login-shell for
that user.

Janis

>
> Thanks n advance...
> pinoy.....
>

  Réponse avec citation
Vieux 14/11/2007, 15h06   #3
pinoy2ser
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: exit logout shell

On Nov 12, 6:39 pm, Janis Papanagnou <Janis_Papanag...@hotmail.com>
wrote:
> pinoy2ser wrote:
> > Hello All,

>
> > How will i be able to make the option exit of a menu also logs
> > out the user from the system?

>
> > This way the user will not be able to access the shell prompt at
> > all...

>
> Invoke the program that contains the menu on startup, e.g. in the users
> file '$HOME/.profile', by calling 'exec menuprog' instead of 'menuprog'.
>
> Or define in /etc/passwd the menu-program instead of the login-shell for
> that user.
>
> Janis
>
>
>
>
>
> > Thanks n advance...
> > pinoy.....- Hide quoted text -

>
> - Show quoted text -


thanks for the advice..

Actually i found a way around this task..

in the $HOME/.profile i inserted this...

exec programs

exit

I added the exit command so when the user picks the "exit" from the
menu it also logs them out completely out of the system..

  Réponse avec citation
Vieux 14/11/2007, 19h39   #4
Janis Papanagnou
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: exit logout shell

pinoy2ser wrote:
> On Nov 12, 6:39 pm, Janis Papanagnou <Janis_Papanag...@hotmail.com>
> wrote:
>
>>pinoy2ser wrote:
>>
>>>Hello All,

>>
>>> How will i be able to make the option exit of a menu also logs
>>>out the user from the system?

>>
>>>This way the user will not be able to access the shell prompt at
>>>all...

>>
>>Invoke the program that contains the menu on startup, e.g. in the users
>>file '$HOME/.profile', by calling 'exec menuprog' instead of 'menuprog'.
>>
>>Or define in /etc/passwd the menu-program instead of the login-shell for
>>that user.
>>
>>Janis
>>
>>
>>
>>
>>
>>
>>>Thanks n advance...
>>>pinoy.....- Hide quoted text -

>>
>>- Show quoted text -

>
>
> thanks for the advice..
>
> Actually i found a way around this task..
>
> in the $HOME/.profile i inserted this...
>
> exec programs
>
> exit
>
> I added the exit command so when the user picks the "exit" from the
> menu it also logs them out completely out of the system..
>


On my system the exit is not required if you _exec_ your menu-program.

Janis
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 09h34.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,71830 seconds with 12 queries