Questions tagged [sudo]

Used when executing commands as another user.

Filter by
Sorted by
Tagged with
0
votes
1answer
43 views

How can I remove unwanted preinstalled apps from macOS?

In macOS there are a lot of pre-installed bloatware applications. I know that I will never use them. Examples of such apps are: Chess, Stocks, Messages, TV and so on. While some of them may not take ...
0
votes
0answers
48 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
7 views

sudo error: “ No valid sudoers uid 601, should be 0 ” OSX Catalina [duplicate]

Running OSX Catalina on a 2012 Macbook Pro, I recently edited the etc/hosts file and after I did I started having this problem in during my next startup, I somehow lost all use of sudo, anytime I try ...
0
votes
0answers
16 views

Syntax Error in etc/sudoers and can't edit it in terminal [duplicate]

I was/am trying to run terminal commands without having to use sudo first and must have broke the file. Now I'm trying to fix it and it's giving me this error when I try to edit with the same sudo ...
0
votes
1answer
111 views

pam_tid.so asks for password instead of requesting for fingerprint when docked

I used to use auth sufficient pam_tid.so in the /private/etc/pam.d/sudo file to allow fingerprint authentification when using sudo command. Recently upgraded my NBP for a new M1 under MacOs BigSur (11....
0
votes
0answers
43 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 ...
2
votes
1answer
44 views

When do processes run under root by default?

I know that when I use "sudo" an application can run under root, or if a window appears saying "Application wants to make changes to the system, enter your password for this", they ...
3
votes
1answer
277 views

Running sudo when user has blank password?

I have a user with a blank password, but now I can't run sudo with that account. sudo ls Password: Sorry, try again. Password: Sorry, try again. Password: sudo: 3 incorrect password attempts Is there ...
0
votes
1answer
112 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 ...
1
vote
0answers
34 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 ...
0
votes
0answers
220 views

New to IT and wondering if anything looks fishy in my results from these commands> sudo lsof -Pn -i4 & sudo launchctl list

I have a 2010 MBPro and there's just been finicky things happening with files and emails disappearing so I figure its time I start to learn some more about maintaining and protecting my stuff... ...
0
votes
1answer
662 views

Why can I not use `sudo` as a `Standard` user in macOS?

I do most of the "work" I do on my Mac as a Standard user (Apple parlance for an unprivileged user). I also frequently use the CLI (zsh mostly now) via the Terminal app. I use MacPorts as a ...
0
votes
0answers
11 views

sudo commands such as sudo spctl --master-disable shows errors everytime [duplicate]

I get the following error every time I run Sudo commands : sudo: /etc/sudoers is world writable sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin I used to be ...
0
votes
1answer
65 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 ...
0
votes
2answers
90 views

Why “sudo nano” can bypass csrutil / SIP when enabled and other apps can't?

Initial statement I was installing open source ntfs-3g on my mac (Catalina). At some point, while crsutil was enabled (i.e. System Integrity Protection was on) , I had to modify one line in the ntfs-...
0
votes
1answer
119 views

Not even root can `ls .Trashes` on external disk in MacOS

I want to look in the trash directory on an external disk connected to my Mac. db@15 ~ % cd /Volumes/2TB/.Trashes db@15 .Trashes % ls ls: .: Operation not permitted db@15 .Trashes % sudo su Password: ...
0
votes
1answer
67 views

anything better than dd to copy disk images to SD card in OS X?

I have used dd because it is what the tutorials suggest to do for instance when copying Linux images to SD cards (e.g. Raspbian, Kali, ...). This is done at 1 Mb/sec on my macbook pro. I have tried to ...
0
votes
1answer
111 views

The file system shows there is a user, “_mysql”, that I cannot “su” as root. What is basically going on so I can get mysqld running again

The following shell command sequence makes me realize I don't understand something very basic about how user and group accounts works on MacOS: /tmp$ whoami jondoe /tmp$ cd /usr/local/mysql/data /usr/...
1
vote
1answer
93 views

Edited Sudoers file and Relocated Items

I had to edit my sudoers file on Sierra or High Sierra (I don't remember which one.) After updating to 10.15, I have the Relocated Items folder and I was able to delete the sudoers but I can't delete ...
0
votes
1answer
150 views

Run an application as another user in Mac

I have tried various methods mentioned across many sites, but cant able to run perfectly on newer versions of mac os. I have tried: sudo -i -u otheruser -H OR sudo login -f otheruser And try running ...
0
votes
1answer
45 views

USERS AND GROUPS advanced options cannot access

I wanted to change my mac's name so I changed the "computer name" in SHARING and also the "account name" and "full name" in USERS & GROUPS. Only thing is I didn't change the "home directory". Now ...
2
votes
2answers
435 views

Blank Sudoers File

I have been trying to set up some stuff for JS, but I need to use sudo. Every time I use sudo, I get this message. >>> /etc/sudoers: syntax error near line 80 <<< >>> /etc/...
2
votes
0answers
403 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 ...
1
vote
0answers
26 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 ...
2
votes
2answers
6k views

OS X Catalina: add user to sudoers

Prior to OS X Catalina I could add a user to the sudoers by editing /etc/sudoers with an admin account. With OS X Catalina, I can no longer do this as it seems that Catalina moved to a read-only root ...
0
votes
0answers
130 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
27 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
16 views

Give Standard User temporary full System Preference access using sudo

I'm on Catalina 10.15.4 2017 MacBook air and I'm on a standard account with sudo privileges. To unlock fully unlock System Preferences, I need the administrator password. Is the a way where I can ...
2
votes
2answers
173 views

Giving myself permissions in /etc/sudoers does nothing

I want to give myself permissions to use pmset without using sudo. I added this line to etc/sudoers: myname ALL = /usr/bin/pmset But when I save and close with :wq and run pmset, I get: $ ...
1
vote
1answer
31 views

pkgbuild open URL using default browser

I use pkgbuild to create an Apple installer .pkg. In my preinstall script, I have the following, which opens in Chrome if I invoke it myself, however when run by pkgbuild script, always opens the ...
0
votes
1answer
109 views

MacOSX El Capitan - Running bootstrap-vcpkg.sh results in a build stopped: subcommand failed, any solutions?

When running sudo ./bootstrap-vcpkg.sh, the script stops resulting in a ninja: build stopped: subcommand failed. I have no idea how to continue from here if anyone could help that would be greatly ...
3
votes
1answer
147 views

Closing Terminal window does not kill script run with sudo

X-posting from unix.SE on recommendation. I have a bash script called testing saved within /usr/local/bin. In one Terminal window in macOS I run sudo testing. In a second terminal window, I generate ...
7
votes
1answer
3k views

sudo: setrlimit(8): Invalid argument

After updating to Mac OS Catalina some months ago, I followed the prompted suggestions and changed my shell from BASH to ZSH. Since that time, whenever I use sudo in Terminal, I get sudo: setrlimit(8)...
3
votes
1answer
1k views

sudo: setrlimit(8): Invalid argument after switching Mac OS shell from BASH to ZSH

After updating to Mac OS Catalina some months ago, I followed the prompted suggestions and changed my shell from BASH to ZSH. Since that time, whenever I use sudo in Terminal, I get sudo: setrlimit(8)...
0
votes
0answers
113 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 ...
3
votes
2answers
656 views

Reclaim root access - High Sierra

I installed the Security Update 2020-001 for High Sierra. As a result of this, I am no longer able to use sudo. It just exits with the message sudo: 4294967295: invalid value As requested, here are ...
3
votes
0answers
389 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 "...
1
vote
0answers
223 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 ...
0
votes
1answer
2k views

How to load a 2nd copy of OneCast with a new license?

I am trying to use OneCast to control 10 Xboxes, I have successfully got up to 6 that I can control, I can view all 10, but can't control all 10. The issue I am having is that when I load the app ...
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 ...
4
votes
3answers
290 views

How do I prep a, temporary, root login before editing sudoers?

I want to alter my sudo capabilities on my mac, to avoid password prompts on starting postgres among other things. I'm reading Michael Lucas' Sudo Mastery and generally have an OK idea on how to ...
2
votes
2answers
274 views

Cannot delete a .sparsebundle on / with permissions drwxr-xr-x@ 6 root wheel

Even running commands as sudo I cannot change the permissions or delete the folder. sh-3.2# xattr -l filename.sparsebundle/ com.apple.FinderInfo: 00000000 00 00 00 00 00 00 00 00 20 00 00 00 00 00 ...
2
votes
2answers
3k views

Cannot sudo anymore - macOS Catalina

I have a problem. I have 2 users user (normal user) and admin (admin user). I normally work on user user and when I wanted to update some files (as for example /etc/hosts) I did: $ su admin Password:...
1
vote
3answers
104 views

Deleted symlink to /etc and now missing sudoers

I messed up bad, real bad. I accidentally deleted the symbolic link to my /etc directory. Now I can't create another one because I keep getting an error: $ sudo ln -s /private/etc /etc sudo: unable ...
4
votes
1answer
370 views

Catalina: /usr/sbin/accept command not found

I have an applescript with code below that had been working until Catalina 10.15 update, gives command not found error: do shell script "sudo /usr/sbin/accept '2nd-flr-Library-rm228'" with ...
8
votes
1answer
1k views

Is it possible to use an Apple Watch to authorise sudo in Catalina?

MacOS Catalina let us do some higher privilege actions on our Mac by authorising through a press on our Apple Watch button. Would it be possible to use that feature to authorise a sudo command in the ...
5
votes
2answers
2k views

Can't open an app as root. Sudo command not found

I'm trying to install the torrent downloader Vuze and every time I try to open the Vuze Installer via the terminal, in my case, sudo /Users/naza/Downloads/VuzeInstaller.app after put the password ...
0
votes
0answers
23 views

Can't fix sudoers permission on osx mojave [duplicate]

A friend had borrowed my macbook air running osx mojave and somehow managed to change the ownership of the /etc/sudoers file to userid 501 (rather than 0 which it should be). Because of this, I can't ...
1
vote
1answer
25 views

Catalina: HTTP downloads in Terminal stall without sudo

I am experiencing a weird behavior only affecting running apps in the Terminal (BASH). When running wget someurl, it will timeout. If I run the same with sudo, it works. Other apps have no ...
0
votes
0answers
148 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 ...

1
2 3 4 5