76

I have webstorm 8 installed on Ubuntu 14.04 LTS.

I am trying to edit a file but I am getting a popup, with heading "Clear read only status", which shows file and two radio button

  • Using File System
  • Using version control integration

When I select Using File system and click OK, nothing happens, and it doesn't allow to select Second option.

I am using git as my dcvs.

Please guide me on how I can remove this read only status from that file.

starball
  • 20,030
  • 7
  • 43
  • 238
Mozak
  • 2,738
  • 4
  • 30
  • 49

3 Answers3

269

I had similar problem and I ran following command and my problem was resolved:

sudo chown -R $(whoami) my-project-folder

Works on both Ubuntu & OS X

To check username use: whoami

raveren
  • 17,799
  • 12
  • 70
  • 83
Raheel
  • 4,953
  • 4
  • 34
  • 40
4

Same answer as above but use the current user and also add the files to the current group

sudo chown -R $USER:$USER my-project-folder

$USER is a variable which stores your currently logged in user,at least on Ubuntu.

Mihai
  • 26,325
  • 7
  • 66
  • 81
1

When I select Using File system and click OK, nothing happens

Nothing visible happen, but you should be able to edit your file, since the file should now be in 755 mode (as opposed to 644)

More generally, check your umask: it should be 0022, which means a git clone would by default create 644 files (writable), as detailed in "why my file permission being changed after pull from git repository".

it doesn't allow to select Second option.

That may be because the sources edited in Webstorm aren't in a git repo.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Hi VonC, I am new to linux so don't know what exactly 644 and 755 mode means. However I am also looking into this – Mozak Aug 20 '14 at 16:05
  • My file seems to be in 644 mode -rw-r--r-- 1 root root 1283 Aug 20 17:04 profileMenu.html – Mozak Aug 20 '14 at 16:51
  • 1
    @Mozak yes, but it owned by 'root', and you are likely to launch your IDE Webstorm as your account (and not root), hance the read-only attribute. You chould chown all those files into your account (http://superuser.com/a/260939). – VonC Aug 20 '14 at 16:53