I do a moderate amount with the command line but have inadvertently done something that confuses me.
I needed to download the contents of a webpage with wget so I did this:
wget -P -r ~/Documents/sites/ds_site https://www.examplewebsite.org/
That apparently has changed my permissions for the folder. Or so it would seem. When I cd
to the site, once I get past Documents, autocompletion stops. I can finish the folder path (ds_site in this case). But when I try to check the file contents, I get the following message:
ls: .: Operation not permitted
However, there are no issues with seeing, opening, creating or removing a file or subfolder while using Finder. Just cli and only for under the Documents folder.
What I've done. Checked for permissions both with Finder
and with the command line. The file shown is just to illustrate the problem is also for files, not just subfolders. Again, this is fine in Finder.
Any ideas of how I can fix this?
Terminal.app
oriTerm2.app
to theFull Disk Access
permission panel. – Joy Jin Nov 22 '21 at 03:10diskutil resetuserpermissions / $(id -u)
– Nov 22 '21 at 05:54