Questions tagged [root]

root is the account that has access to all commands on a Unix-like system

Filter by
Sorted by
Tagged with
237
votes
3answers
156k views

What is the “rootless” feature in El Capitan, really?

I have just learned about the "Rootless" feature in El Capitan, and I am hearing things like "There is no root user", "Nothing can modify /System" and "The world will end because we can't get root". ...
94
votes
9answers
36k views

Is it 'OK' to use the root user as a normal user?

I have enabled the root user on my Mac so I can log into it and run Finder etc. Being the lazy person that I am, just transferred everything from my home directory to /var/root. I'm not too sure of ...
76
votes
11answers
183k 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 ...
19
votes
4answers
364k views

How do I run terminal in sudo mode?

I was trying to install npm, and I got npm ERR! Error: EACCES, Permission denied '/usr/local/lib/node_modules' npm ERR! npm ERR! Please use 'sudo' or log in as root to run this command. npm ERR! ...
17
votes
5answers
160k 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 ...
15
votes
4answers
86k views

How do I execute a bash script that requires root privileges?

I have this script lines from my ISP: sudo bash echo "plugin L2TP.ppp">>/etc/ppp/options echo "l2tpnoipsec">>/etc/ppp/options It works if I paste line by line into Terminal. I want to ...
13
votes
6answers
37k views

How do I open a file as root in TextEdit on Lion?

How do I open a file as root, in TextEdit? I've tried these commands as root, but TextEdit always say it's locked: open -e /etc/apache2/httpd.conf open -e -F /etc/apache2/httpd.conf open -e -F -W /...
12
votes
1answer
29k views

how to execute mkdir in /home/ directory

I want to create a directory 'administrator' in my /home/ directory but it won't allow me as it alway returns the error Operation not supported. Any ideas? Roberts-MacBook-Pro:home robert$ pwd /home ...
10
votes
1answer
1k views

Why am I able to open Wireshark and capture packets in macOS without root privileges?

As far as I know, capturing packets using Wireshark requires root/administrator privileges. In Windows, it prompts for UAC elevation and runs with administrative privileges. The same thing in Ubuntu; ...
7
votes
4answers
415 views

How do I protect myself from the root vulnerability in macOS High Sierra?

On 28 November, a root vulnerability was discovered by a user in which the root account can be accessed by entering a blank password. This affects all users. Tech Crunch as an animated gif showing ...
7
votes
3answers
2k views

Why can't I access all commands in recovery mode?

When I'm trying to run terminal commands in recovery mode on my MacBook Pro, most commands just won't work even if I'm root (the last character of the default(PS1) prompt is a '#'). So why is this and ...
7
votes
2answers
4k views

OSX Mavericks Root User

I know it is possible to enable root user and then logging in as the root user. But is it possible to get root access with your admin account in OSX Mavericks? It is kinda annoying to always type the ...
7
votes
2answers
56k views

How to open the finder as root [closed]

I'm back some twenty years after my last Mac. I've got a brand new iMac running Yosemite and I do need to access an external HD formatted on (Gnu/Linux) ext4 (a journaling file system). I downloaded a ...
7
votes
5answers
26k views

Remotely brick a stolen iPhone or iPad

I asked a similar question on android.stackexchange.com and I'd like to see how the answer compares for iOS devices: If my iPhone is stolen, can I remotely brick the thing, so resale value drops to ...
7
votes
6answers
7k views

How do I get my LaunchAgent to run as root?

I want to run a process as root at user login. I created /System/Library/LaunchAgents/eXist.plist with rx—r—r— permissions: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//...
5
votes
6answers
16k views

How do I change the root password?

Everybody seemed very confused by the story and extra information I gave so I will simply ask a very straightforward question. Irrespective of your personal opinion on the utility of doing so; how ...
5
votes
1answer
5k views

Cant remove stalled (inProgress) Time Machine backup

