New answers tagged

0

You can use an automated central logging system, like Filebeat + ElasticSearch. The automated collection of logs you are referring to could be CMD+ALT+CONTROL+SHIFT+. which is a sysdiagnose command. It takes a long time to run and isn't generally considered a good idea to use as 'standard' log collection. Using something that is actually made for collecting ...


1

To be even more secure, you can run: csrutil enable --without dtrace but this is not intended for production use according to Apple.


1

You can just use the volume name with diskutil though, there's no need to get the identifier: $ diskutil unmount VolumeName Volume VolumeName on disk1s1 unmounted


1

First, the best way to run a cron script as root is to add it to the root user's crontab. EDITOR="vi" ; sudo crontab -u root -e will allow you to edit the root crontab. Once you are doing that you don't need to use `sudo; inside your script. As for running it every Thursday, check the man page for the crontab table man crontab -s 5 and it will explain all ...


0

This answer comes close to answering the question, but I need to start using sudo su - instead of sudo su in order to switch from regular user to root or the /var/root/.profile script won't execute. Now, unless Apple changes this, regular users by default will get the Bash shell, instead of the Bourne shell, which is unlike the root user. So, for those ...


3

mount | grep /Volumes/foo | cut -d ' ' -f1 or mount | awk '/Volumes\/foo/ { print $1 }'



Top 50 recent answers are included