chrome and mysql do not open after changing permission in / opt folder

0

I would like help to solve the following problem.

I was using XAMPP to run PHP applications, and I needed to edit the php.ini file in / opt / lampp / etc /

OBS: dentro da pasta opt/ tem outras 2 pastas google/ e lampp/

When you save the php.ini file permission error appeared, then I opened the Terminal and I logged in as ROOT

# sudo su

I went to the root folder and entered with the following command:

# chown -R meu_usuario /opt

(later I saw that it would have been better chown -R my_user /opt/lampp/etc/php.ini , but the poop was already done)

After this I was able to save the php.ini , however ... after restarting the machine. the Google chrome browser and the XAMPP database MYSQL do not work:

I've already returned the opt / root folder permission

# chown -R root /opt

But still, the chrome and MYSQL database does not work.

My system

Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:        14.04
Codename:       trusty

Thank you in advance for your support.

    
asked by anonymous 31.03.2015 / 20:56

1 answer

0

The default permission is this:

drwxr-xr-x 11 root root 4096 Mar 18 19:17 opt

See if your folder looks like this too, if you have not run the command sudo chmod -R 755 /opt

Then try reinstalling packages using apt-get install --reinstall <pacote> or removing and installing again

    
31.03.2015 / 21:14