File Permissions

Discussion in 'Linux Beginners' started by ThatOneGuy030, Sep 13, 2021.

  1. ThatOneGuy030

    ThatOneGuy030 New Member

    Hello! So, I'm relatively new to Linux and its environment. The other day I wanted to move some files around remotely, but the system wouldn't let me. Whether it be with WinSCP or PuTTY I couldn't move files, I was able to move them in PuTTY later by using "sudo". It didn't use to do this before so it would be helpful to know what changed everything so I can prevent/fix it in the future. For now, I fixed the problem by installing a new distro, but some lessons would be helpful.
     
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    The difference would be in file/directory ownership and permissions. Eg. if user1 owned the files in a directory, user2 can't move them, and may not even be able to access them at all. Using sudo acts as the root user, which is not restricted by file ownership (though you may have to adjust permissions at times).
     
  3. ThatOneGuy030

    ThatOneGuy030 New Member

    Thanks for the info! You pointed me in the right direction and the class I'm taking just covered the chmod command.
     

Share This Page