|
|
Runs As Root
Too bad this runs as root, not as the user who's logging in/out. I even setup a script to see if the ownership for console was changed (it's not) or if there's anything in the environment that tells you which user it is (there isn't).
Runs As Root
Hmm, not sure what the state of play is when this script is run (ie, is the user still logged in and about to be logged out?), but if he or she is still listed as logged in you should be able to use something as simple as
Runs As Root
You can run a command as the user who logged in using the bash variable $1.
Runs As Root
Thanks for pointing this out. Once you've got the username, it's pretty easy to setup what I'd really like: getting a shell script to run at login. You can make an AppleScript to do this, but I would rather that it happen silently and for all users who create the appropriate script in their home dir.
Runs As Root
echo $LOGNAME |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|