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


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

  • 1
    why are you always like root, is that your intention? Jun 21 '18 at 19:36
  • no , my intention is avoid use alway my password for save
    – hello
    Jun 21 '18 at 21:04
  • Please run ls -lF /var/www/html and lets see who owns the files at that location! Jun 21 '18 at 21:25
  • I dont use no one server I am in the desktop
    – hello
    Jun 21 '18 at 21:32
  • Where is your site file situated? Jun 21 '18 at 21:33

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:
  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.

  • with this command : sudo chown -R $USER:$USER /home/sommer/Desktop/examples/jquery
    – hello
    Jun 21 '18 at 22:10

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.

  • soluction is run this command in the terminal without root user
    – hello
    Jun 21 '18 at 22:03
  • sudo chown -R $USER:$USER /home/sommer/Desktop/examples/jquery
    – hello
    Jun 21 '18 at 22:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.