Terminal Command to Log Out User

I have Fast User Switching enabled. I would like to log users out that forgot to log out. What are the Terminal commands to log out someone named Alice who is a Standard user in OS X.3.9? I'm getting tired of having to restart to shut down the users account. Will the commands be the same for an Administrators account?
Thanks for your help,
G4 Quicksilver Dual 1 GHz, 1.5 GB RAM, Sonnet ATA133 card, Maxtor ATA133 drives   Mac OS X (10.3.9)   B+W G3 450 MHz, OS 9.2.2, 1 GB RAM

If you're the Admin, then you should be able to use Terminal as root to log someone out like this:
sudo killall -u [username]
This should kill all processes in that user account, and it may log them out also (I can't test this on a single user machine). If it doesn't, you can use:
sudo shutdown now
which will log out everyone and shutdown the system to single-user mode for the root/Admin user.
Hope this helps,
Mulder
If my answer helped solve your problem, please consider awarding some points. Why Reward Points?
iMac G4 700Mhz   Mac OS X (10.3.9)  

Similar Messages

  • Terminal command to login a user

    I'm doing some work on a lab, and it part of the process involves logging out the user. To complete the installation, I need to log back in as the user. ARD let's let send a command to log out a user, but is there a terminal command to login a user? I've tried using login -f username, but that didn't work.

    To login as administrator:hello
    I use:
    osascript <<EOF
    tell application "System Events"
    keystroke "administrator"
    keystroke tab
    delay 0.5
    keystroke "hello"
    delay 0.5
    keystroke return
    keystroke return
    end tell
    EOF
    You can save it as a task and double-click and drag in the computers and run when you want to do it.

  • Adobe Flash Player 15.0.0.16 on Win 8.1 64bit ES logs out user at the end of Youtube film

    Dear Players.
    My Adobe Flash Player 15.0.0.167 on Win 8.1 64bit ES (Spanish) in IE11 logs out user at the end of Youtube film. In Event viewer there is apparently no error information. I use Fujitsu Siemens Lifebook S6410, where on Windows Vista 32 bit and IE9 with current Flash there was no problem on Youtube films.
    I have a feeling that initially after installing Windows 8 and 8.1 the films of Youtube finished correctly showing a mosaic of proposed next films. Now when the film ends, and the mosaic of the proposals should appear, the user is logged out.
    I did all the Adobe recommendations, and it does not help. Yet the problem is only with Youtube for the moment. All other Flash content on other pages shows ok.
    Any suggested solution?
    Kind regards
    Marcin Balcerzyk, Seville, Spain.

    Hello,
    Microsoft has been changing how they identify IE in the UserAgent string in IE11 (and in more recent versions of IE10). This has been occurring over various releases and it's not new to the latest updates.  As you see, sometimes they identify as Netscape/Mozilla instead of IE.  You can Google 'Microsoft User-agent string' the search will return various MSDN articles on this topic.  Long story short, most websites use OS/browser version in the user-agent string to display content for that particular combination, however, Microsoft wants content developers to use feature detection, not browser detection.  Compatibility view will work because Microsoft will change the user-agent string properties to something prior to the changes they've made.  By doing this, Microsoft leaves it up to the content developer to update their site.  Some have, some have not.
    Maria

  • Urjent:Partition error:Logging out user [Admin], active for 0 minutes

    Hi all,
    Iam using 11
    Wen iam creating Transaparent partition its validating successfully , but wen iam saving it its giving error , partition creation failed
    Error: 1051037: Logging out user [Admin], active for 0 minutes
    and it s giving error reading ddb file
    i tried with maxl also but it continiously running for 30 mints , its horrible , actually it takes 2 mints
    how can i resolve this issue, any help would be appriciated
    thanks
    Edited by: user8815661 on 26 avr. 2010 05:18
    Edited by: user8815661 on 27 avr. 2010 04:00
    Edited by: user8815661 on 3 mai 2010 04:18

    Sounds like there is some sort of ddb file corruption. There are many causes, but the quickest fix I have found is usually a file-based deletion of the ddb file on both the source and target side of this partition. The attempt to create a partition on this database will cause a new ddb file to be created. Of course, this is dangerous. You can't have any other partitions on either the source or target side...or they will be deleted by this step. But the only purpose of the ddb file is for partition definitions, and it exists on both source and target.
    I've found this happens if one side of a partition (one of the ddbs from source or target) gets the file deleted, or communication is down between the source database server and target database server.

  • Logging out Users authenticated thru a Directory service froma web app

    I would like to know how to log out users authenticated thru a Glassfish web server to a Directory service can be logged out and their associated session ended on the web app. My application logs in users successfully but it been problematic logging them out. each time i use the Session.Invalidate method and i navigate backward with the browser button, a new session is created and the getPrincipalUser is still available to the page. I would appreciate contributions. thxs.

    it says address already in use.
    another process is using port 7101: java.net.BindException: Address already in use: JVM_Bind.> go to taks manager.. kill any java.exe process and try again.. it should work..

  • Log out users

    Hi,
    Il would like to log out users by Abap program.
    I find an function TH_DELETE_USER. But sometimes, it takes a long time to really log out, or more it does not work .....
    do you have another function to do this ?
    Thanks
    Vince

    Even if you want to do this in a BW you should post this in the ABAP section. But I did not find any other services that could help you on this topic. Maybe one of the ABAP/administration people in the ABAP forum can help you here.
    Best regards
       Dirk

  • Essbase Maxl - Log out users

    Hello All,
    we have the following Maxl Script that is supposed to log out all users and prepare for the new load
    alter system logout session all;
    however the commande does seem to be working. If the user is already logded in it fails to log them out and terminate thier session.
    Any idea why is this happening? any suggestion on how to kill all session and logout all users

    Correction i meant
    : however the command does NOT seem to be working
    Hello All,
    we have the following Maxl Script that is supposed to log out all users and prepare for the new load
    alter system logout session all;
    however the command does NOT seem to be working. If the user is already logded in it fails to log them out and terminate thier session.
    Any idea why is this happening? any suggestion on how to kill all sessions and logout all users

  • Log out user after an inactive period

    I am using DW CS3 and a MySQL database.
    Is there any way I can automatically log out a user if they have been inactive for a period of time?
    The reason I am asking, is that I have been testing my latest site and even if I close all windows in a browser (not quitting the browser) and then go to history, I can still get to protected pages. This could maybe a potential problem if users never quit their browser, they could still be logged in after days of inactivity.
    This is about my 5th site I have created using ADDT. The more I use the more I find it capable of. But this has me stumped.
    Any help would be appreciated.
    PM

    Hi Paul,
    checking a user´s inactivity could mean checking if his/her session still runs of if it´s expired by now -- whenever you apply a "Restrict access to Page" behaviour to whatever page, this behaviour will not just check things like user levels etc, but also if the session is still running.
    As this behaviour also cares for a redirection to your login page, I think you should apply this to every page which needs this kind of protection.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Logging out users

    We have set up individual users on our iMac, since I have installed Snow Leopard I find it does not go to the login screen when a user logs out, infact I have to manual shut down my Mac and restart it to get back in. It seems to hang up. any suggestions??

    We have also set up individual accounts on our iMac, with parental controls on some. Logging out takes over 1 minute, with transition to screensaver followed by a new login screen more than 1 minute later. Did not happen before upgrading to SL. Any suggestions other than reloading the OS?

  • Airtunes Stops, Mac Logs Out User

    When using Airtunes (over Airport Extreme to Airport Express then through stereo system), everything works great for 45 minutes or an hour, and then suddenly stops. When I go to the Mac to see what's happening, I've been logged out automatically.
    I would normally think that it's because the computer is set to go to sleep after X minutes of inactivity, except that (1) it's not really inactive as long as music is playing, and (2) any other time the computer goes to sleep due to inactivity, the user is not logged out.
    Is this in fact due to the sleep setting, or is something else going on? Thanks.

    When using Airtunes (over Airport Extreme to Airport Express then through stereo system), everything works great for 45 minutes or an hour, and then suddenly stops. When I go to the Mac to see what's happening, I've been logged out automatically.
    I would normally think that it's because the computer is set to go to sleep after X minutes of inactivity, except that (1) it's not really inactive as long as music is playing, and (2) any other time the computer goes to sleep due to inactivity, the user is not logged out.
    Is this in fact due to the sleep setting, or is something else going on? Thanks.

  • How to disable Option-Shift-Command-Q (Log Out immediately)

    Does anybody know, how I can disable the shortcut Option-Shift-Command-Q, which Log me out immeditely. That’s because I sometimes hit this combination accidently while trying to press Option-Shift-Command-A or Option-Shift-Q (for the French quotation mark »).
    I have tried to assign a new shortcut for the menu item using the system preference panel, but this doesn’t work.
    I hope, someone can help me with this because it drives me crazy ...
    Thnaks!

    Thanks for the suggestion but that didn't help. I don't have a keyboard & mouse pane I only have keyboard or mouse to choose from, so I go to keyboard and there is nothing that looks like that screen. But I did find something that fixed my Command/Option/Control buttons from being locked, I clicked on Keyboard & then Modifier Keys, and it let me select no action for each of those, BUT it doesn't have the Shift option.
    So now my problem is, when I press Shift twice in a row, it makes it lock. It's as if I'm holding down Shift all the time and I have to press Shift again to unlock it. I want to disable this. Does anyone have any ideas how to do that? I think I explained it wrong in my 1st post I thought I'd explain again (: But now I figured out it's called Modifier Keys soo I feel like I'm close to finding the answer. lol (:

  • Gracefully logging out user from the session

    Hi,
              I have seen this issue coming up in my current project and last project. If there is a certain window in which the server is scheduled to be bounced as part of regular maintance, what is the best way of gracefully shutting down the existing users and not letting new user come in.
              My thinking is more on the lines of defining a filter. This filter once knows that it is time to bring the server down, will not let new user come in and will turn on a flag that every jsps check to see whether to display the message(that server is going to come down in a litte while) or not
              Any ideas, feedback??

    Hi NIgel,
    Thanks for your response. I've made those changes and I think it has made an improvement, but I'm still experiencing the same issue.
    Something I have noticed is that each time I log back into the room, there's an extra line of
    #FMSConnector# Mon Jun 14 19:42:16 GMT+0100 2010 mainNetStatusHandler: NetStream.Connect.Success
    is added to the debug trace in the dev environment. So on the second time I enter, it prints the line 3 times, and on the third entry, its printed 4 times etc....
    I assume this is not supposed to happen, and usually by the 5th login, one of the clients has crashed. I seems logical to me that all the NetStreams are not being closed.
    Does this point to something I'm doing wrong? Is there anyway to get more description from the LCCS SDK code?
    Thanks again,
    Mark

  • Logging out all users

    To perform a back-up I want to log out all users. Currently I use the 'unloadapp' ESSCMD, but this does not seem to log out users who are currently retrieving data. As a result my back-up fails.Does the 'logoutallusers' command log of all users (active, inactive)?Regards,JG

    Howdy!We do this via script for each application using the following essmsh syntax:"alter application appname disable connects;"This works great. We then re-establish any connections that we killed with the following statement:"alter application appname enable connects;"Hope this helps!JR

  • Log Out Behavior - Users appear to stay logged in

    I cannot get a user to logout using the Log Out User
    behavior. I created a restricted page which displays the user's
    name once logged in, however when the user logs out and a different
    user id is used, the restricted page returns the first user's id. I
    cannot get the first user cleared. Thought it might be cookies but
    not sure. I'm using DW CS4's built in behaviors (no hand coding),
    MySQL 5.1.11, and PHP 5.2.9-1. Any ideas

    David I'll try to clarify.
    I've built 1 test MySql database, and 3 test pages
    (login.php, login_failure.php, and authorized.php).
    database: 6 fields (recordID, userFirstName, userLastName,
    userID, userPW, userAccess). userAccess values were 1 and 0, now
    are admin and user. admin is the allowed value in this case.
    Records in MySql InnoDB:
    recordID: 1 (Primary Key)
    userFirstName: User1
    userLastName: User1 Last
    userID: user1 (Indexed)
    userPW: user
    userAccess: admin
    recordID: 2 (Primary Key)
    userFirstName: User2
    userLastName: User2 Last
    userID: user2 (Indexed)
    userPW: user
    userAccess: admin
    login.php: Has one behavior, Log In User with Restrict access
    based on User, password and access level which is derived from
    userAccess field in database. If successful, user goes to
    authorized.php, if not, user goes to login_failure.php.
    login_failure.php: No SB, simply presents user with message
    that they are not authorized for access and a link to return to
    login.php.
    authorized.php: 4 SBs. Restrict Access to Page(), Recordset
    (Recordset1), Dynamic Text (Recordset1.userFirstName), and Log Out
    User. This page allows userAccess value "admin" from database and
    presents user with text Welcome (Recordset1.userFirstName). There
    is also the Log Out User link to log out.
    Steps to recreate:
    Set both userIDs userAccess to "admin" to allow access to
    authorized.php
    Login to login.php using userID "user1" and password "user"
    Take me to authorized.php, with "Welcome User1" displayed
    Click Logout
    Login to login.php using userID "user2" and password "user"
    Take me to authorized.php, with "Welcome User1" displayed
    (note: supposed to be Welcome User2)
    Click Logout
    Change userAccess for userID "user1" to something other than
    "admin"
    Login to login.php using userID "user1" and password "user"
    Takes me to login_failure.php as expected
    Return to login.php via link
    Login to login.php using userID "user2" and password "user"
    (which is now the only auth user)
    Take me to authorized.php, with "Welcome User1" displayed
    (note: supposed to be Welcome User2)
    Click Logout
    The security part works as seen above. I just don't
    understand why the authorization.php page always shows the first
    record in the DB. That's why I was assuming that the Log Out User
    function was not working.
    Steve

  • Logging out portal user programitically? (JSP)

    I am trying to log out users using a JSP. Here is a snippet of
    code calling the wwsec_app_priv package. I am not having any
    luck with this. Any suggestions?
    Thanks,
    Tom Henricksen
    CallableStatement logout = null;
    logout = con.prepareCall ("begin if wwctx_api.is_logged_on
    then wwsec_app_priv.logout(p_done_url=>?); end if; end;");
    logout.setString(1,logout_url);
    logout.execute();
    logout.close();

    The syntax you have works within our current web page (PSP
    page), but we have never tried it directly with PL/SQL.
    One thing you might want to look at is that "normally" (from a
    web page) the URL is called via the portal30 DAD:
    /pls/portal30/PORTAL30.wwsec_app_priv.logout?p_done_url=
    http%3A%2F%wherever.com
    Could it be that this works if PORTAL30 is running the package,
    and not the actual user? Just a wag. --Kate                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Canon 7D Mark II cannot open raw files in cloud software

    Hello, I just upgraded my camera from a Canon 7D to a Canon 7D mark II but now I can not longer open raw files.  I am using the creative cloud package.  Does anyone know what I should do.  I thought since it is the cloud version, it is always the mos

  • Hide elements depending on other elements value

    how can I hide elements (for example af:commandButton) when I change the value of another element (for example af:selectOneChoice)

  • Searching for OG.pll ?

    I'd like to integrate a graphic to a form so i need this library. thanks for giving me a link to download the OG.PLL library. Edited by: user10778445 on 18 févr. 2010 07:07

  • HOW TO DELETE INFOSET QUERY

    HI ALL, I created zqm infoset and using 3 tables. now i want to delete 1 teble from them. when i am deleting it getiing mess. ""  Field QAVE-PRUEFLOS is used in queries Message no. AQ606 Diagnosis You attempted to delete a field used in queries from

  • I sometimes can't see the images posted on the forum

    Sometimes the images aren't displayed even though I have the right option set in my forum profile. Most of the images posted on the forum work, but some seem to be blocked. For example, the images from https://bbs.archlinux.org/viewtopic.php - 9#p115