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.....
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.....
>
Re: exit logout shell
On Nov 12, 6:39 pm, Janis Papanagnou <Janis_Papanag... [at] 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..
Re: exit logout shell
pinoy2ser wrote:
> On Nov 12, 6:39 pm, Janis Papanagnou <Janis_Papanag... [at] 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