Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Can't edit permissions on folders.

  1. #1
    Join Date
    Sep 2013
    Beans
    21

    Can't edit permissions on folders.

    I go to computer and for example try to edit permissions on var. It says:
    You are not the owner so you can not change these permissions.
    I am the owner. So why can't I change the permissions.
    Please help me.
    Thanks,
    Julia
    Last edited by julia3; October 9th, 2013 at 10:19 PM.

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    6,365
    Distro
    Ubuntu

    Re: Can't edit permissions on folders.

    What is the output of

    Code:
    ls -al foldername
    replace foldername with the folder's name.

    You will see two names listed, the first is the owner, and the second is the group.
    If yourname is listed then it could be an attribute problem.
    Look at the output for the attributes
    Code:
    lsattr foldername
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Sep 2013
    Beans
    21

    Re: Can't edit permissions on folders.

    Thank you for your reply.
    It says can not accesss. No file name or direcotry.

  4. #4
    Join Date
    Nov 2007
    Location
    Sweden
    Beans
    2,192

    Re: Can't edit permissions on folders.

    You can always try and increase your permissions for your regular user by using system tools. Other than that, what is it that you're trying to do?
    Debian 8.0 "Jessie"
    HP laptop (15-ab064no-Nordic)
    Linux user since 1999.

  5. #5
    Join Date
    Sep 2013
    Beans
    21

    Re: Can't edit permissions on folders.

    What I'm trying to do is edit my wordpress folder. So I can solve a wordpress problem I'm having. And it would be nice to be able to edit those folders.
    ---
    What do you mean increase the permissions?

  6. #6
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    6,365
    Distro
    Ubuntu

    Re: Can't edit permissions on folders.

    Quote Originally Posted by julia3 View Post
    Thank you for your reply.
    It says can not accesss. No file name or direcotry.
    Try it with the full path
    Example
    Code:
    ls -al /var/mydumbfolder
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  7. #7
    Join Date
    Sep 2013
    Beans
    21

    Re: Can't edit permissions on folders.

    drwxrwxr-x 2 julia www-data 4096 Sep 25 22:39 .
    drwxr-xr-x 14 root root 4096 Sep 22 18:15 ..
    -rw-rw-r-- 1 julia julia 58 Sep 25 22:09 index.html
    -rw-rw-r-- 1 julia julia 47 Sep 25 21:44 index.html~
    -rw-r--r-- 1 root root 4029511 Sep 11 13:13 latest.tar.gz
    lrwxrwxrwx 1 julia www-data 21 Sep 20 20:57 phpmyadmin -> /usr/share/phpmyadmin
    lrwxrwxrwx 1 root root 20 Sep 25 22:39 wordpress -> /usr/share/wordpress
    That is my output.

  8. #8
    Join Date
    Nov 2007
    Location
    Sweden
    Beans
    2,192

    Re: Can't edit permissions on folders.

    Code:
    man chown
    Using that command you can change ownership of any file or folder on your system. Should do what you want from this.
    Debian 8.0 "Jessie"
    HP laptop (15-ab064no-Nordic)
    Linux user since 1999.

  9. #9
    ibjsb4 is offline Ubuntu addict and loving it
    Join Date
    Sep 2012
    Beans
    5,003

    Re: Can't edit permissions on folders.

    Quote Originally Posted by julia3 View Post
    What I'm trying to do is edit my wordpress folder. So I can solve a wordpress problem I'm having. And it would be nice to be able to edit those folders.
    You don't need to change permissions to edit a file. Just start Nautilus as a superuser.

    Code:
    gksudo nautilus

  10. #10
    Join Date
    Jul 2005
    Location
    England
    Beans
    Hidden!

    Re: Can't edit permissions on folders.

    Or more safely just use the command
    Code:
    gksudo gedit filename
    to edit the file, but use the full pathway for the file, eg. /var/WordPress/foldername etc etc.
    DISTRO: Xubuntu 14.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •