Su command: Terminal does not read root's bash profile.

When I enter the su command to gain root access, the user id changes to root but it does not seem to read the .bashrc file in the root directory. One symptom is that the prompt symbol remains '$' rather than changing to '#'
If I enter the bash command after entering the su command, it appears to read root's .bashrc file.
I seem to recall reading something about the location of the profile being changed in Leopard but can't locate the information.

I found that:
su root -c bash
works. I add this as an alis in my user account.
Sy B

Similar Messages

  • Mdm:iOS terminal does not communicate to a MDM server

    How do you do?
    It is Matsuzaki SHinji.
    I want you to teach about Apple MDM.
    I am MDM Vendor.
    The MDM server is using Apache 2.2.3.
    WavDAV is used.
    The PUT method is supported.
    The contract of an enterprise is completed.
    The application of MDM is also completed.
    I am using the following URL by webdav.
    It has also checked that it was in the state which can be used.
    https://www.anetm.com/dav/
    It is a thing of APNs.
    nj_dev_apns-dev.pem
    The "user ID" of subject contained in a nj_dev_apns-dev-key-noenc.pem certificate is "jp.co.nishitele."
    APNs is used using the following ruby script.
    In the following codes, a device token is ending exchangeably.
    "[ -device torkn string 32 length set- ]"
    Start Script
    #!/usr/bin/ruby -Ku
    require 'openssl'
    require 'socket' 
        (msg = []) << "[ -device torkn string 32 length set- ]"
        device  = msg.pack("H*")
        socket = TCPSocket.new('gateway.sandbox.push.apple.com',2195)
        context = OpenSSL::SSL::SSLContext.new('SSLv3')
        context.cert = OpenSSL::X509::Certificate.new(File.read('nj_dev_apns-dev.pem'))
        context.key  = OpenSSL::PKey::RSA.new(File.read('nj_dev_apns-dev-key-noenc.pem'))
        ssl = OpenSSL::SSL::SSLSocket.new(socket, context)
        ssl.connect
        payload = <<-EOS
      "mdm":{"<PushMagic>"
    EOS
        (message = []) << ['0'].pack('H') << [32].pack('n') << device << [payload.size].pack('n') << payload
        ssl.write(message.join(''))
        ssl.close
        socket.close
    End Script
    It performs.
    The next warning has occurred at the iPhone terminal.
    Apr 30 11:04:35 Evangerion-iPhone4S apsd[60] <Warning>: <APSCourier: 0x131e80>: Failed to parse JSON message payload for topic 'jp.co.nishitele': The operation couldn’t be completed. (Cocoa error 3840.)
    An iOS terminal does not communicate to a MDM server.
    I would like to solve this.
    And thank you.
    Thank you for your consideration.
    He is waiting for the reply.

    Is this iPad used? 
    iTunes should be version 11
    It should be reset to wipe all content from the device and set up as a new device with iTunes.    It should update to IOS 7.0.4

  • Hi guys, I have a big problem! My bookmark shortcut entry(command D) does not work anymore and do you know by any changes how to undo resetting of Safari? Thnx a million :)

    Hi guys, I have a big problem! My bookmark shortcut entry(command D) does not work anymore and do you know by any changes how to undo resetting of Safari? Thnx a million

    Try troubleshooting the Safari .plist file.
    Quit Safari.
    Open a Finder window. Select your Home Folder in the Sidebar on the left. It has a small house icon. Then open the Library folder then the Preferences folder.
    Move the com.apple.Safari.plist file from the Preferences folder to the Desktop. Relaunch Safari. Try a bookmark.
    If that didn't help, check Safari / Preferences then select the Extensions tab. If you have any installed, turn that off, quit then relaunch Safari.
    If Extensions aren't the issue, reset Safari. From the menu bar click Safari / Reset Safari. Select the top 7 buttons, click Reset.

  • Command + F2 does not turn iMac into a screen

    hi, i am trying to use my 27" iMac as a screen to my Macbook Pro Retina.
    I have the thunderbolt cables plugged in, but pressing Command + F2 does not work. Yes i am pressing these buttons on the iMac.
    The first time i tried it a few days ago, the iMac did turn into a screen, but after a while it fell asleep and the connection was lost. I have not been able to restore it again, which is annoying.
    Another guy at work has the same issue and he has found it randomly works and sometimes doesn't.
    Does anyone know why? feel like the $50 spent on the cable is a massive waste of money if its not going to work. Wish apple would fix this.
    Any help is appreciated!
    i have also looked at   http://support.apple.com/kb/HT3924   and it doesnt have anything i dont already know

    So i was able to solve the issue by updating my operating system. I havent yet upgraded to Mavericks, im still on 10.8.5 but as soon as i updated, the iMac started connecting to the macbook pro.

  • Command L does not open library

    Just bought Classroom in a book for CS4 flash. The command +
    L does not open the library. Is the is an indication of a poorly
    written book (I heard some bad things about CIB Flash CS3. Hope
    this one is better. I can open the library by going to Window
    library. I can't believe I'm already writing a question. This has
    to be a first.
    Lou

    I just installed Ubuntu 10.04 with Firefox 3.6.8 and also getting an error on eBay when clicking on item I already bid on with a Windows PC. It states "Your browser doesn't follow HTML standards and made an invalid request.
    If you feel you have reached this page in error, please try again, maybe with a different browser.." I seem to have some Linux curse. As soon as I think things are working well, something like this pops up.
    Any solutions?

  • I am trying to reinstall Mac OSX, but my computer does not read installation cd

    Hello, I am trying to reinstall Mac OSX, but my computer does not read installation cd. After restart, I hold C but either eject cd or doesn't read and computer boots up normally. I even ordered a new pack of installation cd, but still the same problem. Is there anybody can help me fixing this issue, because my Macbook pro has lots of software problem and when I spoke to tech, they said it needs to reformat and reinstall the OSX to solve all my problems. Please help me to reinstall my OSX!

    Possible solutions:
    You need to hold the c key down before booting
    You need to use the built in keyboard, you have other hardware connected
    You need the machine specific 10.6.4+ disks for that machine, the retail 10.6.3 disks won't work
    There is a firmware password on the machine preventing the at boot key command functions
    Try the option key for Startup Manager to boot from the disk, right after the "bong"
    Your Superdrive lense is dirty or not operating, other hardware issues
    You have malware of some sort

  • Windows 7 does not read drivers on my OS Snow Leopard Install dvd

    When I start the DVD and the setup.exe I get 2 options - Remote Install Mac OS X and DVD or CD Sharing, no drivers are being downloaded or appear to be on the DVD.
    Any ideas, please help.

    Ok, after 3 sleepness nights I have found a solution and finally have a working Windows 7 Ultimate. I hope this will be helpful for everyone having similar issues and not have to go through the same nightmare.
    Right away after logging in Windows for the first time insert the original Snow Leopard Install DVD and if Windows does not read it or install any drivers after clicking on setup.exe do the following:
    Right-click on Start » Programs » Accessories » Command Prompt
    Select Run as Administrator
    Type cd /d D:, then press Enter
    Type cd Boot Camp\Drivers\Apple, then press Enter
    Type BootCamp64.msi, then press Enter
    If you do not how to right click before installing the drivers the following:
    Click on Start
    Enter cmd in the search box
    Instead of hitting the Enter key use Ctrl + Shift + Enter and will open a dialog box
    Click Yes at the prompt and you will be running as an administrator.
    If you do not have the original install DVD go the this link and follow the instructions(including the ones from the last comment):
    http://blog.timvalenta.com/2011/11/19/boot-camp-driver-downloads/

  • Shift-Command-R does not work anymore

    Hello all,
    I've noticed that the shortcut shift-command-r does not work anymore on my macbook pro. I used it for the calendar to refresh all calendars, and its also handy to open the reader in safari 5.
    When I open the keyboard viewer from the language and text menu I can see it when I press shift, then command but when I press "R" nothing changes, only shift+command stay highlighted. Other letters do work, so its a bit strange.
    Anyone know a solution for this?
    Thank you in advance

    Nope thats not the problem, the listening key is Esc. It is as if the keyboard does not register it when the R is pressed in combination with the shift and the command together. As I said, the keyboard viewer shows every keystroke except the shift-command-r combi.

  • Terminal does not login; blank window

    Hello!
    I use the Terminal occasionally and today I had to run a sudo command. It asked for my password, but I decided to cancel the command because I was in a hurry. I quit the terminal and now, every time I open it, nothing happens.
    There is a white window where every command just does not work! Nothing happens!!
    You can type in what you want, but nothing else.
    Any suggestions?

    As an experiment, download and try iTerm (free download)
    <http://iterm.sourceforge.net/>
    If iTerm fails the same way, then the problem has nothing to do with Terminal. If iTerm works, then it is something specific to Terminal.
    Using iTerm is a way to narrow down where the problem might be.
    You said you were following a tutorial, so it is also possible that some steps in the tutorial before the sudo command actually messed things up, but it would not be evident until you restarted Terminal.
    Oh yea. Terminal and Unix oriented questions are best asked in the Mac OS X Technologies > Unix Forum
    <http://discussions.apple.com/forum.jspa?forumID=735>
    Message was edited by: BobHarris

  • Mac OS X Lion 10.7.5fter upgrde does not read external harddrive

    Mac OS X Lion 10.7.5 fter upgrde does not read external harddrive

    Hello there ZamirasDAD,
    I was looking through our aricles about what you may be experiencing and recommend resetting your SMC and your PRAM.
    To reset your SMC on an iMac you would use this article Intel-based Macs: Resetting the System Management Controller (SMC) found here: http://support.apple.com/kb/ht3964.
    Resetting the SMC for Mac Pro, Intel-based iMac, Intel-based Mac mini, or Intel-based Xserve
    Shut down the computer.
    Unplug the computer's power cord.
    Wait fifteen seconds.
    Attach the computer's power cord.
    Wait five seconds, then press the power button to turn on the computer.
    To reset the PRAM use this article named About NVRAM and PRAM found here: http://support.apple.com/kb/ht1379
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    Regards,
    Sterling

  • I have a MacBook Air using Maverick. I have files in the trash I want to recover. I do not have "Put Back" and Command   Delete does not work.

    I have a MacBook Air using Maverick. I have files in the trash I want to recover to their original files. I do not have "Back Up" and "Command + Delete" does not work.

    Drag them out of the Trash and put them in their original location. Put Back may work on one file at a time.

  • I have a brandnew 7th gen classic ipad, it does not read in my itunes anymore. i bought it cause apple was suppose to be good, now i am lost as i just want my music, any help. tried the rec. steps to fix it and nothing

    let em elaborate more, the unit is less than 5months old, i bought it just for music, i use to have a lot of cds, well it does not read anynore in my computer nor the itunes programe, i reset it, i put it to disk mode, i down loaded the newest itunes program, i want to know how to fix this as i paid apple good money for a product that died after 5months, for real.
    this is bad business and i need some help

    Does the iPod work okay otherwise apart from not being able to connect with and communicate with iTunes?
    Have you tried connecting the iPod to another PC or Mac running iTunes to see if it is properly recognized there?
    Is iTunes up to date on your PC?  Does it appear in Device Manager when you plug it in? To access Device Manager, click start, right->click on Computer (or My Computer in Windows XP) and choose Manage.  When the window opens, select Device Manager in the left hand pane if necessary.
    Any unknown devices listed or does the iPod appear anywhere under USB Host Controllers?
    B-rock

  • The name of my wireless network in the form of my modem router is not read from the iPhone, while the first era.Il my ipad does not read the network but I surf the internet. Why? What can I do?

    The name of my wireless network in the form of my modem router is not read from the iPhone, while the first era.Il my ipad does not read the network but I surf the internet. Why? What can I do?

    Can I use this DIR-635 to extend the WiFi network of the "Belgacom" WiFi?
    To answer this question correctly, a user would need to have a DIR-635 router connected by Ethernet to a Belgacom router.
    If you think about it, the chances of another user who has these two same devices configured this way and also being on an Apple support forum to see your post are about zero.
    The following might work, but you will not know until you try.
    Configure the DIR-635 to provide a wireless network that uses the exact same wireless network name, exact same wireless security and exact same password as the Belgacom wireless router. Make sure that the DIR-635 is configured in Bridge Mode.
    Can I purchase and set-up an Apple Airport Express or Apple Airport Extreme on my level 1 (the ethernet cable running from level 2 to level 1 could plug-into either of those)
    The AirPort Express or AirPort Extreme would need to be configured exactly the same way as mentioned above.
    (What is the difference in the 2 -- one is about twice the price of the other…)
    http://www.apple.com/wifi/

  • My iPod Classic (  iTunes 10.7.0.21) does not read Thai characters. How can I fix this? Thank you.

    Hello all,
    I have dowloaded songs from a Thai band, but my iPod does not read characters and I just have a blank stripe.
    How can I fix this?
    Thank you in advance.

    Thai is not one of the supported languages.
    http://www.apple.com/ipodclassic/specs.html
    Languages
    Czech, Danish, Dutch, English, Finnish, French, German, Greek, Hungarian, Italian, Japanese, Korean, Norwegian, Polish, Portuguese, Russian, Simplified Chinese, Spanish, Swedish, Traditional Chinese, and Turkish
    Additional language support for display of song, album, and artist information: Bulgarian, Croatian, Romanian, Serbian, Slovak, Slovenian, Ukrainian, and Vietnamese
    B-rock

  • I bought a new MacBook Pro (Mac Os 10.8.4) when conecting my mobile broadband dongle (Huawei E122) the computer does not read it at all. I do not have problems when connecting it to my former computer (PC) and a Mac from last year. Any suggestions?

    I bought a new MacBook Pro (Mac Os 10.8.4) when conecting my mobile broadband dongle (Huawei E122) the computer does not read it at all. I do not have problems when connecting it to my former computer (PC) and a Mac from last year. Any suggestions?

    Thanks,
    Yes, I did that. They have uppgrades for the dongles, but just untill Mac Os 10.7. Their solution is to buy a new modem from them or getting one for free if I sign a contract for 24 months! So, i think from that side not very helpful.
    It is just that I do not want to buy a new modem, when it works in quite recent computers and after having spent money in the new Mac.
    But thank you for your reply!

Maybe you are looking for

  • How to deploy oracle forms on oracle application server 10g release3

    i have installed oracle database 10.1.0.5 and oracle application server 10.1.3.1. I have to run forms using this setup. I was unable to find which version of oracle application server forms and reports should i install to run. I would appreciate if s

  • Illustrator CC Crashes on Launch... Agian (Most of the Time)

    Okay so here is the issue: Illustrator CC crashes on launch most times I open. Somehow, with no explanation it will just work, but it crashes at least 4-5 times before it will. About a month ago (when I updated to 17.1) I had an issue where it crashe

  • How to find which applications are running

    I cannot figure out where on the HD to look to see which apps on my iMac are open. Other than the ones highlighted in the dock, can there be others open? I was ejecting my external HD and a message reads 'it is in use, try quitting applications'. As

  • Boot camp and partitions

    Hello all, I am a bit new with boot camp and I am not sure about the size of patition. What do you suggest me for OS X and Windows partition size? Thank for advices

  • I forgot my GameCenter Apple ID, but I remember the nickname...

    I used to use a few different apple IDs (my siblings' accounts), so i can't remember which apple ID i used to make my Game Center... I do remember the nickname I used, but after the IOS 7 update, it only accepts the ID instead of the nickname. My sis