Ending a session when user exits a program.

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Jeremy C. Reed
Dátum:  
Tárgy: Ending a session when user exits a program.
On Tue, 25 Feb 2003, Kyle Faber wrote:

> Excellent. I haven't even tried it yet, but I need flags for the program to
> run. How do I have /etc/passwd accept white space between the commands.
> Will it just work.. for example....
>
>
> user:x:###:###::/home/user:/home/new.shell.program -1 -2 -fv


No. Write a script that exec's the "new.shell.program -1 -2 -fv".
Then use that script as the user's shell.

Jeremy C. Reed
http://bsd.reedmedia.net/