![]() If you are not sure about your mac username, open Finder > go to Macintosh HD > Users > Look for your folder’s name. Staff is the non-admin user group in Mac. Press enter, a TextEdit window should pop up and you can then freely edit the file as root. ![]() Seperated by a space after the application path, is the path of nf (the file to edit) sudo command will run the TextEdit application as root Once the terminal is loaded, type this in: (copy and paste if possible) sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /Applications/XAMPP/etc/nf Run Mac OS TextEditor application in sudo mode using Terminal and edit the fileįirst of all, open up your Terminal by typing “Terminal” in your Spotlight search box (upper right corner) Thus we will use Method 2 to perform this task. Vi editor is a command line editor that is very not user-friendly to use, edit and save (at least for beginner) Sudo mode refers to running the file as superuser or root. ![]() Terminal is a command line tool just like Window’s CMD. Run Mac OS TextEditor in sudo mode using Terminal and edit the file Edit using vi editor in sudo mode using TerminalĢ. There are 2 or more methods that you use to edit such file:ġ. Editing nf as Adminįirst of all, editing this file is not as easy as using a text editor program and edit it because this read-only file can only be changed by root or superuser, not even administrator. Thus, it has no permission to add/edit your server files so WordPress attempted to use FTP to perform its job. This problem occurs because the Apache HTTP service was being run as “nobody” while your Mac user name is a different name. After searching for solution online, I found that this is a permission problem due to your Mac’s username is different compared to the default user name in XAMPP for Mac, called nobody.Īs far as I understand, this has nothing to do with FTP settings. If you are using XAMPP for Mac OS like me, and was asked to enter FTP login information when you upgrade WordPress core and download themes or plugins, then this guide is for you.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |