Unix/Linux Go Back    


OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.

sudo chown -R `whoami` /usr/local

OS X (Apple)


Tags
chown, homebrew, mcafee

Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 06-18-2011
chancho's Unix or Linux Image
chancho chancho is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 30 May 2015, 1:15 AM EDT
Posts: 13
Thanks: 6
Thanked 0 Times in 0 Posts
sudo chown -R `whoami` /usr/local

I was following a tutorial on installing Homebrew and I changed the ownership of /usr/local/ to me. Now McAfee Security won't start This is the exact line I typed:


Code:
sudo chown -R `whoami` /usr/local

Then I tried to fix it with:

Code:
sudo chown -R root /usr/local

I still can't start mcafee. It say "McAfee Security software failed to launch. error Code: 1

I'm not sure who the original owner and group were. also in the process of installing Homebrew I changed permissions with

Code:
sudo chmod o-w/usr/local/bin
sudo chmod o-w /usr/local

I Think I changed them back correctly with:

Code:
sudo chmod o+w /user/local  
sudo chmod o+w /usr/local/bin

Does anyone know what I need to do to get Mcafee working again?

Here is what ls -l looks like for those directories

Code:
drwxr-xr-x   2 root  staff    68 Jun 17 10:20 Cellar
drwxr-xr-x   6 root  staff   204 Jun 16 23:58 Library
drwxr-xr-x  10 root  wheel   340 Nov 16  2009 McAfee
-rw-r--r--   1 root  staff  1603 Jun 16 23:58 README.md
drwxrwxrwx  31 root  staff  1054 Jun 16 23:59 bin
drwxr-xr-x   8 root  wheel   272 Sep 23  2010 git
drwxr-xr-x   4 root  wheel   136 Sep 12  2010 hermes
drwxrwxrwx   6 root  wheel   204 May  2 20:57 include
drwxrwxrwx  23 root  wheel   782 May  2 20:57 lib
drwxrwxrwx   4 root  wheel   136 Nov 16  2009 man
drwxrwxr-x   3 root  staff   102 Oct  7  2010 sbin
drwxrwxrwx  10 root  wheel   340 Jun 16 23:58 share

Any advice is welcome

---------- Post updated at 12:32 AM ---------- Previous update was at 12:11 AM ----------

I rebooted and McAfee starts up. I'm hoping that everything is the way it should be. I can't run a manual update, but that may be because its already up to date.
Sponsored Links
    #2  
Old Unix and Linux 06-18-2011
linuxadmin linuxadmin is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 20 August 2014, 5:27 AM EDT
Location: India / Kerala
Posts: 125
Thanks: 24
Thanked 3 Times in 2 Posts
is it working now ?

with what user permission you installled mcafee?
Sponsored Links
    #3  
Old Unix and Linux 06-18-2011
chancho's Unix or Linux Image
chancho chancho is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 30 May 2015, 1:15 AM EDT
Posts: 13
Thanks: 6
Thanked 0 Times in 0 Posts
It was a long time ago, but I know it was my administrative account. I tried to find out from the install logs, but I must be looking in the wrong location.

---------- Post updated at 10:45 AM ---------- Previous update was at 10:40 AM ----------

I just looked in the help file and it says "Prerequisites
You must have administrator rights to install McAfee Security."

---------- Post updated at 01:55 PM ---------- Previous update was at 10:45 AM ----------

I ran the McAfee repair utility (/usr/local/McAfee/repairMSC) Everything is working fine now
    #4  
Old Unix and Linux 06-24-2011
[MA]Flying_Meat [MA]Flying_Meat is offline
Registered User
 
Join Date: Sep 2002
Last Activity: 22 December 2016, 2:08 PM EST
Location: San Fran
Posts: 190
Thanks: 1
Thanked 22 Times in 21 Posts
As a general rule, never change ownership of a system level directory, and definitely do not change that ownership recursively.

drwxr-xr-x 8 root wheel 272B Mar 8 15:58 local

The homebrew developers should get their hands slapped if they indeed require that /usr/local ownership be changed recursively. They have no idea what's in there, or the potential impact, apparently.
The Following User Says Thank You to [MA]Flying_Meat For This Useful Post:
chancho (06-26-2011)
Sponsored Links
    #5  
Old Unix and Linux 06-26-2011
chancho's Unix or Linux Image
chancho chancho is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 30 May 2015, 1:15 AM EDT
Posts: 13
Thanks: 6
Thanked 0 Times in 0 Posts
Quote:
As a general rule, never change ownership of a system level directory, and definitely do not change that ownership recursively
Sounds like good advice. Thank You
Sponsored Links
    #6  
Old Unix and Linux 09-22-2011
doctorfoo1 doctorfoo1 is offline
Registered User
 
Join Date: Sep 2011
Last Activity: 18 June 2012, 10:18 AM EDT
Location: bethlehem pa
Posts: 23
Thanks: 0
Thanked 2 Times in 2 Posts
greetings
drwxr-xr-x@ 14 root wheel 476 May 26 13:07 usr

chmod -Rf 755 /usr
chown -Rf root:wheel /usr

that should set you straight. Then relaunch your apps
The Following User Says Thank You to doctorfoo1 For This Useful Post:
chancho (10-10-2011)
Sponsored Links
    #7  
Old Unix and Linux 11-21-2011
slashdotweenie slashdotweenie is offline
Registered User
 
Join Date: Apr 2010
Last Activity: 25 March 2015, 11:15 AM EDT
Posts: 93
Thanks: 17
Thanked 4 Times in 4 Posts
why you need McAfee Security?
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
whoami export lhareigh890 Shell Programming and Scripting 1 03-28-2011 10:18 PM
Unable to use the Sudo command. "0509-130 Symbol resolution failed for sudo because:" Chloe123 UNIX for Dummies Questions & Answers 1 12-21-2009 04:09 PM
Finding whoami chun02160 Shell Programming and Scripting 1 05-13-2009 02:26 AM
The "Whoami" command John Dobson UNIX for Dummies Questions & Answers 1 06-10-2008 11:38 AM
chown and NIS Jody UNIX for Dummies Questions & Answers 2 07-01-2003 02:57 PM



All times are GMT -4. The time now is 03:43 PM.