Terminal - Permission Denied

I changed from bash to zs - but maybe the terminal is not properly configured ? I allways get this : permission denied or not found .


Wery irritating.

iMac 21.5″, macOS 12.6

Posted on Sep 22, 2023 7:13 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 26, 2023 8:34 AM

garage4996 wrote:

star@stars-iMac documents % ls --l
ls: unrecognized option `--l'
usage: ls [-@ABCFGHILOPRSTUWabcdefghiklmnopqrstuvwxy1%,] [--color=when] [-D format] [file ...]


That (cryptic) usage info is intended to show the list of switches available.


Generally:

ls -l

not

ls —-l

This is why </> code insertion matters.


For what can also be a cryptic command syntax description, use the command:

man ls


Bitwarden probably has one, as well:

man bw


In general, some shell commands will use short options and one hyphen, and others use long switches and two hyphens, and most of the latter also support the former. The bw command appears to support long switches, per what has been posted and published.


There are also a few cases where two hyphens with no switch are used as a delimiter, but that tends to be fairly rarely necessary.


Thanks for this wery useful information - after a long time only I got an explanation what thesse [ ] brackets means - thesse are not ordinary brackets ? As I typed ( surely ) something wrong this usage : Ls appeared and thes brackets [] . But as you say thesse are not part(s) of a command - thesse [] is only an instruction or explanation how to use the ls command ? After Ls there are 4 possibilities inside the brackets [] the first one is someting [-@ABCF…… difficult to understand what it can be the second one [ —color …. this is also something to type ls —color as I think The third one [ -D format ] difficult to understand the 4 th one is also not clear [ file ….]


Here is the zsh documentation: https://zsh.sourceforge.io/Guide/zshguide.pdf


As for the bw command syntax past the website and the man page (if any), ask Bitwarden support for help.

34 replies

Sep 23, 2023 1:32 PM in response to MrHoffman

I typed


star@stars-iMac documents % ~/bw create attachment --file/Users/star/documents/encrypted.asc --itemid 1e787638-a5cb-59ff-ab17-ac600041e3b5


error: unknown option '--file/Users/star/documents/encrypted.asc'


star@stars-iMac documents % 


All the same it is not possible to create an attachment -strange . But also some elementary knowledge I need to know. the ls ~/tools I now learned -some progress .


It can be that I type in a 1 . wrong item id ? 2 . a wrong file name 3. wrong location .


But when I type documents % ~ ls **/encrypted.asc it is showing clearly that the file is in documents and it most be in the directory of documents as I am searcing there . So the location is wery clear and the file extenstion is clear - but I get 4 itemid to this file - encrypted.asc


Is there any way to see if this shell is correctly configured ? Or how to werify its normalcy ?

Sep 24, 2023 6:29 AM in response to MrHoffman

star@stars-iMac ~ % ~/bw create attachment --file ~/Documents/encrypted.asc --itemid ea1d9897-1289-4bb1-ba0d-ad9f0008d8ce 


? Master password: [hidden]


Not found.


star@stars-iMac ~ % 


Space ? I tried even with folder id as I could see the folder id too. Not found . But I see clearly both in finder and in the terminal in the directory Documents that this folder or file is there. Not found .


But I think I do some spelling misstakes .

Sep 24, 2023 7:36 AM in response to MrHoffman

Bw stands for Bitwarden - they do a great service and I am wery happy for them except when this kinds of things happen.


Bitwarden is a really good company ,since I use Bitwarden and Duo Mobile I had no any problems with my accounts which are 100 ds . and more. Using Bitwarden along with the 2fa DUO mobile is really a good invention.


The only drawback with Bw is that it is not so nearly userfriendly -I am a business man and not a computer genius -but to use Bw one needs to be sure a COMPUTER ENGEENER TOO .


Apple has this KEY CHAIN -but the passwordgenerator is too small -also I discovered APPLE KEY CHAIN too late when I already registered with Bw . It would be a sensation if Apple could offer a similar service as Bw with a real support only for that compartment.


I recommend for all people to use any passwordgenerator along with the 2fa -but it seems that not so many are willing to use it.


Bw maybe not the best as it is not that easy to manage -but sure there are others which are more human.



Sep 25, 2023 3:22 AM in response to MrHoffman

</> this is not clear at all what this means ?? Posting code here ?? What code ? You mean the itemid? That is an id and not a code and it is not real .


The lattermost issue is (here) harmless, but using the wrong case in other places within the shell can be bad. Adding spaces can be catastrophic in some commands and places, too.


This I understand. But I need help from here - somebody whom can show me in live what to do .I do not understand anything of this sentence : You really need to use </> tags when posting code here.



What this really means </> ? and what code ?


As I looked up ls -l I have no permission to change anything on the macintos disc so I need to change this too - as I think .

Sep 26, 2023 7:31 AM in response to MrHoffman

star@stars-iMac ~ % ~/bw get item Documents/recovery_codes.txt
? Master password: [hidden]
Not found.
star@stars-iMac ~ % 



Ah ,now I understand the meaning of </> tags . by typing bw get item here I try to get the id number of the file recovery_codes.txt I searched with the command ls **/ and it showed that this file is in the documents and it is in the documents . Still the ID number is not found. The information I get from You and Ruggiero are wery useful . Now I will try to get the ID number of this file -but really I do not know how.

Sep 26, 2023 8:15 AM in response to ruggiero

star@stars-iMac documents % ls --l
ls: unrecognized option `--l'
usage: ls [-@ABCFGHILOPRSTUWabcdefghiklmnopqrstuvwxy1%,] [--color=when] [-D format] [file ...]


