Sample Header Ad - 728x90

Ask Different (Apple)

Q&A for power users of Apple hardware and software

Latest Questions

2 votes
1 answers
1927 views
Is there a way to adjust the speed of the Photos screensaver (slideshow) in macOS Big Sur and later?
I find the slideshow speed too fast and would prefer a 15-30 second duration. I know the relevant plist is at `/System/Library/PrivateFrameworks/Slideshows.framework/Versions/A/Resources/Content/EffectDescriptions.plist` and I believe the entry that needs changing is `mainDuration` in the `JustASlid...
I find the slideshow speed too fast and would prefer a 15-30 second duration. I know the relevant plist is at /System/Library/PrivateFrameworks/Slideshows.framework/Versions/A/Resources/Content/EffectDescriptions.plist and I believe the entry that needs changing is mainDuration in the JustASlide key. I tried recursively copying /System/Library/PrivateFrameworks/Slideshows.framework/ to /Library/PrivateFrameworks/Slideshows.framework/ and then changing the destination plist, on the hunch that user library settings would override System library settings. This had no noticeable effect. I've found the below Q&As helpful in researching the issue, but I do not want to disable SIP and authenticated root and therefore be unable to re-enable FileVault. https://apple.stackexchange.com/questions/135766/os-x-mavericks-screensaver-changes-pictures-too-quickly-how-do-i-slow-it-down https://apple.stackexchange.com/questions/378905/how-do-i-change-the-image-display-duration-in-the-catalina-screensavers https://apple.stackexchange.com/questions/395508/can-i-mount-the-root-system-filesystem-as-writable-in-big-sur
Hobbsworth (1629 rep)
Aug 14, 2022, 05:53 PM • Last activity: Jul 24, 2025, 01:05 AM
9 votes
2 answers
9239 views
Running mc (midnight commander) under su on Mojave/Catalina/Big Sur/Monterey/Ventura/Sonoma/Sequoia
After installing prebuild mc binary to Mojave and newer ([link][1] and [link 2][2]), and trying to run mc under root with sudo command, I got error: $sudo mc common.c unimplemented subshell type 1 read (subshell_pty...): No such file or directory (2) [1]: https://midnight-commander.org/wiki/Binaries...
After installing prebuild mc binary to Mojave and newer (link and link 2 ), and trying to run mc under root with sudo command, I got error: $sudo mc common.c unimplemented subshell type 1 read (subshell_pty...): No such file or directory (2)
Arunas Bart (1037 rep)
Oct 23, 2018, 10:41 AM • Last activity: Feb 3, 2025, 01:48 PM
0 votes
0 answers
75 views
How to make an app start automatically at login using Daemons?
I have installed Jomo on my Mac, located at /Applications/Jomo.app, and I want it to start automatically when I log into my account. I want to create a script to make it run once I log in, without being able to change this from the Settings App. The problem is that I’ve created a launchd LaunchDaemo...
I have installed Jomo on my Mac, located at /Applications/Jomo.app, and I want it to start automatically when I log into my account. I want to create a script to make it run once I log in, without being able to change this from the Settings App. The problem is that I’ve created a launchd LaunchDaemon to execute the program. I want the program to be executed from an administrator account (with root permissions) so that it runs for a normal user account. However, the keepalive setting is causing it to restart every 4 seconds, which is very annoying. I want it to run just once when I log in and not restart repeatedly. Here’s the .plist file I created for launching the program with keepalive: Label com.jomo.start ProgramArguments /Applications/Jomo.app/Contents/MacOS/Jomo RunAtLoad KeepAlive WorkingDirectory /Applications/Jomo.app/Contents/MacOS Could anyone help me modify the keepalive settings so that Jomo starts only once at login and prevent it from restarting repeatedly? Thank you!
Javier Barea (1 rep)
Dec 16, 2024, 10:57 PM
3 votes
1 answers
3819 views
Getting error in Terminal when typing Passwd *Username*
I’ve been trying to change the root password via Terminal on macOS. I launched Terminal by holding cmd + S while booting, which logged me automatically in as root without password. When I type in `Passwd root` or `Passwd ` and then hit enter, I just get an error message that says > the daemon encoun...
I’ve been trying to change the root password via Terminal on macOS. I launched Terminal by holding cmd + S while booting, which logged me automatically in as root without password. When I type in Passwd root or Passwd and then hit enter, I just get an error message that says > the daemon encountered an error processing request two times in a row. If a log into my user and then try that it works perfectly but I want to change it from the “cmd+S” menu.
Lukas Sokcevic (43 rep)
Jun 13, 2018, 07:16 AM • Last activity: Sep 9, 2024, 11:17 AM
3 votes
2 answers
4766 views
How do I do a find or du without getting permission denied errors
Typical example: sudo du -xm /System/Volumes/Data | sort -n -o .all-du Password: du: /System/Volumes/Data/Library/Caches/com.apple.aned: Operation not permitted du: /System/Volumes/Data/private/var/networkd/db: Operation not permitted du: /System/Volumes/Data/private/var/db/appinstalld: Operation no...
Typical example: sudo du -xm /System/Volumes/Data | sort -n -o .all-du Password: du: /System/Volumes/Data/Library/Caches/com.apple.aned: Operation not permitted du: /System/Volumes/Data/private/var/networkd/db: Operation not permitted du: /System/Volumes/Data/private/var/db/appinstalld: Operation not permitted ... This question asked how to filter them out but I would like to figure out some way to gain permission to search everything on my disk. I don't plan to muck with Apple's private stuff directly but it might help me to figure out what I can do to free up the space. The du command is just an example. I have the same problems with find and ls and any other command that tries to inspect protected areas on the disk.
pedz (493 rep)
Jan 6, 2022, 02:29 PM • Last activity: May 6, 2024, 02:13 PM
5 votes
3 answers
1356 views
How can I have a non-elevated script execute another specific script as root without requiring a password from the user?
I have a script, let's call it `on-event.sh`, that's going to be run at specific times, such as when a particular application launches or quits. The script itself will run as the current user (not root) since I'll be using BetterTouchTool to execute it. However, `on-event.sh` needs to somehow trigge...
I have a script, let's call it on-event.sh, that's going to be run at specific times, such as when a particular application launches or quits. The script itself will run as the current user (not root) since I'll be using BetterTouchTool to execute it. However, on-event.sh needs to somehow trigger the execution of another script that must run as root, which I'll call run-as-root.sh. run-as-root.sh will execute some commands to load or unload specific third party launch daemons (not my own), hence the need to run as root. Since it'll all be happening in the background, it needs to happen without requiring user intervention, so it can't use sudo or AppleScript's with administrator privileges. Because of the obvious security implications, I only want it to be possible to execute run-as-root.sh as root and not any arbitrary script or terminal command. One option I'm already aware of is I could create a launch daemon that opens a socket, waits for a connection, and then executes run-as-root.sh, and have on-event.sh connect to that socket. But that's a more heavy weight solution and I'm hoping for an easier way to do this. How can I set it up so this is possible?
Bri Bri (2930 rep)
Apr 30, 2024, 02:37 PM • Last activity: May 2, 2024, 05:24 PM
103 votes
13 answers
272645 views
How to view Root directory and subdirectories in Finder?
Apparently, the Macintosh HD icon on the desktop points to the root directory but it is not showing all the contents. Some of the files and directories are the same as those which I see when I perform an `ls` on `/` dir in Terminal, but most other directories like `/usr`, `/bin`, etc are not visible...
Apparently, the Macintosh HD icon on the desktop points to the root directory but it is not showing all the contents. Some of the files and directories are the same as those which I see when I perform an ls on / dir in Terminal, but most other directories like /usr, /bin, etc are not visible. I'm assuming that for security, Mac OS X isn't showing the rest of the files and directories. Is there a way to change this behavior so as to make it like we view root folder in Linux? Edit: just found the following [here](http://support.apple.com/kb/ht1528) : > The Finder and the Terminal show different contents for the root > directory. Some items in the root directory are not visible in the > Finder. This reduces visual clutter and enhances simplicity. If you > are familiar with a UNIX-style command line you can use Terminal to > view all items in a directory. As per this note, Terminal has to be used to view all the items. So, what do others do? Use terminal or there is some other way?
Atul Goyal (2195 rep)
Dec 28, 2011, 08:25 PM • Last activity: Apr 15, 2024, 07:33 PM
1 votes
1 answers
959 views
How do I remove the 'restricted' flag from a file without SIP?
I downloaded macOS Installers 10.13.6 and 10.14.6 via `softwareupdate`, and the InstallESD.dmg files are protected by root, and are restricted. FYI: the flags on the file are: `-rw-r--r-- 1 root wheel restricted ...`, I checked using `ls -lO` How do I delete the files WITHOUT disabling SIP (majority...
I downloaded macOS Installers 10.13.6 and 10.14.6 via softwareupdate, and the InstallESD.dmg files are protected by root, and are restricted. FYI: the flags on the file are: -rw-r--r-- 1 root wheel restricted ..., I checked using ls -lO How do I delete the files WITHOUT disabling SIP (majority of answers here , others don't work), because I feel like going through the effort of disabling SIP just to delete one file, and then restart your mac is unnecessary.
Meh. (456 rep)
Jun 27, 2022, 10:09 PM • Last activity: Jan 28, 2024, 02:54 PM
0 votes
1 answers
713 views
Trouble with ~/Applications folder and moving applications on macOS Ventura
I recently encountered some issues with the `~/Applications` folder on my macOS system and need some guidance on how to resolve them. Here's what happened: 1. I contacted Apple Support, and a technical advisor informed me that it is not possible to change the default location for saving applications...
I recently encountered some issues with the ~/Applications folder on my macOS system and need some guidance on how to resolve them. Here's what happened: 1. I contacted Apple Support, and a technical advisor informed me that it is not possible to change the default location for saving applications, and they will be stored directly on the disk instead of the ~/Applications folder. They mentioned that there's no workaround for this. (In retrospect, I think he misunderstood the issue, or did not know the answer and kept repeating what the docs told him.) 2. The ~/Applications folder keeps reappearing periodically, even after I delete it. Consequently, some of my applications, like Chrome Apps, were mistakenly downloaded to the ~/Applications folder instead of the designated Applications folder directly on Macintosh HD. This has resulted in a messy situation. I'm seeking assistance with the following: 1. How can I safely move all my applications from the Applications folder to the ~/Applications folder? I want to ensure that system applications remain intact, and any new user accounts created have access to the standard system applications. In other words, a fresh boot install. When new users are created right now, all my user-installed apps are contained in the new boot. 2. Is there a way to diagnose why this ~/Applications folder reappears repeatedly and why applications are being saved in the wrong location sometimes? I'm keen to understand the root cause to prevent it from happening again in the future. Edit: I would like to consolidate the "Applications" folder into a single location, specifically "~/Applications". In Question 2, it was assumed that all my applications are already in the "Applications" folder on Macintosh HD. However, certain apps like Chrome Apps are installed in the "~/Applications" folder. My assumption is that Chrome searches for the "Applications" folder in the root directory, and if it's not found there, it instructs the Mac to create one in order to download those apps.
Kamil (43 rep)
Nov 1, 2023, 06:06 PM • Last activity: Nov 2, 2023, 10:33 AM
1 votes
1 answers
168 views
restrict my Desktop folder access for root (macos)
I have read somewhere macOS is rootless. That means we can put some restrictions so far that even root can't access to some system folders. I would like to apply this restriction to my Desktop folder. I want to be sure root won't access to this folder and I want to be sure root won't be able to writ...
I have read somewhere macOS is rootless. That means we can put some restrictions so far that even root can't access to some system folders. I would like to apply this restriction to my Desktop folder. I want to be sure root won't access to this folder and I want to be sure root won't be able to write into user TCC database too. I would like that the only way for root to access my Desktop folder is to reboot the Mac in recovery mode, disable SIP and add rules into TCC database. Do you think mac os is designed to do something like that?
Bob5421 (151 rep)
Aug 22, 2023, 09:07 AM • Last activity: Aug 22, 2023, 11:37 AM
3 votes
1 answers
3758 views
Why is Homebrew running MySQL service as root and how to change it?
I used `brew update` `brew upgrade mysql` to bump version from 8.0.23 to 8.0.26 and now MySQL service won't start anymore. I try `brew services start mysql` and after few seconds the service status goes back to stopped. The last line in .err files in `/usr/local/var/mysql` says ``` [ERROR] [MY-01012...
I used brew update brew upgrade mysql to bump version from 8.0.23 to 8.0.26 and now MySQL service won't start anymore. I try brew services start mysql and after few seconds the service status goes back to stopped. The last line in .err files in /usr/local/var/mysql says
[ERROR] [MY-010123] [Server] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
And when I delete the .err files they come back as owned by root. They were not owned by root before. My current user is not root and I do not use sudo to run these commands. Why is this happening and how do I fix it?
jva (161 rep)
Aug 12, 2021, 07:16 AM • Last activity: Jun 24, 2023, 02:26 AM
0 votes
1 answers
165 views
Is it possible to create an application that can control other apps?
Is it possible to get the privilege of an application to control the system and the other apps? For example, I can ask the application I created to control Outlook, write an email, and send it out.
Is it possible to get the privilege of an application to control the system and the other apps? For example, I can ask the application I created to control Outlook, write an email, and send it out.
GoingMyWay (565 rep)
Apr 14, 2023, 06:59 AM • Last activity: Apr 14, 2023, 07:22 AM
2 votes
3 answers
2614 views
Installing old printer drivers (Canon Pixma MX850)
I would like to install drivers for MX850 on macOS Ventura. As expected, upon running the installation package I get prompted with an “incompatibility with current OS” error, which is obvious since the driver is for 10.0.3 or something like that. I disabled auth. root and SIP, then tried mounting. R...
I would like to install drivers for MX850 on macOS Ventura. As expected, upon running the installation package I get prompted with an “incompatibility with current OS” error, which is obvious since the driver is for 10.0.3 or something like that. I disabled auth. root and SIP, then tried mounting. Returns: mount_apfs: volume could not be mounted: Permission denied mount: / failed with 66 I’m still unable to run installation package successfully.
Marek Bílý (21 rep)
Feb 12, 2023, 03:44 PM • Last activity: Feb 14, 2023, 03:58 PM
23 votes
6 answers
228195 views
How do I reset/recover my superuser password without the boot disk?
I lost the superuser password for my iMac and I don't have the boot disk. I already tried the second answer on this page , but every time I type `su` from the command prompt, it still asks for a password that I don't have anymore. Is there another way to reset the superuser password?
I lost the superuser password for my iMac and I don't have the boot disk. I already tried the second answer on this page, but every time I type su from the command prompt, it still asks for a password that I don't have anymore. Is there another way to reset the superuser password?
Paul (501 rep)
Feb 1, 2012, 04:01 AM • Last activity: Feb 12, 2023, 10:06 AM
0 votes
1 answers
271 views
Change owner of the home ~ folder from 503 to my user
I used to use 2 users: admin and user for work. Today I set my user access to admin laptop and deleted the previous admin user. Now, the owner of my home folder is 503. I cannot do anything in my root folder. How can I change my ~ folder ownership to my user
I used to use 2 users: admin and user for work. Today I set my user access to admin laptop and deleted the previous admin user. Now, the owner of my home folder is 503. I cannot do anything in my root folder. How can I change my ~ folder ownership to my user
EvilArgest (1 rep)
Oct 26, 2022, 09:21 AM • Last activity: Oct 26, 2022, 09:34 AM
1 votes
1 answers
643 views
The root user won't disable on my Mac, any ideas why or how to fix it?
When I try disable my root user using Directory Utility/Terminal it doesn't disable. When I enter: ```dsenableroot -d``` it just returns "Failed to disable root user". Not sure what on earth is going on, can't log into the user either.
When I try disable my root user using Directory Utility/Terminal it doesn't disable. When I enter:
-d
it just returns "Failed to disable root user". Not sure what on earth is going on, can't log into the user either.
willthompson (11 rep)
Mar 4, 2022, 03:18 AM • Last activity: Sep 11, 2022, 03:05 PM
0 votes
0 answers
609 views
AppleScript: How to do shell script with admin privileges that only asks for password on first run/never?
I'm trying to write an AppleScript that will update the schedule boot/wake time of computer to be a hour from the time the script is run. My script below works, but every time I run it, I'm asked for admin password. Since I plan to schedule this to run hourly, how do I get this to run silently in th...
I'm trying to write an AppleScript that will update the schedule boot/wake time of computer to be a hour from the time the script is run. My script below works, but every time I run it, I'm asked for admin password. Since I plan to schedule this to run hourly, how do I get this to run silently in the background? Reason: Working remotely, I need remote Macs that get accidentally turned off, to automatically start no later than one hour after it's been turned off. on run tell (current date) to set curHour to (its hours as string) tell (current date) to set curMin to (its minutes as string) if curHour + 1 > 23 then set newHour to "00" else set newHour to curHour + 1 end if set newTime to newHour & ":" & curMin & ":" & "00" as string do shell script "pmset repeat wakeorpoweron MTWRFSU " & newTime with administrator privileges end run
DasKraut (31 rep)
Aug 12, 2022, 10:08 PM • Last activity: Aug 13, 2022, 01:08 AM
0 votes
1 answers
1215 views
Deleting private/ root/ trash(14gb)
M1 MacBook on Monterey 12.4. I have a problem that there is a folder in private/ root that takes up 13 gb of storage which i cannot delete through finder. This folder only contains of long forgotten Visualstudio Packages, Teams packages (I dont use teams anymore) and a bunch of stuff that I AM SURE...
M1 MacBook on Monterey 12.4. I have a problem that there is a folder in private/ root that takes up 13 gb of storage which i cannot delete through finder. This folder only contains of long forgotten Visualstudio Packages, Teams packages (I dont use teams anymore) and a bunch of stuff that I AM SURE that are safe to delete. I deleted them some time ago and they are not gone yet. **strong text** **how can i delete this stuff?**
Rarowcun (23 rep)
Jul 22, 2022, 02:15 PM • Last activity: Jul 23, 2022, 04:01 AM
0 votes
0 answers
211 views
To put my folder(or the alias of it) into the root directory, how to do with the asl.conf file?
I have a requirement to put files in the root directory. I learned from [this website][1] that I can modify /etc/syslog.conf to achieve this goal, but when I open it, I am prompted that the relevant configuration has been transferred to /etc/asl.conf, so I open asl.conf, but I don't know the syntax...
I have a requirement to put files in the root directory. I learned from this website that I can modify /etc/syslog.conf to achieve this goal, but when I open it, I am prompted that the relevant configuration has been transferred to /etc/asl.conf, so I open asl.conf, but I don't know the syntax inside. How should I modify it?
Dr. Octopus (135 rep)
Mar 21, 2022, 08:49 AM
1 votes
1 answers
947 views
Adware file in /var/root/
My MacBook Pro has had a common adware virus on it ExploreSearchResults. I have already gone through all of my extensions and deleted anything related. Anything in the Applications folder that did not belong has been deleted. I also know this virus is common through fake flash player updates so I we...
My MacBook Pro has had a common adware virus on it ExploreSearchResults. I have already gone through all of my extensions and deleted anything related. Anything in the Applications folder that did not belong has been deleted. I also know this virus is common through fake flash player updates so I went through and deleted all of them. I also went through these folders and deleted anything suspicious or included the ExploreSearchResults name
/Users/Shared/
/Library/LaunchDaemons/
~/Library/LaunchAgents/
/Library/LaunchAgents/
I then shutdown the computer and restarted in Safe mode. I ran the activity monitor and found both ExploreSearchResults and ExploreSearchResultsDaemon running. When I force quit both they would reappear so I ran a sample to find the parent folder /Private/var/root/.ExploreSearchResults. I then ran a sudo ls -l /var/root command in Terminal to find this list of files.
total 8  
-rw-r--r--   1 root  wheel    3 Mar 29  2014 .CFUserTextEncoding   
drwxr-xr-x   6 root  wheel  192 Jan  6 05:46 .ExploreSearchResults  
drwx------  24 root  wheel  768 Jan  6 04:02 .Trash  
-r--r--r--   1 root  wheel   10 Sep  9  2014 .forward  
drwxr-xr-x   8 root  wheel  256 Dec 26 13:52 .mitmproxy  
drwxr-xr-x   3 root  wheel   96 Jun 26  2019 .oracle_jre_usage  
drwx------  17 root  wheel  544 Apr 21  2020 Library
Three questions here first is can I safely delete the .ExploreSearchResults file with sudo rm /var/root/.ExploreSearchResults command? The second question is that is this the origin of this adware virus or could it be hidden elsewhere? Last question are all the other files in the root folder safe a supposed to be there? I know that the root folder is extremely important to the system so I am treading lightly while accessing this folder I know MacOS blocks access from it for a reason. sw_vers ProductName: Mac OS X ProductVersion: 10.14.6 BuildVersion: 18G5033
Will K (11 rep)
Jan 6, 2022, 11:56 AM • Last activity: Feb 5, 2022, 04:02 PM
Showing page 1 of 20 total questions