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

General support questions
Post Reply
prabha_friend
Posts: 68
Joined: 2020/06/10 14:05:16

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

Post by prabha_friend » 2020/11/11 13:34:54

/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


kdpatil
Posts: 42
Joined: 2020/10/20 07:19:31

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

Post by kdpatil » 2020/11/18 06:34:52

ls -al /home/asterisk/certs/self-signed.crt


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



ls -l /home/asterisk/certs/


What does that show ?

prabha_friend
Posts: 68
Joined: 2020/06/10 14:05:16

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

Post by prabha_friend » 2020/11/18 16:22:01

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 ~]$ 

prabha_friend
Posts: 68
Joined: 2020/06/10 14:05:16

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

Post by prabha_friend » 2020/11/18 16:22:47

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 ~]$ 

lightman47
Posts: 1522
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

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

Post by lightman47 » 2020/11/18 17:24:54

use those commands as root (or sudo)

prabha_friend
Posts: 68
Joined: 2020/06/10 14:05:16

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

Post by prabha_friend » 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 ~]$ 

kdpatil
Posts: 42
Joined: 2020/10/20 07:19:31

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

Post by kdpatil » 2020/11/19 02:50:07

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

Post Reply