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

Asked

Viewed 159 times

0

I ask for help to solve the following problem.

was using the XAMPP to run PHP applications, and I had to edit the file php.ini which gets into /opt/lampp/etc/

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

when saving the file php.ini error appeared permission, so I opened Terminal logging me as ROOT

# sudo su

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

# chown -R meu_usuario /opt

( then I knew it would have been better chown -R meu_usuario /opt/lampp/etc/php.ini, but the poop was already made )

after that I managed to save the php.ini, however... after restarting the machine. the browser Google Chrome and the database MYSQL of XAMPP no longer work :'(

I’m back to the opt/ folder permission for root

# chown -R root /opt

but still, neither Chrome nor MYSQL database works.

My system

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

I thank you in advance for the strength

1 answer

0


The default permission is this:

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

See if your folder is like this too, if you don’t run the command sudo chmod -R 755 /opt

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

  • thanks for your attention, as I check the default folder permission opt/ ?

  • use the command ls -al / it will list all the folders in the directory / then just watch

  • Dude help me, I gave the command sudo chmod -R 644 /opt and now I can’t get into the folder opt/ my work is inside the folder opt/lampp/ I can’t lose!

  • do so loga como sudo sudo su at the terminal and then type nautilus, it will open like the windows explorer, then you get your jobs does a backup of your pen-drive or other place you want

  • add me to Hangout [email protected]

  • Okay, I’ll create an account there and I’ll add you, vlw

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.