It is currently Tue, 17 May 2022 19:23:32 GMT

Author Message
 How do I logout?
We're trying to come up with a script at work that will let people login
via telnet and change their password.  No fuss, no muss.  Basically,
people will telnet it, the 'login sequence' (.bashrc) will run and prompt
the to change the password.  The snag we've hit, however, is we're unable
to get the script to logout.  We've tried 'exit', 'logout', and even the
nonexistant 'close'.  Nothing has worked.  Can anyone suggest an
idea?  Thanks.

 Mon, 13 Oct 2003 02:07:29 GMT   
 How do I logout?


Why would they want a Unix account if all they can do is change their

Try implementing it as a function defined in your profile.


function MyFunction

 Mon, 13 Oct 2003 02:41:55 GMT   
 How do I logout?
In our last episode, the evil Dr. Lacto had captured our hero,
  Static-Pulse <turbo...@UltraShell.Net>, who said:

exec the last command.

I never see the sudden curve until it's way too late.  --Jim Steinman/Meat Loaf

 Mon, 13 Oct 2003 04:10:42 GMT   
 How do I logout?
Do you mean that the user has to log out manually from the telnet session?
The script won't regain control until after the telnet session has ended and
at this time it is probably involving a manual exit or logout by the user.

In any case how are you getting passwd to be run?  Is that a part of the
login process on the machine you are loging in to or do the users have to run
it themselves?

 Mon, 13 Oct 2003 04:07:24 GMT   
 How do I logout?
If you want to make the user only have the ability to change their password when
they log in, you can change their shell to /usr/bin/passwd in the /etc/passwd


 Mon, 13 Oct 2003 18:28:02 GMT   
 How do I logout?
Add the following to their .bashrc file:

        passwd ; exit

 Thu, 16 Oct 2003 12:11:31 GMT   
   [ 6 post ] 

Similar Threads

1. Help!: script to logout after download done

2. logout without executing .logout

3. Getting "logout" when doing . .profile to get shell variables in .profile

4. Help! .logout not executed on logout!

5. alias checkbox not surviving logout

6. KDE halt when logout

7. logout problem with SuSE 7.2

8. how to disable the rlogin auto-logout feature?

9. KDE Sound only starts after logout and then in again

10. X session logout problem

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software