How do I find the unix system is in single user mode  ?

How do I find the unix system is in single user mode ?
thanks
siva

Please run 'who -r', and then check the man page of 'init' for interpreting the run level output.

Similar Messages

  • How do I find the operating system of my ipad?

    How do I find the operating system of my ipad and update it to the latest system?

    you can see what version you are on by looking at settings, general, about.  on the same general screen in settings if you are on 5.0 or later, you will see an update software button.  if you are on an older version, you will need to plug into a computer w i tunes.

  • BASED ON QUEUE NAME HOW CAN WE FIND THE SENDER SYSTEM IN ECC

    Based on queue name how to identify the sender system
    the issue is
    Messages are  are coming from pi to ecc , check below queues. These are incoming queues
    to Ecc from PI. We are trying to find what these queues are. Sometimes these
    are failing and we are not able to process,
    Based on the above information we need to find  the sender system from where it is coming.
    Regards
    MADHU

    Hi srinivas- Thanks for your reply and there is no issue on pi side after reaching to ecc the entries got stucking in smq2 of  ecc system now the target system wants to know on which sender system these messges are coming we are not finding sender system detials from smq2 of ecc system .
    Regards
    Madhus

  • Finding the smallest letter in a single alphanumeric string

    How do I find the smallest letter in a single alphanumeric input?
    I already wrote and successfully tested the code that takes an alphanumeric string as input, separates the number from the alphabet, and creates a new alphabetic string. However, I'm unsuccesful in writting the code to find the smallest letter within the alphabetic string. I am almost certain that the easy answer is Arrays.sort, but I unsuccesfully tried writing the code to place the alphabetic string into an array. I researched compareTo, but I do not have another object to compare?! Any suggetsions?

    Ahh flaimbait - I'm sure I'll get criticized for this... but - while we are talking about time-to-market, etc...:
    The most important issue in development is to make sure that you understand the project requirements. The requirements in this situation were:
    Find the smallest character in a string.
    Given that, then any developer that goes through the trouble of looking up the sort APIs, etc... is not helping themselves - all they really needed to do was to write one line of code (as xxxx graciously posted):
    for (int x=0; x<foo.length(); x++) if (foo.charAt(i)<low) low=foo.charAt(x);I absolutely guarantee that any Java programmer could write the above faster than they could figure out how to split a string appart by characters, look up the arraysort API, etc...
    The arraysort functions are EXTREMELY efficient, and I would never suggest that someone re-implement them. The point here is that just because you've got a wrecking ball available, you can still use a hammer to drive a nail.

  • HT1492 Does anyone knows how to change the keyboard layout in single user mode, please ?

    Hello,
    The question is in the title.
    Thank you.

    The only way you might do it is use one of the Unix editors to edit the plist file it gets the settings from once it boots in the GUI mode.  'vi' is present in all Macs, and you might have pico, nano, emacs, or ed depending on what was installed. The keyboard layout while in single user mode itself I think is generic to where the Mac was bought and what keyboard was ordered with it, when it came from the store.  Since you posted in the 10.3 or earlier forum, chances are if this has changed, few people would know for certain.  If you have a newer Mac, say 2006 or later, you should really post in the correct forum:
    http://discussions.apple.com/docs/DOC-2463

  • Resetting the Admin password in single user mode

    Ok, my friend bought an old Imac from someone she went to school with with OS 10.4.2 on it. It works fine except that she can not install any programs because there is an admin password that she does not know. She asked the person she bought it from, he says he doesn't even remember setting a password. Normaly with this issue id just pop in the install disk and reset it from there, except neither of them have the install disk, and my install disk is to current for the machine. Does anyone know how I can reset the admin acount using single user mode commands? I can do it on my Mac Book pro but it doesn't seem to work the same way on 10.4. Please help!
    EDIT: It is a Power PC G3 if that helps.
    Message was edited by: CartooNxHerO

    CartooNxHerO wrote:
    Ok, so I used the advice from the third link you gave me but i'm still in single user mode trying to figure out how to delete the users home folders.
    Message was edited by: CartooNxHerO
    You do not need to delete "the users home folders". Nor do you need to delete the netinfo database. Here are two proceedures:
    Change Password
    Mac OS X:
    Changing or resetting an account password via GUI:
    Resetting a user's password
    Resetting the original administrator account password
    http://docs.info.apple.com/article.html?artnum=106156
    You do not have a CD/DVD
    Changing password from single user mode:
    You can also change the administrator's password from single user mode or create a new administrator account.
    You need to get into single use mode for steps one and two that are listed below.
    This page will tell you how to get into single user mode.
    http://support.apple.com/kb/HT1492
    Basically, you hold down the command-s key then powering on your machine. The command key has a little apple symbol on the lower left. It is between the alt/option key and the space bar. On a PC keyboard, it will be the windows key, I think.
    1) You can change the password on an account. ( Do you know Unix. You are in a Unix single user console. ) The setup commands you need should be listed on the screen. For Mac OS 10.4.11, the commands are:
    # Type the follow two instructions to access the startup disk in read/write:
    /sbin/fsck -fy
    /sbin/mount -uw /
    # Start up some utility processes that are needed.
    sh /etc/rc
    # You will probably need to press the return key once the system stops typing.
    # To find out the users on the system type, use the list command. The l is a lower case L:
    ls /Users
    # One of these accounts will be the administrator.
    # Pick one of the users which I'll call a-user-name and type it in this command:
    passwd a-user-name
    # and enter the new user password. You need six characters.
    # You will need to enter your password twice. Your typing will not show up on the screen just
    # press enter when you complete the typing.
    # For cryptic information on these commands try:
    man ls
    man passwd
    The root account isn't enabled by default. I am not sure if changing the password on root will enable it.
    2) Get the Mac to set up an additional administrative account. You can then change the password on your old account.
    Start with your computer power off. Hold down command-s. Power on your computer.
    Type in the following:
    The first two commands will depend on your release of Mac OS X. Look at what is typed out in the console to determine the exact format.
    # Type the follow two instructions to access the startup disk in read/write. Press return after each command.
    /sbin/fsck -fy
    /sbin/mount -uw /
    cd /var/db
    pwd
    #List all files. The l is a lower case L.
    ls -a
    #The move command acts as a rename command in this format.
    mv -i .applesetupdone .applesetupdone.old
    reboot
    Once you've done that the computer reboots and it's like the first time you used the machine. Your old accounts are all safe. From there you just change all other account passwords in the account preferences!!
    Limnos adds detailed explainations:
    http://discussions.apple.com/message.jspa?messageID=8441597#8441597
    The above the idea came from a post by JoseAranda at September 9, 2006 3:48 AM
    http://www.askdavetaylor.com/howdo_i_reset_my_mac_os_x_admin_rootpassword.html
    You will need to scroll down to see this post. Search for applesetupdone
    Or see:
    http://superpixel.ch/articles/running-setup-assistant-again/
    Once you have a new administrative account, you can change the password of your old administrative account
    blue apple > System Preferences > Accounts

  • Post install problem. Changes to the state or options of DB SUSDB can't be made at this time. DB Is in single-user mode.

    Hi,
    Have you ever come across this problem before.
    Changes to the state or options of DB SUSDB can't be made at this time. DB Is in single-user mode and a user is currently connected to it.
    It's preventing the post WSUS installation task from completing.
    I opted to use the WID Database option and it created the SUSDB.
    How can I resolve it?
    Thanks  

    this sounds similar to some issues that occurred when KB2720211 was first release (the update does put the DB into single-user mode, to perform some tasks, then switches it back into multi-user mode. sometimes, that switch-back was not performed, and the
    DB was left in single-user mode).
    You can refer to this thread, the steps are buried in there.
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/531d576b-eeaf-40dc-9057-b3adbde6186f/kb2720211-debacle-is-this-acceptable-microsoft-quality?forum=winserverwsus
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Wipe a HD via Unix in Single User Mode?

    Is it possible to wipe a hard drive using diskutil or another method when booting up in Single User Mode? We routinely need to wipe drives and if possible, this would be the easiest.
    I suspect because the OS that boots in Single User Mode is on that same drive will make this impossible.
    Thanks in advance for your tips and comments,
    Doug

    Yes, you cannot erase an OS while it's 'hosting' the erasure. Single user mode is part of Mac OS X, so it's on the hard drive, not in the firmware or anything super-low-level like that. Oh well. So... you might be able to erase the vast majority of user, application, and even OS files, but it won't be complete and won't be 'as good as' a volume-format.
    A couple alternatives come to mind (sorry if you know all this. Not trying to be pedantic or patronizing, just making sure you know your options).
    We keep host computers around just for running wipes, backups, and diagnostics that cannot run from a drive holding the booted OS. You simply restart the to-be-wiped Mac holding the 't' key, connect it via firewire, and treat it as an external hard drive.
    You could also just boot from a Mac OS X install disc and wipe from the copy of Disk Utility included on the disc. Better yet, throw a +bona fide+ copy of OS X onto a pocket hard drive, boot the victim-Mac from that (hold option while it is first starting up), and wipe the internal HD normally, now that it's not in use. You could maybe even use single user mode in the booting OS, like you'd imagined, and format from there (I'm not sure that would be faster than letting it boot normally, though, as you might have to use "dd" or some other similar low-level wipe method, as I don't think the frameworks required for Apple's cli "diskutil" are available in single user mode).
    I haven't tried to use it on a Mac, but I have a 256 MB USB flash drive with, er, ['Darn' Small Linux|http://tinyurl.com/5md7t] on it for diagnosing Windows boxes. It runs a script on boot which, if you don't intervene to run utilities or what-have-you, will wipe all attached hard drives and shut down. I keep it locked up for understandable reasons, but its super useful just as a time-saver, booting most machines and beginning the countdown-to-wipe in under ten seconds.
    Anyway, let us know what your goals and thoughts are.
    Cheers, Joel

  • How can I find the schemas used in a database?  Any system table contains?

    How can I find the schemas used in a database? 
    Any system table contains?
    I would like to know sql statement (dictionary object name) which tells the all schema s in a database like dba_users.

    Hello,
    this SQL should help:
    db2 "select schemaname from syscat.schemata"

  • How can I find the reason for frequent system crashes?

    Hi all,
    since a couple if weeks my iMac (late 2009) has a system crash at least once per day; I don't know the reason or what software causes that. How can I find the source of this crashes?
    Thanks and regards
    Chris

    Thanks for your answer.
    Here the result:
    EtreCheck version: 1.9.15 (52)
    Report generated 27. September 2014 11:26:51 GMT+8
    Hardware Information: ?
      iMac (21.5-inch, Late 2009) (Verified)
      iMac - model: iMac10,1
      1 3.06 GHz Intel Core 2 Duo CPU: 2 cores
      8 GB RAM
    Video Information: ?
      ATI Radeon HD 4670 - VRAM: 256 MB
      iMac 1920 x 1080
    System Software: ?
      OS X 10.9.5 (13F34) - Uptime: 0 days 3:9:21
    Disk Information: ?
      ST31000528AS disk0 : (1 TB)
      S.M.A.R.T. Status: Verified
      EFI (disk0s1) <not mounted>: 209,7 MB
      Macintosh HD (disk0s2) / [Startup]: 999,35 GB (636,04 GB free)
      Recovery HD (disk0s3) <not mounted>: 650 MB
      OPTIARC DVD RW AD-5680H 
    USB Information: ?
      StoreJet Transcend StoreJet Transcend 2 TB
      S.M.A.R.T. Status: Verified
      EFI (disk1s1) <not mounted>: 209,7 MB
      Transcend (disk1s2) /Volumes/Transcend: 2 TB (1,53 TB free)
      Apple Inc. Built-in iSight
      Apple Internal Memory Card Reader
      Apple, Inc. Keyboard Hub
      Apple Inc. iPhone
      Apple Inc. Apple Keyboard
      Apple Computer, Inc. IR Receiver
      Apple Inc. BRCM2046 Hub
      Apple Inc. Bluetooth USB Host Controller
    Gatekeeper: ?
      Mac App Store and identified developers
    Kernel Extensions: ?
      [loaded] com.Cycling74.driver.Soundflower (1.5.2) Support
      [loaded] com.avast.AvastFileShield (2.1.0 - SDK 10.9) Support
      [loaded] com.avast.PacketForwarder (1.4 - SDK 10.9) Support
      [not loaded] com.paceap.kext.pacesupport.leopard (5.9 - SDK 10.4) Support
      [not loaded] com.paceap.kext.pacesupport.master (5.9 - SDK 10.6) Support
      [not loaded] com.paceap.kext.pacesupport.panther (5.9 - SDK 10.3) Support
      [loaded] com.paceap.kext.pacesupport.snowleopard (5.9 - SDK 10.6) Support
      [not loaded] com.paceap.kext.pacesupport.tiger (5.9 - SDK 10.4) Support
      [loaded] foo.tap (1.0) Support
      [loaded] foo.tun (1.0) Support
    Startup Items: ?
      KP_IPFW: Path: /System/Library/StartupItems/KP_IPFW
      Sudochmod: Path: /Library/StartupItems/Sudochmod
    Launch Daemons: ?
      [loaded] com.adobe.fpsaud.plist Support
      [loaded] com.avast.init.plist Support
      [loaded] com.avast.uninstall.plist Support
      [loaded] com.avast.update.plist Support
      [loaded] com.google.keystone.daemon.plist Support
      [running] com.machangout.glims.loader.plist Support
      [loaded] com.microsoft.office.licensing.helper.plist Support
      [loaded] com.oracle.java.Helper-Tool.plist Support
      [loaded] com.oracle.java.JavaUpdateHelper.plist Support
      [loaded] org.tcpdump.chmod_bpf.plist Support
      [loaded] PACESupport.plist Support
      [running] vyprvpnservice.plist Support
    Launch Agents: ?
      [loaded] com.avast.userinit.plist Support
      [loaded] com.google.keystone.agent.plist Support
      [loaded] com.hp.messagecenter.launcher.plist Support
      [running] com.machangout.glims.agent.plist Support
      [loaded] com.oracle.java.Java-Updater.plist Support
    User Launch Agents: ?
      [loaded] com.adobe.ARM.[...].plist Support
      [failed] com.akamai.single-user-client.plist Support
      [loaded] com.avast.home.userinit.plist Support
      [running] com.google.Chrome.framework.plist Support
      [loaded] com.macpaw.CleanMyMac.helperTool.plist Support
      [loaded] com.macpaw.CleanMyMac.trashSizeWatcher.plist Support
      [loaded] com.macpaw.CleanMyMac.volumeWatcher.plist Support
      [not loaded] Verbindungsassistent
    User Login Items: ?
      Show Desktop
      Skype
      Air Media Server
      TuneupMyMac
      VyprVPN
    Internet Plug-ins: ?
      NPClientBinding: Version: 1.0.0.5 - SDK 10.6
      Google Earth Web Plug-in: Version: 6.0 Support
      Default Browser: Version: 537 - SDK 10.9
      Flip4Mac WMV Plugin: Version: 2.3.8.1 Support
      NPCleanHistory: Version: 1.0 - SDK 10.6
      AdobePDFViewerNPAPI: Version: 10.1.12 Support
      FlashPlayer-10.6: Version: 15.0.0.152 - SDK 10.6 Support
      AmazonMP3DownloaderPlugin101749: Version: Unknown
      NPSafeInput: Version: 1.0 - SDK 10.6
      Flash Player: Version: 15.0.0.152 - SDK 10.6 Support
      iPhotoPhotocast: Version: 7.0
      NPSafeSubmit: Version: 1.0 - SDK 10.6
      QuickTime Plugin: Version: 7.7.3
      AdobePDFViewer: Version: 10.1.12 Support
      GarminGpsControl: Version: 4.0.2.6 Beta - SDK 10.6 Support
      SharePointBrowserPlugin: Version: 14.4.4 - SDK 10.6 Support
      Silverlight: Version: 5.1.20913.0 - SDK 10.6 Support
      JavaAppletPlugin: Version: Java 7 Update 67 Check version
    Safari Extensions: ?
      AdBlock
      wrc (Disabled)
      Download Shuttle
    Audio Plug-ins: ?
      BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
      AirPlay: Version: 2.0 - SDK 10.9
      AppleAVBAudio: Version: 203.2 - SDK 10.9
      iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins: ?
      Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User Internet Plug-ins ?
      Picasa: Version: 1.0 Support
      WebEx64: Version: 1.0 - SDK 10.5 Support
    3rd Party Preference Panes: ?
      Flash Player  Support
      Flip4Mac WMV  Support
      Java  Support
      MacFUSE (Tuxera)  Support
    Time Machine: ?
      Skip System Files: NO
      Mobile backups: OFF
      Auto backup: YES
      Volumes being backed up:
      Macintosh HD: Disk size: 930.71 GB Disk used: 338.35 GB
      Destinations:
      Transcend [Local] (Last used)
      Total size: 2 TB
      Total number of backups: 23
      Oldest backup: 2014-09-12 08:28:44 +0000
      Last backup: 2014-09-27 03:10:24 +0000
      Size of backup disk: Adequate
      Backup size 2 TB > (Disk used 338.35 GB X 3)
      Time Machine details may not be accurate.
      All volumes being backed up may not be listed.
    Top Processes by CPU: ?
          2% WindowServer
          0% Microsoft Word
          0% VyprVPN
          0% Skype
          0% hidd
    Top Processes by Memory: ?
      377 MB iTunes
      369 MB Safari
      254 MB mds_stores
      180 MB com.apple.IconServicesAgent
      131 MB com.avast.daemon
    Virtual Memory Information: ?
      2.37 GB Free RAM
      3.25 GB Active RAM
      1.60 GB Inactive RAM
      793 MB Wired RAM
      1.52 GB Page-ins
      0 B Page-outs

  • How to find the target system landscape

    How to find the target system landscape - the clients present in the target system. Please explain in detail.
    regards,
    ravikiran

    this FM is giving only the current system id. I want to find the target system details.

  • How to find the local system name in remote desktop through oracle

    Hi all,
    i am useing oralce 9i,D2K (Forms 6i) ,Presently i had a small problem when ever i am useing the application through the remote desktop i can not able to find the local system name .If i am accessing from the local system name then i can get the system name but when the user accessing the application through remote desktop i want to find from which local system he is accessing the remote desktop through the application is there any way to find it .If please let me know .
    Thanks in advance
    Srini

    Hi,
    Not sure of what you want.
    Have a look at v$session view. Machine column is maybe what you're looking for.
    If you want to retrieve the local host executing remote desktop, it's actually not possible natievely, since it's still remote host that is connecting to the database.
    Hope it helps.

  • New to the Unix system

    Hello all, now that I know the hardware aspects of the mac I thought it's about time I learned the Unix system. I really only know DOS commands, windows, and anything else dealing with the Windows system. I'm ashamed to say I can't even figure out how to use a .tar.gz file even though I researched it too.. I don't truly want to waste anyone's time but if you would it is greatly appreciated.

    Hi 21q,
    I was just passing by. Would you like some names of classical introductory books (primers) that present +unix wizards+ used when they were in your place? They're likely unwanted today, so sell for pennies on places like
    http://www.bookfinder.com/
    +Panther's Darwin+ used Linux, and Tiger's used +BSD Unix+ (the Berkeley Service Distribution), +AT&T's System V+ with many networking additions to help academics & students communicate. Unix was an elegant 'system'. The beautiful book by Steven Bourne, however, you'll find useless without its commands, at least, re-installed to Darwin.
    Some Berkeley extensions, such as finger, were removed when the internet went public. You can still use these on your LAN, though! One day I was using spell and its list in text of all words in +Webster's 2d International Dictionary+ to create limited vocabularies for my 5-year old granddaughter The next day the list was gone. So, ask these knowledgeable people where to get these commands. (Archives other than Fink require you know unix already to get it.) It's free, and the source code is included!
    It is very helpful to know what the 2- or 3-letter commands mean, because there are hundreds (as opposed to a dozen on DOS). Though I thought they were designed short & in lower case so several could be on one line, Ken Thompson said he was just a poor touch typist.
    The low-level unix 'commands', designed to be incorporated into C programs, are still here, so you can write C-language applications using these. Again, we can refer you to the best introductions.
    Note that 'tar' stood for 'tape archiver', which concatenated & copied many files as one, and 'gz' likely stood for the compression utility 'GNU zip' (as it zipping your suitcase). No list of 'official meanings' exists, so guessing their meaning is an ongoing puzzle. 'Biff', however, you'll never guess: this command, which beeped when mail arrived, was the name of its author's dog, who barked instead. The pair, '.tar.gz' is often referred to as a 'tar ball'.
    I shan't discuss why Unix, originally built for use by two people on one small machine, spread like fire throughout universities, but the original unix was a work of art. You can appreciate this if you can get most of it back, though you can no longer use such scripts as 'rc' (run command?) in /etc to configure your system.
    With primers on programming, books by Comer or Tannenbaum, and the source code on archives, you can use your Mac to master programming to any level. Though Objective-C, I'm told, is elegant, and AppleScript powerful; these are not ISO standard languages, portable to any computer. So I'd recommend learning Unix & C early, using either the vi or emacs editor.
    This is a slight expansion of Neil's reply.
    Bruce
    PS. Unix has three 'standard' devices to work with: standard input, standard output, and standard error. These were originally displayed on separate monitors, but standard input is now your keyboard & mouse, standard output the 'Terminal', and standard error is the 'Console' (named after a network administrator's console). I direct all errors to the console, and placed it in my dock.

  • How do I disactivate the operating system on my macbook that was stolen from me?

    So in early September someone who I know broke into my apartment and stole my computer, I called the police and filed a report. I have some very snesitive documents on the computer that I would prefer no one to get their hands on. I was able to find the operating system disk I had purchsed to update the operating system a few years ago so I have all of the information associated with the OS. I do not know the IP address of the computer or exactly where it is (obviously or I would have it back). I want to basically turn the OS off so my files on the computer cannot be opened or used. Is there any way to disactivate the OS remotely like you can with Windows (if you use the product key on another PC it deactivates the previous version). I don't know if it matters but it was a late 2006 macbook (black) model 13" screen.

    What To Do If Your iDevice or Computer Is Lost Or Stolen
    If your Mac, iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should do in advance - before you lose it or it's stolen - and some things to do after the fact. Here are some suggestions:
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T, Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. Lost or Stolen iPhone? Here’s What to do
      6. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      7. Find My iPhone
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on MobileMe
      3. OS X Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Third-party solutions for computers:
      1. VUWER 1.5.4
      2. Sneaky ******* 0.2.0
      3. Undercover 4.7
      4. LoJack for Laptops Premium Mac
      5. STEM 2.1
      6. MacPhoneHome 3.5

  • HT1338 Purchased a used macbook pro with Mountain Lion. My old Mac runs Snow Leopard is backed up to Time machine. How do I register the operating system to me and how do I use Time Machine to move my files to the new used computer?

    Purchased a used macbook pro with Mountain Lion. My old Mac runs Snow Leopard is backed up to Time machine. How do I register the operating system to me and how do I use Time Machine to move my files to the new used computer?

    If you look at the User Tips tab, you will find a write up on just this subject:
    https://discussions.apple.com/docs/DOC-4053
    The subject of buying/selling a Mac is quite complicated.  Here is a guide to the steps involved. It is from the Seller's point of view, but easily read the other way too:
    SELLING A MAC A
    Internet Recovery, and Transferability of OS & iLife Apps
    Selling an Old Mac:
    • When selling an old Mac, the only OS that is legally transferable is the one that came preinstalled when the Mac was new. Selling a Mac with an upgraded OS isn't doing the new owner any favors. Attempting to do so will only result in headaches since the upgraded OS can't be registered by the new owner. If a clean install becomes necessary, they won't be able to do so and will be forced to install the original OS via Internet Recovery. Best to simply erase the drive and revert back to the original OS prior to selling any Mac.
    • Additionally, upgrading the OS on a Mac you intend to sell means that you are leaving personally identifiable information on the Mac since the only way to upgrade the OS involves using your own AppleID to download the upgrade from the App Store. So there will be traces of your info and user account left behind. Again, best to erase the drive and revert to the original OS via Internet Recovery.
    Internet Recovery:
    • In the event that the OS has been upgraded to a newer version (i.e. Lion to Mountain Lion), Internet Recovery will offer the version of the OS that originally came with the Mac. So while booting to the Recovery Disk will show Mountain Lion as available for reinstall since that is the current version running, Internet Recovery, on the other hand, will only show Lion available since that was the OS shipped with that particular Mac.
    • Though the Mac came with a particular version of Mac OS X, it appears that, when Internet Recovery is invoked, the most recent update of that version may be applied. (i.e. if the Mac originally came with 10.7.3, Internet Recovery may install a more recent update like 10.7.5)
    iLife Apps:
    • When the App Store is launched for the first time it will report that the iLife apps are available for the user to Accept under the Purchases section. The user will be required to enter their AppleID during the Acceptance process. From that point on the iLife apps will be tied to the AppleID used to Accept them. The user will be allowed to download the apps to other Macs they own if they wish using the same AppleID used to Accept them.
    • Once Accepted on the new Mac, the iLife apps can not be transferred to any future owner when the Mac is sold. Attempting to use an AppleID after the apps have already been accepted using a different AppleID will result in the App Store reporting "These apps were already assigned to another Apple ID".
    • It appears, however, that the iLife Apps do not automatically go to the first owner of the Mac. It's quite possible that the original owner, either by choice or neglect, never Accepted the iLife apps in the App Store. As a result, a future owner of the Mac may be able to successfully Accept the apps and retain them for themselves using their own AppleID. Bottom Line: Whoever Accepts the iLife apps first gets to keep them.
    SELLING A MAC B
    Follow these instructions step by step to prepare a Mac for sale:
    Step One - Back up your data:
    A. If you have any Virtual PCs shut them down. They cannot be in their "fast saved" state. They must be shut down from inside Windows.
    B. Clone to an external drive using using Carbon Copy Cloner.
    1. Open Carbon Copy Cloner.
    2. Select the Source volume from the Select a source drop down menu on the left side.
    3. Select the Destination volume from the Select a destination drop down menu on the right
    side.
    4. Click on the Clone button. If you are prompted about creating a clone of the Recovery HD be
    sure to opt for that.
    Destination means a freshly erased external backup drive. Source means the internal
    startup drive. 
    Step Two - Prepare the machine for the new buyer:
    1. De-authorize the computer in iTunes! De-authorize both iTunes and Audible accounts.
    2, Remove any Open Firmware passwords or Firmware passwords.
    3. Turn the brightness full up and volume nearly so.
    4. Turn off File Vault, if enabled.
    5. Disable iCloud, if enabled: See.What to do with iCloud before selling your computer
    Step Three - Install a fresh OS:
    A. Snow Leopard and earlier versions of OS X
    1. Insert the original OS X install CD/DVD that came with your computer.
    2. Restart the computer while holding down the C key to boot from the CD/DVD.
    3. Select Disk Utility from the Utilities menu; repartition and reformat the internal hard drive.
    Optionally, click on the Security button and set the Zero Data option to one-pass.
    4. Install OS X.
    5. Upon completion DO NOT restart the computer.
    6. Shutdown the computer.
    B. Lion and Mountain Lion (if pre-installed on the computer at purchase*)
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because
    it is three times faster than wireless.
    1. Restart the computer while holding down the COMMAND and R keys until the Mac OS X
    Utilities window appears.
    2. Select Disk Utility from the Mac OS X Utilities window and click on the Continue button. 
    3. After DU loads select your startup volume (usually Macintosh HD) from the left side list. Click
    on the Erase tab in the DU main window.
    4. Set the format type to Mac OS Extended (Journaled.) Optionally, click on the Security button
    and set the Zero Data option to one-pass.
    5. Click on the Erase button and wait until the process has completed.
    6. Quit DU and return to the Mac OS X Utilities window.
    7. Select Reinstall Lion/Mountain Lion and click on the Install button.
    8. Upon completion shutdown the computer.
    *If your computer came with Lion or Mountain Lion pre-installed then you are entitled to transfer your license once. If you purchased Lion or Mountain Lion from the App Store then you cannot transfer your license to another party. In the case of the latter you should install the original version of OS X that came with your computer. You need to repartition the hard drive as well as reformat it; this will assure that the Recovery HD partition is removed. See Step Three above. You may verify these requirements by reviewing your OS X Software License.

Maybe you are looking for