I have recently switched to a newer MBP from a TM backup. Unfortunately something seems to have gone wrong during the migration. TM cannot complete a backup, it just keep accumulating into a directory,...
5
votes
2answers
511 views

Difference between macOS login root and Darwin Terminal root

The recent major security flaw in macOS 11.13.[1,2] has turned the usual advice of not enabling the root account on its head. But it has left me a bit confused about exactly what root account is being ...
5
votes
0answers
229 views

Easiest way to definitely, positively delete a file in macOS (10.14+) as root?

I have a 1TB main drive where ~400GB seemingly got stuck in /Volumes/Time Machine Backups/ after the 10.14 update. I managed to delete most of it, but some files and folders are extremely resilient ...
4
votes
2answers
3k views

How do I grant root access to user files in Mojave?

I upgraded my laptop to Mojave. For years, my backup strategy has included using rsync (MacPorts rsync 3.1.3) to copy files to a file server. This stopped working properly, now showing some errors ...
4
votes
3answers
2k views

High Sierra root vulnerability: how to check if someone logged in remotely?

In macOS High Sierra, where can I find the IP addresses that logged in to my Mac through Screen Sharing or ssh? That would be useful in light of the recently discovered root login vulnerability.
4
votes
3answers
3k views

How do I delete a locked, invisible file in the Trash?

On an external disk (that contains a clone), the /.Trashes/501/Users/myusername/Desktop folder contains (within some subfolders) a locked invisible file that I cannot delete. The whole folder starting ...
4
votes
2answers
592 views

macOS System Integrity Protection Configuration

I was looking to lock down the configuration on some macs, and wanted to know if there is any way to change the files and folders that SIP protects. I know it can be disabled, and its current rules ...
4
votes
1answer
1k views

root user can't create a file in /usr/lib

I am trying to follow this advice from stackoverflow and copy some library files from /usr/local/Cellar/openssl/1.0.1c to /usr/lib/. I have tried cp, ln -s and even touch, but they all fail. I am ...
4
votes
2answers
656 views

Protect each user account in Lion?

I have enabled File Vault in Lion on a shared computer with several user accounts. Is it possible to encrypt each user home directory such that other users cannot access their data? As it stands, I ...
4
votes
3answers
811 views

AppleScript do shell will not work on Application Support directory

I've spent the day doing several researches and attempts on how to copy a file that is located inside an AppleScript app to the root Application Support directory (hdd -> Library -> Application ...
4
votes
2answers
2k views

What is “ss_conn_service ” running on OS X?

I'm using OS X El Capitan on iMac 21.5". As an experienced user, I follow activity monitor sometimes for security of my device. For 2-3 days,"ss_conn_service" is running on my device. I cannot ...
3
votes
3answers
1k views

How can I append to a file using dd?

On Linux systems, I can append to a system file like this: echo "# New data" | sudo dd of=/etc/config_file conv=notrunc oflag=append But the dd command under OS X doesn't have the oflag option. Is ...
3
votes
1answer
60 views

enable program for all users (root included) installed via Terminal from source (tarball)

I can to enable some program installed from tarball... using this command: echo 'export PATH=/usr/local/SomeProgram/bin:$PATH' >> ~/.bash_profile echo 'export MANPATH=/usr/local/SomeProgram/...
3
votes
2answers
1k views

how would I set the default web browser for the root user

How do I change the default browser for root in OS X 10.8.3 Do I need to enable the root user first?
3
votes
1answer
126 views

How do system services modify protected directories with system integrity protection

I am running macOS High Sierra. I was wondering how system services (e.g. Time Machine with the protected backup directories) could modify the directories that root cannot access. I was trying to ...
3
votes
1answer
10k views

Configure sandbox permissions

While trying to modify a property list I was rather surprised to receive the following error sh-3.2# cp com.apple.mDNSResponder.plist com.apple.mDSNResponder.plist.backup cp: com.apple.mDSNResponder....
3
votes
1answer
715 views

Root password stopped working

