Sudo chown root:admin / command information

I would like to know if the use of this command before an OSX update would affect the operation of my computer after the 10.6.7 update. I had to use this command (suggested by vea1083) to fix a directory ownership disassociation following the iTunes 10.2.1 Update which slowed my MacBook Pro boot up speed by twice of the time. The following command was used to fix the issue and it worked successfully:
*sudo chown root:admin /*
Thank you for any assistance in this matter.

Thank You for your responses, besides noticing that my thread has been moved to another forum let me give you a little insight on my decision to call in this command in the terminal window.
It all started 1 month ago, I performed an iTunes update and to my surprise, my boot time went up from 22 seconds to almost 50 seconds. I cleared my log in items and repaired my permissions, with no success, so I had to take the sledgehammer approach and reinstall OSX and get the combo update to bring back my computer to OSX 10.6.6, after performing the reinstallation, my boot time went back to normal (22 seconds). Thinking that this was only a one time issue, when iTunes 10.2.0 came out I performed the iTunes update and again I was presented with the slow boot up issue after updating iTunes, angered by the fact that the same issue resurfaced, again I performed another permissions repair and reboot, and using my Mac in Safeboot mode failed, I had to again reinstall OSX again. Now hopeless, when the iTunes update 10.2.1 update came out, I did again the freaking update and boom again the same problem only this time I refused to reinstall OSX (I deny to see myself reinstalling OSX every single time I had to update iTunes). Fortunately I found a fix candidate in this Macrumors thread (http://forums.macrumors.com/showthread.php?t=1109887) where some MacBook Airs were reporting a similar boot time slowdown after the users performed an iTunes Update. Here was there where one user got the suggested the *sudo chown root:admin /* command:
http://rifers.org/blogs/gbevin/2009/9/20/slowstartupshutdownsnowleopard
I had hold off my 10.6.7 update pending a before update permissions fix and time machine backup to keep my computer from running into more troubles that I am already had.
Thank you for your understanding and suggestions

Similar Messages

  • Executed "sudo chown -R admin /" by mistake. how do i check everything?

    So "sudo chown -R admin /" was executed by mistake on an OSX 10.8.5 machine that's connected with a multiuser network. In addition to screwing up the local machine, it may have effected many other things since / includes /Network, /Volumes, possible non-Mac mounts, etc.
    I was looking in system.log, and it doesn't show which files had their permissions actually changed. Is there any log on the machine where the command was executed, which lists all the files under / that chown was applied to before it was stopped? And would it show what the ownership was changed from? I'd like to go through that list and know the extent of the damage.
    Thanks.

    There is no log for that operation. Boot into your recovery volume and run Repair Permissions. It will take a while. You will have to re-run that command with the appropriate user on each user home directory. Some applications, particularly those that use DRM, will be scrambled and will have to be reinstalled. After repairing permissions and fixing the users, login as a user and try to run the expensive applications. Any that need reinstallation will alert you to that fact.

  • Sudo chown + chmod on system drive?

    Hello,
    Before I mess my system drive up I wanted to check if this is ok.
    For various reasons I have created a new Account that I wish to migrate to. I log in ok and can change permissions but there seem to be files on various places that I keep having to set permissions for and wish to resolve this for the whole drive.
    What I want is a way to set permissions on all non system files to add admin access as it appears it is not there for certain files
    I found the below commands which worked on my media drive but am reluctant to run it on the system drive:
    sudo chflags 0 /Volumes/System
    sudo chown 0:80 /Volumes/System
    sudo chmod 775 /Volumes/System
    sudo chmod -N /Volumes/System
    I think the one above should have the "R" in as below to do this recursivly ?
    sudo chmod -RN /Volumes/System
    I don't want to mess up the system drive so I thought I should check if this is ok or not. I think some system files need to be read only so I need to know if this will render the drive useless(I do have a full backup).
    I also see people recomend Batchmod but am again unsure if this will work or what settings to use?

    Thanks Niel,
    I have read numorous posts from yourself and V.K. relating to locked secondary drives but nothing relating to system drives and fully expected that answer. can I bother you a bit more please?
    Can I safly run those commands on some of these folders?
    system\users\olduseraccount
    System\library\application support
    System\library\audio
    I think that would solve most issues there are hundreds of folders with presets from plugins that have installed with only my old account as read write not admins?
    Thanks again Niel
    Ross

  • Unhappy sudo chown -R myuser /

    hi
    have mistaken performed a
    sudo chown -R myuser /
    on my macbook...
    now it claims it cannot load several kexts like:
    /system/library/extensions/system.kext/plugins/mach.kext
    /system/library/extensions/system.kext/plugins/libkern.kext
    /system/library/extensions/system.kext/plugins/unsuported.kext
    /system/library/extensions/system.kext/plugins/bsdkernel.kext
    /system/library/extensions/system.kext/plugins/iokit.kext
    /system/library/extensions/autofs.kext
    I need to repair the default permissions....but disk utility already said i cannot repair the disk due to this error:
    the underlying task reported failure on exit
    already tried to repair using the install dvd too.
    found on the web this procedure:
    Boot off the OS X CD (reboot, hold C while booting).
    The installer will load up, go to Utilities in the menu and run Terminal.
    Type df and look for the drive that has your Mac system mounted---you'll have to unmount this. On my MacBook Pro, it was /dev/disk0s2.
    Type umount /dev/disk0s2, replacing disk0s2 with whatever disk your OS lives on.
    Type fsck_hfs -r /dev/disk0s2. If you umounted the wrong thing, it will complain that you can't repair a mounted drive. Go back and umount the right thing and repeat this step.
    (they forgot to add the step to re-mount...but its ok..)
    and this one:
    Single user mode (boot with -s) and then type
    fsck_hfs -r /dev/volumename
    will any of those save me from a archive and install?
    HELP!! Those warnings cannot be good... but the system is booting and working fine till now.
    thanks

    biovizier wrote:
    Oh come on, it isn't exactly rocket science. Compare actual permissions to expected permissions and correct discrepancies, while making allowances for a few special cases. The 'chmod -R' command does {sic} move or alter any files, it just changes the permissions so I think it falls well within the realm of what "repair permissions" should be able to handle (but I'd bet it would be faster just to reinstall).
    Rocket science is not required to understand that with the "-R" option applied to the root level of the startup drive this isn't something that the permissions repair utility (in any version, old or new) is capable of repairing. That option is the command line equivalent of the Finder's "Apply to enclosed items" option, so the command affects every file in the entire filesystem hierarchy!
    At best, the utility can reset permissions only of files with entries in the receipts database -- it is the only place expected permissions are stored -- & if a user acting with superuser privileges clobbers access to that, the OS is going to make those changes, even if it means making the receipts folder unavailable to the routines that must access it. The idea that the OS should 'make allowances' for that special case is ridiculous -- it is tantamount to the idea that there should be a 'super-duper-user' built into the system that prevents users willfully acting with superuser privileges from doing anything foolish.
    Apple doesn't need an excuse to leave things as they are. They are that way because the permissions repair utility is not, never has been, & never will be the panacea for every permissions issue that a few users seem to think it should be. As far as I can tell, the only basis for that idea is a superficial examination of the name of the utility, some wishful thinking, & more than a little disregard for what is impractical, if not downright impossible, to implement in a general purpose, UNIX-based OS.
    Anytime any user invokes sudo, they should remember the time-tested warning that *with great power comes great responsibility*. In one form or another, that warning has been around for at least 2000 years. It is no less true today. There is no need for anyone to apologize for the fact that not even Apple has found a way around it!

  • Lock out 'sudo passwd root'

    Hey is there a way to block admin users from changing the root password (ie perform a sudo passwd root command in the terminal)
    I don't want to make them a standard user but rather just prohibit them from changing root.

    Not easily. It is possible to lock out that command for certain accounts by using visudo to change the sudoers file, but other methods exist to run that command, such as using sudo sh to open a root shell and then changing the password.
    (10065)

  • Wrong ownership on TM-- is it safe to 'sudo chown -R user Time-Machine ?

    I ran Migration Assistant by a new user "Admin" to recover the accounts of 3 users on Lion.
    After the migration, Admin owns the Time Machine history of one of the users (even though account Admin didn't even exist at the time these backups were made).
    Is it safe to run:
        sudo chown -R alex "/Volumes/Time-Machine/Backups.backupdb/Alex's MacBook/*/Macintosh HD/Users/alex"

    I ran Migration Assistant by a new user "Admin" to recover the accounts of 3 users on Lion.
    After the migration, Admin owns the Time Machine history of one of the users (even though account Admin didn't even exist at the time these backups were made).
    Is it safe to run:
        sudo chown -R alex "/Volumes/Time-Machine/Backups.backupdb/Alex's MacBook/*/Macintosh HD/Users/alex"

  • DUMB MOVE: sudo chown -R notroot:notroot /*

    The title pretty much says it all.  I changed the owner/group of everything below / to something other than root.  Commands suddenly stopped working.
    I rebooted, logged in as root and tried to make things better by performing the same command, but this time setting everything to root except for my home directory.  I'm sure not everything in the filesystem was originally set to root:root but hopefully this would get me closer to a working system.  Unfortunately sudo still wouldn't work, giving the message:
    sudo: must be setuid root
    I set the setuid flag on the sudo file.  Sudo now works. 
    Next step... Under my usual username I tried to start X.  X no work...
    Cannot move old logfile ("/var/log/Xorg.0.log" to "/var/log/Xorg.0.log.old"
    So, I set the setuid flag on /usr/bin/Xorg and now X starts up great.  However, I get the feeling this setuid business might be a kludge, allowing said programs to effectively run as that program file's owner (now root).  Now, I'm thinking that the fewer things I have running as root, the better.  As such, my current fix doesn't seem ideal.
    My screw-up didn't involve messing with the permissions in any way; I just changed the _ownership_ of everything in a very bad way.  So if it's an ownership issue why should I be messing with setuid flags?  Are setuid flags somehow turned off when ownership of a file is changed or is this setuid flag business just an alternate solution/workaround to my ownership problem?
    More importantly, is there a reasonably painless way that I can restore all my installed packages and their associated files to their original ownerships.  This would basically be a reinstall using the list of packages I already have installed as a reference, saving me the trouble of manually selecting all my currently installed packages.  I looked at the pacman man page but nothing jumped out at me.  Any thoughts would be greatly appreciated.
    Last edited by battlepanic (2009-09-22 22:02:16)

    *lol* Welcome to the club - been there, done that - and it is _not_ recommended!
    I believe I resorted to a reinstall in the end - it just caused too many problems.
    So take a bite out of the sour apple, back up your home directory and do a complete reinstall.
    And ... I bet you 10 to 1 you aren't gonna do the same again - ever!!

  • Does Windows 8.1 support NVMe admin commands to access SMART info from SSD?

    Hi, we are developing and testing our new "NVMe SSD" and toolbox.
    When we try to get SMART info from our NVMe SSD at Windows 8.1, we are having troubles that Windows 8.1 seems not pass "Get Log page" command which is one of NVMe admin commands.
    However, we can successfully get SMART info from SATA-based SSD without any issues.
    So, just wondering if Windows 8.1 natively support all NVMe admin commands, or we need to develop our own special driver instead of Windows in-box driver (StorNVMe.sys).
    Thanks in advance for any help.
    BR, 
    HJ

    Hi HJ,
    StorNVMe.sys supports the admin commands internally. On win8.1, the miniport driver doesn't allow NVMe pass-though commands thus you cannot get NVMe log out of the driver.
    Regards,
    Michael Xing [MSFT]
    Thanks, Michael!
    Is there any other walk around to get NVMe log out of the driver?
    I found an old thread (below) that you mentioned SCSI pass through IOCTL commands, could you give me some more detailed information on how to do it?
    https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/8882bd78-b12e-43e3-a892-92a044ce4882/how-should-we-manage-the-nvme-devices-in-ws2012r2-?forum=wdk#f741642d-ec39-4fc2-a99c-e38bde20e7f9
    Thanks a lot!
    HJ

  • Admin Commands issue on Windows Web Server 2008 R2 - 64Bit

    Hi,
    I have tried exactly same process on FMS3.5 Installed on Centos and it worked perfectly.
    But not working in case of Windows Web Server 2008 R2 - 64Bit.
    Here is what i am trying to do -
    Basically i want to extract live streams list and display them in HTML as ordered list on another server them FMS.
    What i did in the case of FMS on Centos server -
    I installed Apache and PHP on this server and created a PHP file with following text in it. -
    abc.php
       $xml = simplexml_load_file('http://<fms-server-ip>:1111/admin/getLiveStreams?auser=admin&apswd=password&appInst=live','Simple XMLElement', LIBXML_NOCDATA);
    foreach($xml->children() as $child)
       foreach($child->children() as $child2)
              echo $child2 . ",";
    and in hosting server where i want to display the list i entered following code in PHP file -
    $homepage = file_get_contents('http://<fms-server-ip>/abc.php');
    echo $homepage;
    i got comma seperated values easily and everything is loading fast without any issue.
    Now problem occured with Windows Web Server 2008 R2 - 64Bit.
    I installed FMS, Apache and PHP in this server also, did evrything in the same way like in centos.
    FMS, APache and PHP files are working fine in this.
    But only problem occured when in abc.php i use
    $xml =  simplexml_load_file('http://<fms-server-ip>:1111/admin/getLiveStreams?auser=admin&apswd=password&appInst=live','Simple XMLElement',  LIBXML_NOCDATA);
    After this file do not loads and takes longer time to load and after some time a blank page appears. It works fine with a local XML file.
    i am able to see the XML file by opening it directly in browser, but somehow this is not working with   simplexml_load_file. I dont think this is PHP issue because with local XML file it works fine. May be some port issue or something else. But i am able to view XML file directly in browser from another computers as well.
    Kindly help, is there some other configurations should be changed in case of windows version. I have allowed admin commands as usual before doing all this. Ports 1111,80,1935 are also opened.
    Please guide

    Hi,
    Yes in Browser, the response is perfect. The only issue is in Calling inside in any file, i even tried Javascript's XML dom to load it, but same result, the file is just loading and never loads completely. I also tried using an SWF file with AS3 code to load XML inside as3 and send the result to any JS function.
    The output comes using trace in as3, but when it comes to browser, the same loading happends and result never loads.

  • Creating a Global Role using weblogic.Admin command

    Hi,
    Does anyone have an example of creating a global role using the weblogic.Admin commands? I think I have to use the INVOKE command with the DefaultRoleMapper and createRole method, but I'm not quite sure what the rest of the syntax is.
    Thanks,
    Gabriel

    Gabriel,
    The following works for me:
    weblogic.Admin -url t3://localhost:80 -username weblogic -password weblogic INVOKE -mbean "Security:Name=myrealmDefaultRoleMapper" -method createRole "" "MyGlobalRole" "Grp(Administrators)" ""
    The null first parameter identifies this role as a global role.
    The second param is the name of the role.
    The third parameter is the policy expression. Here, I've mapped the role to the Administrators group. You can also map it to users or a combo of the two. For example, to map it to the "weblogic" user, use "Usr(weblogic)" as the policy expression. If you leave this parameter empty, the role will be created but will not be mapped to anything.
    I'm not sure what the fourth parameter is for. It's not defined in the RoleEditorMBean docs but not including it causes an error. I suspect it's a description field because WLS does not seem to care what you put there.
    HTH,
    Mike

  • Admin Command Timeout

    My streaming server 3 hanged last night and can be restarted.
    I found that the admin logs have thousands of line like the
    following:
    2008-12-22 03:20:15 236 (e)2671287 Admin Command Timeout:
    (Command (getServerStats) timed out.) -
    2008-12-22 03:20:15 236 (e)2671287 Admin Command Timeout:
    (Command (getVHostStats) timed out.) -
    How can I solve this problem? Restart the computer helps, but
    I wonder there is a way to solve it.

    Well, really, none of these problems should happen! But,
    sadly, they do and not just for me.
    A Google search will show that these Admin timeouts are a
    very common problem but no-one seems to have a solution. More
    worryingly, I have never seen any suggestion from Adobe about what
    might cause them.
    Since my original post I have made two changes to our app:
    (1) when the 'owner' of the room leaves I unload the instance
    (after a 30 seconds delay)
    (2) I amended the application.xml for this app to timeout
    idle connections after 2 minutes (the default is no timeout)
    This has made things slightly better in that the app now runs
    for 2/3 days without failing (rather than failing twice a day).
    But, it still fails and the only thing that brings it back is a
    reboot of the server which is totally unacceptable in a live
    environment where we usually have 500+ clients watching 100 live
    streams at any one time (many on a pay-per-minute basis). The only
    other significant thing I notice now is that once the machine has
    been running for a couple of days the logging stops completely for
    some (but not all) instances i.e. nothing is displayed in the admin
    console and nothing is written to the log files. It's as if the FMS
    Admin has just given up.
    Re. your suggestion about checking IPs etc. There are no
    "hidden clients"! When the Admin fails it is possible to be on a
    machine with a single connection (i.e. my client). When I reload my
    client there is a trace that I have disconnected, then reconnected
    again *but* the connection count goes up by one. If I reload twenty
    times the count will increase to 20. Even if I close my browser the
    connections will apparently stay, sometimes for days!
    As I mentioned, this happens on multiple servers with lots of
    different clients and very, very low load. When it happens is, so
    far, unpredictable other than it will happen and bring down our
    live system.

  • Weblogic.Admin command

    After I ran setEnv.sh, I used Java weblogic.Admin command for THREAD_DUMP, it produced error "Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/Admin
    ". What would be the best way to run a THREAD_DUMP, kill -3 PID or a java command?

    hi sir,
    I think in weblogic 9.2 weblogic.Admin utility is deprecated but it works in 9.2. We have better option than weblogic.Admin utility nothing but WLST. If u want to start using weblogic.Admin we have command
    java weblogic.Admin -url adminhost:listenport -username xxxx -password xxxx START managedservername
    java weblogic.Admin -url adminhost:listenport -username xxxx -password xxxx SHUTDOWN managedservername
    java weblogic.Admin -url adminhost:listenport -username xxxx -password xxxx START clustername
    java weblogic.Admin -url adminhost:listenport -username xxxx -password xxxx SHUTDOWN clustername
    If u want to use WLST for starting managed servers and clusters
    check the follwing steps.
    1. java weblogic.WLST
    2. startNodeManager()
    3. TAKE ANOTHER COMMAND PROMPT START ADMIN SERVER
    4. TAKE ANOTHER COMMAND PROMPT
    java weblogic.WLST
    5. start('man1','Server') or start('man1','Server','localhost:7003')
    6. start('mycluster','Cluster')
    7.shutdown('man1','Server') or start('man1','Server','localhost:7003')
    8.shutdown('mycluster','Cluster')
    regards
    abhi
    Edited by: sumanth_abhi on Feb 5, 2009 8:54 PM

  • SQL error - 20013, Admin command cannot enter critical state 'Backup'

    Hello,
    I have a problem to start (ADMIN --> ONLINE) our MaxDB of our Solution Manager.
    I get the following error message:
    SQL error
    -104, DBM command impossible at this time
    - 20013, Admin command cannot enter critical state 'Backup'
    Has someone an idea how to solve this issue?
    Thanks in advance for help!
    Kind regards,
    Joern

    Hi,
    that's my problem. I can't start the database:
    af4lm139:sm2adm 51> dbmcli -d SM2 -u control,xxx db_admin
    OK
    af4lm139:sm2adm 51> dbmcli -d SM2 -u control,xxx db_warm
    Can not flush file '/sapdb/SM2/data/wrk/dbmsrv_af4lm139.err'.
    dbmsrv_af4lm139.err:
    PID 598:      -
    PID 598:  25: RTEThread_Thread::AppointMainThreadToThreadObject(int, SAPDBErr_MessageList&) + 0x392
    PID 598:          Symbol: ZN16RTEThreadThread31AppointMainThreadToThreadObjectEiR20SAPDBErr_MessageList
    PID 598:          SFrame: IP: 0x000000000087d8f2 (0x000000000087d560+0x392)
    PID 598:          Module: /sapdb/SM2/db/pgm/dbmsrv
    PID 598:      -
    PID 598:  26: main + 0x105
    PID 598:          SFrame: IP: 0x000000000040bf15 (0x000000000040be10+0x105)
    PID 598:          Module: /sapdb/SM2/db/pgm/dbmsrv
    PID 598:      -
    PID 598:  27: __libc_start_main + 0xf4
    PID 598:          SFrame: IP: 0x00002adc11d1a304 (0x00002adc11d1a210+0xf4)
    PID 598:          Module: /lib64/libc-2.4.so
    PID 598:      -
    PID 598:  28: __gxx_personality_v0@@CXXABI_1.3 + 0x10a
    PID 598:          SFrame: IP: 0x000000000040bd5a (0x000000000040bc50+0x10a)
    PID 598:          Source: start.S:116
    PID 598:          Module: /sapdb/SM2/db/pgm/dbmsrv
    Kind regards,
    Joern

  • Run shell script Sudo or root?

    Any way I can run an Automator shell script with sudo or as root?
    I've been searching around and have found no information.
    Thanks in advance.
      Mac OS X (10.4.7)  

    Enter a command such as the following into an AppleScript action:
    on run {input, parameters}
    do shell script "ls -l /" with administrator privileges
    --do shell script "ls -l /" password "yourpass" with administrator privileges
    return input
    end run
    To have your password provided automatically to the script, uncomment the second do shell script line, delete the first line, and enter your password between the second pair of double quote marks. The command can be changed as needed; if the command is interactive, it likely won't work through this method.
    (13950)

  • Prime Collaboration Version: 9.0.24376 CLI root/admin Password Recovery

    Dear forum users.
    My client needs to recover both the CLI admin and root passwords for their PCA and PCP VM appliances, Version: 9.0.24376, don't ask why!
    Is the attached document the correct method to do this?

    Hi,
    I have captured from the link which says:
    http://www.cisco.com/c/en/us/td/docs/net_mgmt/prime/collaboration/9-0/administration/guide/PC9-0AdminGuide/usermanagement.html
    We recommend that you write down the root password as it cannot be retrieved
    Resetting Prime Collaboration Assurance Passwords
    As a super administrator, system administrator or network operator, you can reset the password for other
    Prime Collaboration users.
    You can reset the Prime Collaboration Assurance web client globaladmin password using the following
    procedure.
    To reset the Prime Collaboration Assurance globaladmin password:
    Step 1
    Log in as a root user.
    Step 2
    Enter the "goemsam" command:
    Step 3
    Execute the following:
    su admin
    conf t
    username
    username password {hash|plain|remote} password role {admin|user}
    regds,
    aman

Maybe you are looking for