Page 1 of 1

How to know about the presence of this file...

Posted: 2020/11/11 13:34:54
by prabha_friend
/home/asterisk/certs/self-signed.crt

Sorry. I know its a silly Question. But can't help myself after searching in the internet.

Can someone help me please...

With Hope,
Prabhakaran

Re: How to know about the presence of this file...

Posted: 2020/11/11 15:37:06
by BShT

Re: How to know about the presence of this file...

Posted: 2020/11/18 06:34:52
by kdpatil
ls -al /home/asterisk/certs/self-signed.crt


file /home/asterisk/certs/self-signed.crt



ls -l /home/asterisk/certs/


What does that show ?

Re: How to know about the presence of this file...

Posted: 2020/11/18 16:22:01
by prabha_friend
Hi,
Sorry for the late reply. Notification mail went on "Promotions" folder in my Mail.

Code: Select all

[astmin@localhost ~]$ ls -al /home/asterisk/certs/self-signed.crt
ls: cannot access /home/asterisk/certs/self-signed.crt: Permission denied
[astmin@localhost ~]$ file /home/asterisk/certs/self-signed.crt
/home/asterisk/certs/self-signed.crt: cannot open (Permission denied)
[astmin@localhost ~]$ ls -l /home/asterisk/certs/
ls: cannot access /home/asterisk/certs/: Permission denied
[astmin@localhost ~]$ 

Re: How to know about the presence of this file...

Posted: 2020/11/18 16:22:47
by prabha_friend
Hi,
Sorry for the late reply. Notification mail went on "Promotions" folder in my Mail.

Code: Select all

[astmin@localhost ~]$ ls -al /home/asterisk/certs/self-signed.crt
ls: cannot access /home/asterisk/certs/self-signed.crt: Permission denied
[astmin@localhost ~]$ file /home/asterisk/certs/self-signed.crt
/home/asterisk/certs/self-signed.crt: cannot open (Permission denied)
[astmin@localhost ~]$ ls -l /home/asterisk/certs/
ls: cannot access /home/asterisk/certs/: Permission denied
[astmin@localhost ~]$ 

Re: How to know about the presence of this file...

Posted: 2020/11/18 17:24:54
by lightman47
use those commands as root (or sudo)

Re: How to know about the presence of this file...

Posted: 2020/11/18 22:57:33
by prabha_friend
The files are present (through sudo)

Code: Select all

[astmin@localhost ~]$ sudo ls -al /home/asterisk/certs/self-signed.crt
[sudo] password for astmin: 
-rw-r-----. 1 asterisk asterisk 1505 Nov 10 20:01 /home/asterisk/certs/self-signed.crt
[astmin@localhost ~]$ sudo file /home/asterisk/certs/self-signed.crt
/home/asterisk/certs/self-signed.crt: PEM certificate
[astmin@localhost ~]$ sudo ls -l /home/asterisk/certs/
total 8
-rw-r-----. 1 asterisk asterisk 1505 Nov 10 20:01 self-signed.crt
-rw-r-----. 1 asterisk asterisk 1704 Nov 10 20:01 self-signed.key
[astmin@localhost ~]$ 

Re: How to know about the presence of this file...

Posted: 2020/11/19 02:50:07
by kdpatil
prabha_friend wrote:
2020/11/18 22:57:33
The files are present (through sudo)

Code: Select all

[astmin@localhost ~]$ sudo ls -al /home/asterisk/certs/self-signed.crt
[sudo] password for astmin: 
-rw-r-----. 1 asterisk asterisk 1505 Nov 10 20:01 /home/asterisk/certs/self-signed.crt
[astmin@localhost ~]$ sudo file /home/asterisk/certs/self-signed.crt
/home/asterisk/certs/self-signed.crt: PEM certificate
[astmin@localhost ~]$ sudo ls -l /home/asterisk/certs/
total 8
-rw-r-----. 1 asterisk asterisk 1505 Nov 10 20:01 self-signed.crt
-rw-r-----. 1 asterisk asterisk 1704 Nov 10 20:01 self-signed.key
[astmin@localhost ~]$ 

So does that solve you problem ?

those are owned by user asterisk

And you tried to access these with user astmin

If you access as root you will not get such restrictions ..

or make them chmod 777 if you want all to access ... but that is not good idea