How to know about the presence of this file...
-
- Posts: 68
- Joined: 2020/06/10 14:05:16
How to know about the presence of this file...
/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
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...
ls -al /home/asterisk/certs/self-signed.crt
file /home/asterisk/certs/self-signed.crt
ls -l /home/asterisk/certs/
What does that show ?
file /home/asterisk/certs/self-signed.crt
ls -l /home/asterisk/certs/
What does that show ?
-
- Posts: 68
- Joined: 2020/06/10 14:05:16
Re: How to know about the presence of this file...
Hi,
Sorry for the late reply. Notification mail went on "Promotions" folder in my Mail.
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 ~]$
-
- Posts: 68
- Joined: 2020/06/10 14:05:16
Re: How to know about the presence of this file...
Hi,
Sorry for the late reply. Notification mail went on "Promotions" folder in my Mail.
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 ~]$
-
- Posts: 1522
- Joined: 2014/05/21 20:16:00
- Location: Central New York, USA
Re: How to know about the presence of this file...
use those commands as root (or sudo)
-
- Posts: 68
- Joined: 2020/06/10 14:05:16
Re: How to know about the presence of this file...
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...
prabha_friend wrote: ↑2020/11/18 22:57:33The 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