Questions tagged [sudo]

Used when executing commands as another user.

31 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
431 views

macOS - User can perform admin tasks but cannot sudo

MacOS Catalina 10.15.3 Centrify 5.5.2-702 UserA is a "Mobile" (AD Authenticated) user showing as "Admin" in Users & Groups UserA is shown as a member of the local "admin" group when running "...
3
votes
0answers
307 views

What is a reasonable command to prompt for sudo password with sudo -A?

My question is definitely related to What option should I give the sudo command to have the password asked through a graphical interface? But my question is slightly different. I know how to use sudo ...
2
votes
0answers
479 views

Sudo doesn't work in MacOS Catalina

Since updating to Catalina I haven't been able to do sudo. I'am an admin user, but every attempt to use sudo (such as sudo visudo or sudo vim /etc/sudoers) gives me this message this user is not in ...
2
votes
0answers
715 views

Reduce or disable DNS cache in 10.13 and 10.14

I'm trying to get a hold of the property list, I'm guessing, that specifies the TTL or the amount of records held of the DNS cache of the system, if is not user/root accessible, then command that ...
2
votes
0answers
154 views

Sudo intermittently fails

As part of my work I have to run various commands using sudo (I am a local admin on the machine). Recently I have experienced a very strange situation where despite having previously run sudo ...
2
votes
0answers
53 views

How to get output from the console.app from a non-admin account?

I almost exclusively use a non-admin account for everyday use. Only for installing software, etc. I log in with the admin account. This normally works very well, however, there is one issue I haven't ...
2
votes
0answers
396 views

Sudo works for a whole day and then stops working until a reboot

I currently have admin access to a Macbook Pro running OSX 10.8.4. I have been sudoing at the terminal for the whole day with no restart until sudo stops working. I rebooted the operating system and ...
1
vote
0answers
39 views

How to automount an external drive to hold ~/LIbrary[/Developer[/CoreSimulator]]

Xcode simulators as usual multiples and expands turning ~/Library into a dumpster now on 256gb drive there is no space to install xcode 14.2 and i;m thinking to resolve the issue extensively buying an ...
1
vote
0answers
28 views

How to remove unmounted drive folders from root directory

Recently I have noticed that in the / directory, there were a lot mounted volumes from my old NTFS drive (which I haven't been using for a long time). Several failed attempts to delete them are listed ...
1
vote
0answers
251 views

Sudo error deleting TM backup

I am trying to delete a TM backup on Mojave using sudo (this has worked in the past). Any ideas why I'm now getting this error - apparently 4294967295 is a UID in the sudo command. I get the same ...
1
vote
0answers
85 views

“sudo chmod 0 /” deployed as script to remote MACs via Landesk

This probably will not make a lot of sense. We have users that have left the company and have not returned their macs. We are using Landesk as main managing platform, however the MAC managing part is ...
1
vote
0answers
975 views

How do I repair a “bogus map” error in GPT?

I have a MacBook Pro Retina with OS X Yosemite ver. 10.10.5 with one physical drive 256GB. This drive had 3 partitions: 1 - Mac, 2 - Mac Recovery, 3 - Win 7 64 bit. Due to low disk space on the Win 7 ...
1
vote
0answers
4k views

Write write to /usr/lib on macOS Sierra

I'm on macOS Sierra 10.12.5, and trying to add a library to the usr/lib folder (for an OpenFrameworks project I'm working on). I've seen similar questions here, here, and here. However, none of the ...
1
vote
0answers
2k views

macOS terminal sudo not working

My sudo command is not working. After I type sudo and hit enter (or type sudo with some command and hit enter), the cursor moves to the next line which remains blank. It does not ask my password or ...
1
vote
0answers
123 views

Getting bash-3.2 everytime I “su”

Whenever I su, PS1 changes to \s-\v\$. Why is that? Tried setting it, but it still changes when I su again, or exit the terminal. What to do?
1
vote
0answers
423 views

OSX Flush DNS without sudo

