NO JOY Permission error when typing amportal chown

Appleton6509

New Member
Joined
Jun 25, 2013
Messages
12
Reaction score
0
was doing update-fixes and saw these errors, tried it myself and get it again.

just upgraded from 1.8 to 2.10 and then these errors started appearing.

root@pbx:~ $ amportal chown

SETTING FILE PERMISSIONS
chmod: cannot operate on dangling symlink `/var/lib/asterisk/bin/ampbackup.php'
chmod: cannot operate on dangling symlink `/var/lib/asterisk/bin/ampbackup.pl'
chmod: cannot operate on dangling symlink `/var/lib/asterisk/bin/dumpastdb.php'
chmod: cannot operate on dangling symlink `/var/lib/asterisk/bin/fax-process.pl'
chmod: cannot operate on dangling symlink `/var/lib/asterisk/bin/restoreastdb.php'
chown: changing ownership of `/var/www/html/index.html': Operation not permitted
chown: changing ownership of `/var/www/html/index.php': Operation not permitted
chown: changing ownership of `/var/www/html/index.php.bak': Operation not permitted
Permissions OK
 

darmock

PIAF Developer
Joined
Oct 18, 2007
Messages
2,892
Reaction score
98
1. Cant upgrade between 1.8 to 2.10 NO SUCH BEAST
2. As in your other post I am guessing you went from FREEPBX 2.9 to FREEPBX 2.10
3. Delete the dangling symlinks
4. Chown errors are fine live with them.
 

drdrew

Guru
Joined
Jul 6, 2013
Messages
20
Reaction score
13
Use lsattr <filename> to check for i in attributes. You will see it listed there which means it is write protected. Then use chattr -i <filename> which will remove the write protection and allow you to delete/edit/update the file.
 

darmock

PIAF Developer
Joined
Oct 18, 2007
Messages
2,892
Reaction score
98
The permissions are there for a reason the index.* files need to keep their permissions as is to keep Piaf running correctly. Change at your own risk.


Tom
 

Members online

Forum statistics

Threads
25,810
Messages
167,754
Members
19,240
Latest member
nikko
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top