Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    write protection: root vs. user

    For the longest time I was logged in as root, but have decided to just run the system as user, which I've been advised I should. I copied over my fvwm config files over to the user's directory and logged in as user, but when I went to go edit the file Abiword told me there was an error. It tells me the directory I'm trying to write to is write-protected.

    I'm guessing this is because I made the directory, wrote the file, and saved the file all while as root and now I'm trying to go back and edit it as user. Is there anyway to change the permissions on files or whole directorys?

  2. #2
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Riverton, UT, USA
    As root, use the chown command with the "-R" option. That'll let you change the owner of a directory and everything under it. If needed, you can also use "-R" with chmod to set the permissions you need.
    Stand up and be counted as a Linux user!

  3. #3


    Very cool, that did what I need now I can write files as user. Thanks.

  4. $spacer_open

Posting Permissions

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