Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Set User ID bit very important! System
I have now found out on two separate occasions that the set user ID bit is very important, even for GUI apps where you might not expect it to be. This is because some GUI apps require to be root in order to get their work done.

I have had problems using both NetInfo Manager and Disk Utility after copying them over from another machine and thus not having their set user ID bit set. In the case of Disk Utility, the situation is worse because there are several executables in the application package, all of which need their set user ID bit to be set in order to get anything done.

The solution to this is use chmod to set the set user ID bit on the executables stored within each package. In fact, you can just to set the set user ID bit for everything in the package. This can be done as follows in the Terminal:

[For NetInfo Manager]
sudo chmod -R 4775 /Applications/Utilities/NetInfo Manager.app

[For Disk Utility]
sudo chmod -R 4775 /Applications/Utilities/Disk Utility.app

NB: This relies on everything in the application package already being owned by root. If this is not the case, just do the following:

[For NetInfo Manager]
sudo chown -R root /Applications/Utilities/NetInfo Manager.app

[For Disk Utility]
sudo chown -R root /Applications/Utilities/Disk Utility.app
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[6,921 views]  

Set User ID bit very important! | 0 comments | Create New Account
Click here to return to the 'Set User ID bit very important!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.