Thanks for this wery useful information - after a long time only I got an explanation what thesse [ ] brackets means - thesse are not ordinary brackets ? As I typed ( surely ) something wrong this usage : Ls appeared and thes brackets [] . But as you say thesse are not part(s) of a command - thesse [] is only an instruction or explanation how to use the ls command ? After Ls there are 4 possibilities inside the brackets [] the first one is someting [-@ABCF…… difficult to understand what it can be the second one [ —color …. this is also something to type ls —color as I think The third one [ -D format ] difficult to understand the 4 th one is also not clear [ file ….]


Yes the dashes - - should not be separated from the name - that will break the command as they are one and not separate.


To prevent the command processor from seeing the space character in the file name you should enclose the complete file name in double quotes. This hides the space character and it will not act as the split character.


This on the other hand is not really clear . in double quotes ? You mean tesse marks ” ” ?




The itemid can be wrong -also I have not permission to change documents .Not as I seen , not in any directory I have permission to anything there except as I seen read and write ….


But then this also : How to get the files item id ?








Sep 26, 2023 8:52 AM in response to MrHoffman

The Bitwarden support could not figure this either out - but it is here where the Cat is burried - also Bitwarden is not so a userfriendly app -surely it is a great help -but when one tries with thesse things then this Cat will be burried .


Also the support wrote type [ bw get mailfence ] but I discovered that I need to type [ bw get mailfence.com ] With this command one should get the files item id -or what it is now .


But when I type this bw get mailfence.com


I get thesse numbers


More than one result was found. Try getting a specific object by `id` instead. The following objects were found:
8u9d3935-904b-4ea0-919b-ac600012d0a8
6e716738-a5cb-45ff-ab17-ac600041e7b1
ebb4d9a3-9122-4112-9b99-ac72014bbabd
31b327d0-bf2e-3218-bf2c-ac6000410112


But thesse most be the item id ? Or file ide ? What is what is not clear here at all . In the documents it is this file recovery_codes.txt But as you say there are not an item identifier in my FINDER - then how to get an ITEM IDENTIFIER ?


The numbers I changed randomly so there is no danger to leave them out here .

Sep 26, 2023 9:09 AM in response to MrHoffman

As I suspect I need some more knowledge about the different aspects of the terminal itself -then I can talk with them on their terminal laguage -as it is now it is better to study the terminal -this will take some months or even 1 year .I do not know how to or where to get a terminal course here in Sweden .I also wrote to some schools here in Sweden -but then one need to be in their University or what it is -now so much I do not need to know .


Also there are too much hurry with ewerything here and I am not so much in that mood. The terminal is wery important -not only for Bw but for ewerything . As I seen in the terminal things are accomplished in a few minutes which othervise may take a hour or more -it is wery important subject -but also as you said -the terminal can be tangled or even crashing the whole computer if not careful .This why I am not doing there anything so much . But difficult to get a terminal Guru here.

Sep 26, 2023 9:37 AM in response to MrHoffman

star@stars-iMac ~ % /Users/star/Documents/mailfence\ encrypted\ ask
zsh: permission denied: /Users/star/Documents/mailfence encrypted ask
star@stars-iMac ~ % 


As you see I get allways thesse output : permission denied - and no matter whatever I draw there from the finder this allways appears.


-rw-rw-r--


This is what appears in documents after the ls -l command .I think I have no any permissions to anything there - but this has probably nothing to do with the Macintos disc -as you wrote : ..I will not be able to wrote anything there if the disc changes - so it is better to not to touch that disc.

Sep 26, 2023 4:27 PM in response to MrHoffman

But the correct file name is : mailfence recovery_codes.txt


So what is then the correct file name ?


Yes probably I will contact Bitwarden in near future .


ls -l command gives a lots of no no no results that is -rw-r- - r - - -


   drwx------@  264 star  staff       8448 25 Sep 03:14 Documents


but here this most mean read. write .execute ? So I may have permission to change things in the directory of documents.

Sep 26, 2023 5:07 PM in response to MrHoffman

star@stars-iMac ~ % ls **/recovery_codes.txt
Documents/recovery_codes.txt
star@stars-iMac ~ % 


The shell found it in Documents the ls **/ command is really nice -it finds most of my typing .The location is important .


I think that the main problem here is that the correct ITEMID is missing - and how to get that is a mysteri . Probably better it is to create a new folder and then somehow give it a new ITEMID number.


I think that somewhat most be possible to either find the correct itemid number or get a new one.

Sep 26, 2023 5:34 PM in response to MrHoffman

Thanks for the useful info -this will take time to understand -it is difficult but not impossible .


     star@stars-iMac ~ % ~/bw get item mailfence recovery_codes.txt
? Master password: [hidden]
More than one result was found. Try getting a specific object by `id` instead. The following objects were found:
1d9d3935-894b-4ea0-312b-ac600032d0a8
4e716798-a5cb-45ff-ab37-ac600041e3b1
092ba11b-104b-7dda-8831-b04e0008051c
ebb4d9a3-7712-4112-9b99-ac72014bbcbd 
91b167d0-bf2e-2704-bf2c-ac6000910112
star@stars-iMac ~ % 


As you see several item id appears and I type in only 1 of thesse 5 when I try to create a bw create attachment -maybe this causes the wrong output too ?? But thesse are the itemid numbers ? Or something else ?


Or it maybe so that I need to create a folder ITEMID ? I think here the problem is with the ITEMID number -probably so .


I will read and look at what you recomending above.


The numbers are all changed so any people can read it without danger . Thesse are recovery codes and in itself has no any importance - they may probably not even valid by this time .


I mean that thesse ID s contain the recovery codes -thesse are not the recovery codes - but probably the files item id numbers .


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Terminal - Permission Denied

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.