Welcome to the Linux Foundation Forum!

I am unable to change file permissions for a folder$

dajaz27
dajaz27 Posts: 1
edited October 2014 in Ubuntu

I have tried to change the folder permissions to add some files to it however I get an error message that says "this is not a directory folder"(in terminal). In the Gui it will not let me move the file. What would cause a super user not be able to change folder permissions.

Comments

  • prasad.24582
    prasad.24582 Posts: 1
    edited October 2014
    As per my understanding its stalled file(memory corrupted). I think, running fsck may clear your problem. Be careful while using that command.
  • As per my understanding its stalled file(memory corrupted). I think, running fsck may clear your problem. Be careful while using that command.
    It may be, however trying chmod could solve the problem.
  • pax
    pax Posts: 6
    edited December 2014
    Hi there,

    run as root this :
    chmod 777 yourdirectory/ -R
    

    should fix your problem.

    Ps : If you want to change the user permission of the directory :
    chown user:user yourdirectory/ -R
    

    Note that for chmod or chown, if it's a directory you must use -R, for a regular file, you do not need the -R query

    Replace user:user by your user wished.

Categories

Upcoming Training