An open community 
of Macintosh users,
for Macintosh users.

FineTunedMac Dashboard widget now available! Download Here

Previous Thread
Next Thread
Print Thread
"sysdiagnose"
#39749 03/30/16 10:40 AM
Joined: Aug 2009
Likes: 15
OP Online

Joined: Aug 2009
Likes: 15
Apple has asked me to run "sysdiagnose" in connection with a bug report I've submitted, and they've given me two alternative methods:
  1. Run "sudo sysdiagnose" in Terminal
  2. Press Shift-Control-Option-Command-Period
What's got me curious, though, is that the Terminal command requires sudo (I've tried, and it won't run without a password.) while the keyboard command doesn't require authentication.

Isn't that an unusual contradiction?


The new Great Equalizer is the SEND button.

In Memory of Harv: Those who can make you believe absurdities can make you commit atrocities. ~Voltaire
Re: "sysdiagnose"
artie505 #39751 03/30/16 01:52 PM
Joined: Aug 2009
Likes: 5
Moderator
Offline
Moderator

Joined: Aug 2009
Likes: 5
Looking at the man page for sysdiagnose in Terminal reveals the full depth of what it accomplishes....and the reason that it requires sudo from the command line.

In order to access the various reports, directories and run the sub-commands involved it requires root permissions.

When run as a key-chord command, it is already at the correct permission level (doesn't require command line entry permissions) and the default output is written to /var/tmp automatically.



Freedom is never free....thank a Service member today.
Re: "sysdiagnose"
MacManiac #39770 03/31/16 09:59 PM
Joined: Aug 2009
Likes: 15
OP Online

Joined: Aug 2009
Likes: 15
Thanks, but I had already looked at the man page.

I was curious about "sysdiagnose" being the only functionality I've ever run across that requires sudo but can also be run without it.

I guess Apple is telling us that the info that may be acquired is so innocuous that a sudo-override is in no way a liability.


The new Great Equalizer is the SEND button.

In Memory of Harv: Those who can make you believe absurdities can make you commit atrocities. ~Voltaire
Re: "sysdiagnose"
MacManiac #39778 04/01/16 02:18 AM
Joined: Aug 2009
Likes: 15
OP Online

Joined: Aug 2009
Likes: 15
The key command seems to be an accommodation to unsophisticated users in that it not only avoids Terminal, it also brings the sysdiagnose report to the front for those who've got no idea how to get to it on their own.


The new Great Equalizer is the SEND button.

In Memory of Harv: Those who can make you believe absurdities can make you commit atrocities. ~Voltaire

Moderated by  alternaut, dkmarsh, joemikeb 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.4.33 Page Time: 0.024s Queries: 22 (0.017s) Memory: 0.5845 MB (Peak: 0.6423 MB) Data Comp: Zlib Server Time: 2024-04-25 22:45:28 UTC
Valid HTML 5 and Valid CSS