Jump to content

[Linux] ElementaryOS - Files and folders are locked

Hello everyone,

 

I just installed ElementaryOS and I'm having a permissions problem. All the files inside root (/) are locked, there's a lock icon next to them and I can't write there.

It will only work if I open the File System as admin.

 

It's a problem when applications (like Sublime Text) try to create files or overwirte existing files, it will not let me.

 

How can I give my main user full access to, at least, the /var/www folder? 

 

I tried this : 

sudo chmod 777 /var/www

but it didn't work, the lock icon is still there and I can't write to this folder.

 

How can I give my current user permissions over that particular folder? 

 

Thank you for your help. 

Link to comment
Share on other sites

Link to post
Share on other sites

Hello everyone,

 

I just installed ElementaryOS and I'm having a permissions problem. All the files inside root (/) are locked, there's a lock icon next to them and I can't write there.

It will only work if I open the File System as admin.

 

It's a problem when applications (like Sublime Text) try to create files or overwirte existing files, it will not let me.

 

How can I give my main user full access to, at least, the /var/www folder? 

 

I tried this : 

sudo chmod 777 /var/www

but it didn't work, the lock icon is still there and I can't write to this folder.

 

How can I give my current user permissions over that particular folder? 

 

Thank you for your help. 

login as root in terminal

chown usernamegoeshere /var/www

Laptop: Thinkpad W520 i7 2720QM 24GB RAM 1920x1080 2x SSDs Main Rig: 4790k 12GB Hyperx Beast Zotac 980ti AMP! Fractal Define S (window) RM850 Noctua NH-D15 EVGA Z97 FTW with 3 1080P 144hz monitors from Asus Secondary: i5 6600K, R9 390 STRIX, 16GB DDR4, Acer Predator 144Hz 1440P

As Centos 7 SU once said: With great power comes great responsibility.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×