0

I create a site web in HTML and also I am using ubuntu version ubuntu 16.04 LTS and when I read something in the editor(sublime text version 3) the system give me this message alway: message

ubuntu-16.04LTS

I am always like root in my computer I tried these command :

 chmod +x jquery
   42  history
   43  clear
   44  chmod -r 775 jquery
   45  clear
   46  chmod -R a+rX *

and it does not working any can help me to I give it permission to this folder

hello
  • 5

2 Answers2

2

Several things to note here:

  1. Don't run Ubuntu as root user, and definitely don't run sublime as root.
  2. The name seen in the command line represents the following:
    • [USERNAME]@[HOSTNAME]:[PATH][SYMBOL]
  3. To get out of root account use the command: exit, then ENTER

Now in your case after chatting I decided to use the environmental variable $USER to change the ownership of that folder in question. So to fix that folder's permission:

sudo chown -R $USER:$USER /home/sommer/Desktop/examples/jquery

With that and running from the normal user account your sublime editor should be able to edit that folder contents.

See here for more.

George Udosen
  • 37,534
0

You should be normally operating at a regular (non-root) level user as much as possible. By always operating at the root level any new files/folders you create will be owned by root and not you. This could cause problems like you are experiencing here. Trying using chown username:groupname filename or something of the like to change the permissions and see if that solves the issue.