I've moved my call recordings onto my server machine and created a samba share. On the PBX, I've added an fstab entry to mount the share. I've changed the location in the gui. Unfortunately, writing the file to the location fails due to a permission error - and I don't get why.
in the asterisk cli I get the following:
my PBX has the following entry
my server machine (at .28) has the following entry in smb.conf
The location is mounted:
ls /mnt/Phone shows all the calls
if I ssh in to the PBX and type:
nano /mnt/Phone/NewFile
I can save the new file - somehow I have write permission, but not from inside asterisk?
/mnt/Phone is owned by root.
2019 looks correct too:
I ran the following commands - which didn't really help from the directory with the calls (/media/RAID/Phone System Calls - Backup)
sudo chown -R root:root .
sudo chmod 777 .
The results are reflected above.
Still no help actually writing the file
I'm missing something stupid (my normal operating mode, it seems), but don't know what.
Anyone see anything obvious?
Andrew
in the asterisk cli I get the following:
Code:
[2019-10-15 23:30:19] WARNING[2603][C-0000000c]: file.c:1229 ast_writefile: Unable to open file /mnt/Phone/2019/10/15/out-9177230665-1000-20191015-233019-1571196619.21.wav: Permission denied
my PBX has the following entry
Code:
//192.168.40.28/PhoneRecordings /mnt/Phone cifs username=server,password=password,iocharset=utf8,sec=ntlm 0 0
my server machine (at .28) has the following entry in smb.conf
Code:
[PhoneRecordings]
path = "/media/RAID/Phone System Calls - Backup"
browseable = yes
available = yes
valid users = root server
guest ok = Yes
force user = root
encrypt passwords = true
browseable = yes
security = user
guest ok = no
read only = no
create mask = 0755
writable = yes
write list = server root
The location is mounted:
ls /mnt/Phone shows all the calls
if I ssh in to the PBX and type:
nano /mnt/Phone/NewFile
I can save the new file - somehow I have write permission, but not from inside asterisk?
/mnt/Phone is owned by root.
Code:
root@pbx:/etc $ ls -l /mnt/Phone
total 0
drwxr-xr-x 5 root root 0 Aug 17 17:23 2014
drwxr-xr-x 14 root root 0 Aug 17 19:48 2015
drwxr-xr-x 14 root root 0 Aug 17 21:45 2016
drwxr-xr-x 14 root root 0 Aug 17 22:54 2017
drwxr-xr-x 14 root root 0 Aug 17 23:31 2018
drwxrwxrwx 12 root root 0 Oct 1 10:25 2019
2019 looks correct too:
Code:
root@pbx:/etc $ ls -l /mnt/Phone/2019
total 0
drwxrwx--- 23 root root 0 Jan 31 2019 01
drwxrwx--- 23 root root 0 Feb 28 2019 02
drwxrwx--- 25 root root 0 Mar 30 2019 03
drwxrwx--- 25 root root 0 Apr 27 10:55 04
drwxrwx--- 23 root root 0 May 31 09:15 05
drwxrwx--- 21 root root 0 Jun 29 13:56 06
drwxrwx--- 25 root root 0 Jul 31 09:20 07
drwxrwx--- 28 root root 0 Aug 30 10:26 08
drwxr-xr-x 13 root root 0 Sep 16 10:02 09
drwxr-x--- 2 root root 0 Oct 1 10:25 10
I ran the following commands - which didn't really help from the directory with the calls (/media/RAID/Phone System Calls - Backup)
sudo chown -R root:root .
sudo chmod 777 .
The results are reflected above.
Still no help actually writing the file
I'm missing something stupid (my normal operating mode, it seems), but don't know what.
Anyone see anything obvious?
Andrew