I used to be able to enable “root” user and log in under it. (I know this is not recommended but let's just assume there is an actual reason for doing so.) I just repeated the instructions, set ...
3
votes
0answers
82 views

How ask for administrator password before mounting any disk or image?

I have a place with some mac computers and I don't want anybody mounting anything. Is there a way to ask for administrator's password before mount an USB or image?
3
votes
0answers
62 views

Protecting the system wallpaper

Objective To require the root password when changing wallpaper on my system when logged in as myself. Similar behavior to editing your security settings in Preferences where a password is required to ...
2
votes
1answer
797 views

Issue with creating a symbolic link inside /System folder

I am trying to make a symbolic link inside the /System folder and even if I run the command as su I get the following error message. macbook-pro:~ root# cd /System/Library/Perl/Extras/5.18 macbook-...
2
votes
2answers
2k views

Move .ssh folder from /var/root/

I tried to set up a ssh key for easily logging into the server which is hosting my website : ssh-keygen -t dsa -b 1024. The keys (public and private) have been saved in /var/root/.ssh which I dont ...
2
votes
1answer
353 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 ...
2
votes
1answer
50 views

root entries in last command

I ran the last command in my terminal on my macbook pro high sierra and in the output where entries for the root user. How is that possible? Should that user not be deactivated? Here are the entries ...
2
votes
1answer
230 views

Can't launch application as root: secinitd > registration request failed

I just tried to launch an application as root with sudo /Applications/Calculator.app/Contents/MacOS/Calculator but it doesn't work anymore. It used to work because I had scripted my own workflow in ...
2
votes
5answers
10k views

Only root login remains (all other users gone) and even root hangs, so can't access!

We have been locked out of our iMac running on El Capitan. Basically all known user accounts have disappeared. Only "other" remains which seems to the "system administrator" or "root" and when trying ...
2
votes
2answers
719 views

difference b/w various commands for getting root access in terminal

I have used linux:Kali for a while and to get root access i just needed to type: su in terminal. But in OSX i need to type in su - what does this - mean? If i just type su in terminal than i get sh-...
2
votes
1answer
20 views

Disabled then enabled kext signing; some keys no longer work properly

MacOS Sierra MacBook Pro mid2012 I disabled kext signing (to use change some icons in liteicon, which I never got to), and pretty soon some of my keys didn't work like they should. I then enabled it, ...
2
votes
2answers
608 views

Trick mac into thinking battery is connected (if I unplugged it)?

I'm running Sierra 10.12.6 on a 2015 MacBook Pro and I was wondering if anyone knew a way to trick the OS into thinking the battery is connected when it's actually unplugged. I'm sure you guys will ...
2
votes
2answers
1k views

Require login for Single User mode?

Is there a way to require a password to login to single user mode? I don't want to use a firmware password, because that will not only disable single user mode, but also Startup Manager (which I use ...
2
votes
1answer
52 views

Is it possible to create a user with all admin rights *except* the ability to interrupt a particular process and access a particular folder?

On Windows, it's not really doable. It is possible on linux with mandatory access control (for example). So you can have a web filter running, but the sudoer wouldn't be able to interfere with it (at ...
2
votes
1answer
382 views

How do I ensure that the macOS root account bug is fully fixed on my machine?

There has been a large amount of confusion around Security Update 2017-001, especially due to rumors of the fix being reverted when running macOS version 10.13.1. I am looking for a way to be fully ...
2
votes
1answer
163 views

Launching apps behind the lock screen?

I need to run an application behind the lock screen, e.g., just as Time Machine or Sophos antivirus (and others) can run when the screen is locked. Specifically, I would like to schedule an ...
2
votes
1answer
224 views

Root password same as admin?

I have a mac with single user on it (who is Admin). I see tutorials which ask for the root password, is this the same as my user password or something else?
2
votes
3answers
21k views

How do I run sudo command from standard account?

From what I've read, it is good security approach to have two accounts, one admin and one standard. I am trying to run the following command in terminal on my standard account sudo mv /System/...