Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13
Your home dir is chmod'ed to give you full access by default. If I understood you correctly, you can't create new files/dirs in a directory that you created while you ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Guru
    Join Date
    Oct 2001
    Location
    Tфby, Sweden
    Posts
    7,578

    Your home dir is chmod'ed to give you full access by default.

    If I understood you correctly, you can't create new files/dirs in a directory that you created while you were root, right? In that case, it's only natural. That directory will be owned by root, and thus only root can modify it. To fix that, either chown it so that you own it ("chmod mosg: thedirname"), or chmod it to give everyone write permission to it ("chmod 777 thedirname").

  2. #12
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    If you create a folder/file with root, then root owns it and other users (by default) can't write or execute it. This means no subdirectory creation. So change to root and do this:

    Code:
    chown -R /home/mosg mosg
    That will give mosg ownership of everything in /home/mosg. Now mosg will be able to create anything under that tree.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  3. #13
    Just Joined!
    Join Date
    Feb 2004
    Posts
    25
    Thanks guys, u really help me. Now i have full access to files i needed!!!!...

    > Россия вас не забудет!

  4. $spacer_open
    $spacer_close
Page 2 of 2 FirstFirst 1 2

Posting Permissions

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