Script to force WiFi release - Guest account

Hi.
I am desperately trying to find a script solution to solve a network problem i am having.
We have 4 public computers at a school "public area" (for students). We have created a
guest account that works satisfactory except for one thing, the wifi stays logged on
even if the account is logged out.
Each student has to log on using a web service in order to gain access to Internet.
This works great but when the student logs out of the guest account and a new student
opens the same account the Internet is still available using the first users id.
Does any one have a soulution for this ?
/Martin

Apple allows you to write a logout hook.
See:
http://chris-mccafferty.blogspot.com/2010/12/mac-os-x-login-and-logout-scripts.h tml
also:
http://www.macos.utah.edu/documentation/programming_and_scripting/login_and_logo ut_scripts/mainColumnParagraphs/00/document/20030219-Scripts.pdf

Similar Messages

  • How do i force a guest account to Auto log off after being inactive for a period of time?

    I have a 2010 21" iMac running OS X Snow Leopard (10.6.8) in a hotel's guest lounge. I want to have it log off of the guest account after being inactive for 5 mins so that it clears the session info if the last person who used it did not log off when they were done (***this happens very often***).
    I tried using the "System Preferences > Security> Log off when inactive for X minutes" option but this brings up the "Delete files and log off" dialogue which unless someone makes a selection just stays there and doesn't timeout, essentially stopping the logoff process.
    How can i bypass that dialogue and force the system to log off the Guest User to avoid any issues with other guest seeing info from the previous user?

    Hi daniel,
    I don't believe it's possible to do what you want, unless someone could write an Applescript for it. I suspect the best route for now is the old fashioned way, paper and marker, warning guests to log off or their info will be public.

  • Guest Account Login forced Lion Installation

    I wanted to let me friend log into my MBA 2010's Guest account. Now I am forced into Disk Utilities after every restart, I can't log back in.
    WHat can I do?

    More information please.
    1. What did you do to let your friend log into the Guest account?
    2. What do you mean 'forced into Disk Utilities after every restart'? Do you mean the OS boots up into the Recovery partition? What is the context in which the DU window appears?

  • With the latest OS X, released today (12 October) are you finding that 1, you cannot get rid of your guest account, and 2, the computer has slowed down?

    I feel that since updating to 10.7.2, my MBP 15" feels a little slower, especially in the login screen, and I have this "Guest User" on my login screen, and I dont want it there!!! How can I get rid of it, and is anyone else having the same problems? Thanks!

    Hi thanks for the answer... Apple have told me that the guest account can be deactivated, but not removed from the login screen and the lagged Bootup/Shutdown is due to the iCloud services coming online and the computer synching with iCloud!
    Just wanted to share this with you if it helps.

  • ISE purge unused guest accounts

    My customer has ISE running 1.2.0 for its guest service. Today, they ask me about a way to purge guest accounts that never were used.
    I know the 1.2 user guide stand this:
    You can force expired guest user accounts to purge immediately without waiting for a scheduled purge. If a guest account created using FromFirstLogin is not used (user never logs in), it does not expire and is not purged. You must manually delete it in the Sponsor portal.
    My question is about release 1.3, the manual does not indicate the same thing, so I like to know if the unused accounts can be purged in some easy way, or they can be included in the regular purge process.
    Regards.

    So, Does the 1.3 release has a new parameter to set purge unused accounts after some days? In that case, which parameter is it?

  • Automate Guest account creation?

    I need to create multiple users for guest wifi (+200) using the Lobby Admin account, is there a way to either create a template, csv file, or any other way to automate this and import it into the WLC as opposed to creating each account individually?

    I don't really know of any way to script it, but using Microsoft Excel with your CSV files, you could quickly create users via the CLI.
    1) SSH into your WLC.
    2) Enter: show wlan summary
    3) Find the WLAN ID of your guest WLAN
    4) Type 'config' to get into config mode.
    5) Prep these commands using excel, one line for each user, fill in the < > with your CSV columns.
    Command:
    netuser add wlan userType guest lifetime description ""
    Example:
    (Cisco Controller) config>netuser add Jimbo 100%Cisco wlan 2 userType guest lifetime 0 description "Jimbo's Guest Account"
    Once you have all your single line commands created in Excel, CLI into your WLC and copy all of your lines of new accounts and simply paste once :) It will quickly create all of your accounts.
    netuser add George 100%Cisco wlan 2 userType guest lifetime 0 description "Guest Account 1"
    netuser add Henry 100%Cisco wlan 2 userType guest lifetime 0 description "Guest Account 2"
    netuser add Suzy 100%Cisco wlan 2 userType guest lifetime 0 description "Guest Account 3"
    It should create them all in a snap.
    Good Luck,
    Lucas

  • My MacBook Pro (mid 2010) won't startup correctly in my admin account, but works fine if I use the guest account...

    My MacBook Pro (mid-2010) suddenly stopped working when I was overseas, but I managed to fix it when I returned back to the States after I reformatted and erased the disk, then installed Yosemite. I lost most of my files but didn't really care, though I noticed that some pictures from iPhoto had survived and were in the Trash folder.
    I thought I could copy/paste them back into iPhoto, but it wouldn't let me since they were still in the trash. I started getting an error message for EACH PICTURE saying it couldn't be copied because it was in the trash, and when I realized that I'd have to click "ok" 644 times (once for each picture), I tried to restart, then shut down, and eventually forced a shut down by holding down the power button. This is where the problem started...
    After trying to startup again, I was able to login to my admin account, and the desktop image would load, but I'd get the spinning rainbow wheel and the computer would remain frozen like that from then on. I tried to repair the disk (there was nothing wrong), and even re-installed the operating system again, but still the problem persists. BUT, if I login with my guest account, everything works fine.
    I'm guessing it has something to do with it somehow being frozen on those error messages for those 600+ pictures, but I have no idea how to fix/unfreeze it. Any tips or suggestions?

    mozak wrote:
    Can the use of SATA3 instead of SATA2 hdd lead to some issues with my macbook?
    I can try to find and buy new SATA2 sdd hdd but they are expensive and I'm not sure it will fix the restarting issue.
    SATA3 is backwards compatible with SATA2.  That is not likely to be your problem.
    Based on what you have done, I suggest a reinstall of the OSX.
    Ciao.

  • How can I recover files created in the guest account?

    I set up a guest account for the kids to use, and my wife then used my Mac to type up a word document (for over 3 hours) and saved it at the end of the evening. The next day she returned, and it had gone! I now read that the "Guest account" deletes all files when the computer is switched off (what idiot decided to make this deletion so immediate and so permanent, I am perplexed, why not at least put them in a temporary folder?).
    This document must still be there, surely, just "invisible". Please please, how can I get it back without parting with hundreds of pounds for file recovery document, it is just one file from yesterday!
    (I switched from PCs to Mac's when we bought a new Vista laptop at work and couldn't find the "file" and "open" commands on a drop-down menu top-left of screen - the Mac-fans at work promised me that Macs were "so intuitive" and "so much better than a PC". They lied. Macs and PCs are both designed by geeky-types who want more and more complex systems, when all I want is a computer that does what I ask without too much clever stuff (like deleting 3 hours of work because my wife happened to be in the wrong account). I have wasted as long trying to find said file....I'm so depressed.

    Paul -
    I'm sorry you've lost files, but when you set up an account as Guest, there's a message that clearly states "When a guest user logs out, all information and files in the guest account's home folder are deleted". If you want an account where files are retained, you should create an Admin or Standard type.
    You will need to use data recovery techniques to see if your file can be recovered. The more that you use your computer, the greater the risk that the file will be overwritten. You can contact a professional data recovery service such as DriveSavers (which will be expensive, but you can judge the value of the file) or try something like Data Rescue. The latter has a demo which you can install to determine if your file can be recovered, and then, on purchase, you can actually recover the file.
    Good luck!
    Matt

  • How can I set up password-protected Guest account

    Hi everyone
    I need to set up password-protected guest account. The aim is to get:
    a) an account with password. So only authorized person can use it.
    b) all changes in this account should be overwritten at log-off, just like Guest account behaves.
    So I need either to find a way to set password for Guest, either create a 'normal' account and somehow automate it self-cleaning at logoff.
    I tried to run terminal and use
    sudo su
    passwd Guest
    [entering password 123]
    Afterwards I can't login as Guest at all. System doesn't ask for a password, nor logs me in.
    Thx for any help

    This question was asked 2 years ago and still hasn't been answered.
    If there is not a way to add a password to guest account, what is the script that get's executed when the Guest account log's off? I can execute that on an account that I create called 'localGuest' or something like that.
    I have an enterprising member of my family who has figured out that my computer is exempt from the network curfew and they are using Guest to bypass that. I have since disabled guest; however, I do like using the fresh guest environment to test software development.

  • Is there any way to add a password to the guest account?

    We use a computer reservation system for public computers in my library.  I would love to have the functionality of the guest account so the account is wiped after every log out. 
    The problem with our reservation system is, it requires an account with a password for the system to work properly.  So for the past year, I have been running a standard user account with 3rd party software to lock out the ability to permently change anything on the system.  The problem with this is, it retains any changes users make until the system is restarted, not logged out.  So by the end of a 12 hour day the machine can be pretty screwed up if it hasn't been restarted at some point.
    The Guest Account is exactly what I want, but if I can't find a way to add a password to it there is no way for my reservation system to use it.

    You could write a shell script to do that and run it on logout via a logout hook:
    http://seeskill.wordpress.com/2012/02/23/mac-os-x-login-and-logout-scripts-demys tified/
    https://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPSyste mStartup/Chapters/CustomLogin.html#//apple_ref/doc/uid/10000172i-SW10-BAJCGEGG
    I can't be of much help writing such a script. Apple also cautions against such scripts since due to the fact that they run as root they're a security risk. Apple recommends using launchd, something which I have no experience with, but I found a presentation on the basics here that might help:
    http://www.macos.utah.edu/documentation/operating_systems/launchd.html
    I don't know of any other way to remove user documents and settings automatically on logout.
    Regards.

  • Creating Guest Account Crashes System Preferences

    I recently replaced an old mac mini G4 with the newest low end mac mini, the 1.83ghz core 2 duo with combo drive model.
    I restored everything to the new machine with my time machine backup. Unfortunately, the guest account didn't get restored, and when I try to enable the guest account, System preferences crashes, so in order to do anything I have to force quit system prefs. After force quitting system prefs, I am unable to open applications using the dock. I have to reboot the computer in order to get anything to work again, but somehow enabling the guest account just wont work, and always crashes.
    What can I do to fix this?

    It happened to me also, on my imac and my MacBook Air.
    It seems that user account migration somehow confuses the "guest user" machinery, which totally trashes securityd which dies of sudden death and from then on nothing works on the computer.
    The solution is to do the following in System Preferences:
    0. Your system guest account must be disabled (it already is if you have the described symptoms).
    1. Create new standard account with name "guest" and short name "guest".
    IMPORTANT: short name must be "guest" - OS will suggest "guest1", but you must edit that into "guest".
    2. Enable system guest account in System Preferences (check the "Allow guests to log into this computer" switch). It will work now that "guest" name is taken.
    This action will create user account with short name "guest1" with all the properties of guest (clean-up after logout etc.).
    3. Completely delete standard user "guest", which you created in step 1 (check "delete all data and folder now").
    4. Disable system guest account (uncheck the switch).
    5. Right-click on system guest account icon and choose "Advanced" or whatever (there is only one menu item anyway) and change short name from "guest1" to "guest".
    6. Enable system guest account.
    Voila. You now have working guest account (well, I have it, and hopefully you will, too)...
    P.S. I am not sure whether you need to log-in/out/restart between steps. I remember I did some of that dance, but probably it is not necessary...

  • Prime 1.3 and WLC 7.6 Can I push guest accounts?

    Hi all
    My Customer needs to update the WLC to 7.6 (from 7.4) due to 3700 APs, but does not use the ac or other new features (yet).
    He has a Prime 1.3 update 4, where the guest Account are created.
    Can he, after the WLC Upgrade  to 7.6.130.0 still see the WLC from Prime 1.3 and Push guest accounts to the WLC?
    The migration to PI 2.1 will be planned.
    Thanks
    Willem

    Cisco Prime 1.3 doesn't support 7.6 please check the compatibility matrix
    Table 4 Cisco Prime Infrastructure and Cisco Wireless Release Compatibility Matrix
    Cisco Prime Infrastructure
    Cisco WLC
    Cisco MSE
    ISE
    Remarks
    Update 4 for 1.3.0.20
    Update 1 for 1.3.0.20
    1.3.0.20
    7.4.121.0
    7.4.110.0
    7.4.100.60
    7.4.100.0
    7.3.112.0
    7.3.101.0
    7.2.115.2
    7.2.111.3
    7.2.110.0
    7.2.103.0
    7.0.250.0
    7.0.240.0
    7.0.235.3
    7.0.235.0
    7.0.230.0
    7.1.91.0
    7.0.220.0
    7.0.116.0
    7.0.98.218
    7.0.98.0
    7.4.121.0
    7.4.110.0
    7.4.100.0
    7.3.101.0
    7.2.110.0
    7.2.103.0
    7.0.240.0
    7.0.230.0
    7.0.220.0
    7.0.201.204
    7.0.112.0
    7.0.105.0
    1.0
    1.1
    1.2

  • Can't use guest account in safe mode

    i have a late 2008 unibody macbook 2.4.
    my wife has a late 2007 imac.
    when i apply update i boot into safe mode and update from there.
    on my wife's computer i can select the guest account and update from there.
    on my macbook however, when i try to enter the guest account the display 'shakes and quakes' and doesn't allow me to use the guest accounts.
    we are currently 'up-to-date' with updates (10.5.7 etc).
    we have zero problems in general.
    the settings appear to be the same on both computers (as regards accounts).
    anyone have a clue, why i can use guest on the imac, but not on the macbook.
    thanks a bunch.

    excellent points greg, but not applicable here.
    there are 3 accounts guest, me, admin.
    the guest is 'factory stock', the admin is 'factory stock' w/pass, and mine is mine.
    as i stated i can use guest in safe mode on my wife's imac, which is configured identically.
    there are zero passwords on our guest accounts.
    additonally, all permissions on both computers 'check-out' ok per disk utility.
    ps....i update only in safe mode so that nothing will interfer/hinder a proper update. we always download and install directly rather than using the 'automatic' update via software update.

  • How to create non-broadcast guest account?

    New Time Capsule 09...
    I have a closed or non-broadcasted account for my master WIFI private account. After creating a Guest account for my employees its SSID for the "Guest" is being broadcasted. I do I make the Guest account from being broadcast like my master account. I'm thinking this feature is not included for Guest?
    Sorry if this question is already poste, don't flame on me:)
    thanks!

    Would like this as an option for the guest account sometime in a firmware update too - as its for friends etc - you'll just tell them the SSID to connect to and it would work rather than broadcasting it. Especially as it is useful for connecting to the Nintendo DS kids bring round - but with that you have to broadcast it with no security!

  • ISE Guest Accounting Identity

    Hello Guys,
    i have an ISE 1.2 with Patch 9 installed.
    Now i want to have a correlated View of Guest User Name <-> IP Address
    When i go under Operations -> Reports -> Guest Accouting i just get the MAC Adress as Identity Value. Is there any configuration i can made to show the GuestUser as Identity ?
    I added a picture of my corrent output
    Thanks
    Philip

    Guest user Identity is getting updated with Mac addr. instead identity
    CSCuh14138
    Description
    Symptom:
    Guest user Identity is getting updated with Mac. address instead of identity in Guest accounting reports.
    Conditions:
    issue is seen in Guest accounting reports
    Workaround:
    no work around
    Known Affected Releases:
    (4)
    1.2(0.852)
    1.3(0.566)
    1.3(0.620)
    1.2(0.899)

Maybe you are looking for