I have a Mac that keeps messing up its DNS (this may be a wider network issue, we have windows clients that are having problems too). Whilst I try to understand the DNS issue I'd like to set an 'icon' ...
1
vote
0answers
2k views

My MBP (13 inch, MID 2010) will not start up

I have used the internet for the past 2 weeks in search of something that will help me troubleshoot/repair my MBP. It wont boot in Safe Mode using the SHIFT key. Following is everything I have tried ...
1
vote
1answer
906 views

How do System Preferences remain unlocked?

To make certain modifications to system preferences, you first need to unlock the preference pane. Some of these changes are done on a system level and the command-line equivalent would need to be ...
0
votes
0answers
55 views

How can I get permissions for brew?

As recommended, I created an admin user and a regular user which I use for regular usage. for some reason I keep getting asked for my sudo admin password (when installing apps, updating apps, etc) - I ...
0
votes
0answers
74 views

Shimo/Clean My Mac require passwords after messing with sudoers

I messed with sudoers file and sudo was not working. I fixed the issue (booted from recovery mode, mounted root filesystem and fixed permissions) and sudo is now working properly, but after this ...
0
votes
1answer
160 views

MacMini M1 broken sudo

So I manage to break sudo during this one day of owning MacMini M1. I manage to break sudo during editing /etc/pam.d/sudo. How I can edit it back? I tried using terminal in recovery mode. This file is ...
0
votes
0answers
165 views

Mac OS 10.15 sudo does not work

Sudo command does not work: Peters-MacBook-Pro.local:~ peter$ sudo vi Password: Sorry, user peter is not allowed to execute 'usr/bin/vi' as root on Peters-MacBook-Pro.local. root account is also not ...
0
votes
0answers
31 views

Hard Disk has no partition map, cannot be unmounted or erased

I have a 2Tb 2.5" hard disk that was formatted for a PC (but had errors), and have now connected it to my Mac. It is connected externally via a USB to SATA cable - I have tried two different USB to ...
0
votes
0answers
136 views

How to run a sudo command on startup - launch daemon help

I have a sound problem on my 2010 Mac mini. I found a solution that uses a sudo command in the Terminal app. But this method only works one time, so when the computer turns off and then back on, you ...
0
votes
0answers
48 views

How to execute admin level command via remote login without typing password?

I would like to allow a remote script to access my Mac (Catalina 10.15.2) at the root level. I know that I can enable keyboard-less access at the user level, by using publickey authentication, via ...
0
votes
0answers
160 views

How to add Sudo Insults with TouchID without disabling SIP

I am following a guide to recompile sudo with insults. However, I felt uncomfortable disabling SIP so I modified it a bit to allow me to use it with SIP enabled. Unfortunately recompiling sudo broke ...
0
votes
0answers
25 views

How can I create an alias/shorcut to sudo/root an app permanently?

I would like to have an alias to run an app as root always. I am trying to save time and not go through the terminal commands. Thanks!
0
votes
0answers
249 views

Terminal stuck on sudo indefinitely

I'm on the latest version of Mojave 10.14.4 (18E226), Darwin 18.5.0 on a 2012 Mac Pro. The system has become totally unusable for any sudo commands. It gets stuck indefinitely whenever I fire a sudo. ...
0
votes
0answers
67 views

Should I add sudo before the fastboot command on macOS just like on Linux?

I will be using fastboot on macOS. I will be following this tutorial. The guide only mentions Windows and Linux, and I do not wish to install those on my Mac right now, and as I think fastboot is the ...
0
votes
0answers
793 views

How can I play a sound from the command line running as sudo?

While typing afplay danger.mp3 in the Terminal will play the .mp3, doing sudo afplay danger.mp3 or sudo su and then afplay danger.mp3 does not. Any idea why is this? How can I use the afplay command ...
0
votes
1answer
78 views

How to get access to an admin account without an admin account without losing data

My wife just left me, but changed the password to the admin account on my iMac just to spite me, and I have no way of contacting her. I have a separate managed account for my brother when he was ...