Results 1 to 4 of 4

Thread: File permissions trouble

  1. #1

    Default File permissions trouble

    Well, I feel a little silly for having to ask this, but I apparently can't get file permissions to work. I have a script that is writing to a file in /logs. I ran
    Code:
    mkdir /logs; chmod 666 /logs; chown blank888:users /logs
    and I still can't even look inside the folder. Any ideas?

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: File permissions trouble

    Directories require the access (x) bit to list the contents. Since you will own the directory, there no point making it world writable. Therefore the appropriate permission is probably 700.

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,990

    Default Re: File permissions trouble

    And adding to this, you should at least have looked at what the results of any of your actions are by listing
    Code:
    ls -ld /logs
    Henk van Velden

  4. #4

    Default Re: File permissions trouble

    Quote Originally Posted by ken_yap View Post
    Directories require the access (x) bit to list the contents. Since you will own the directory, there no point making it world writable. Therefore the appropriate permission is probably 700.
    Ahh, ok. I was thinking that meant executable like with files. I knew it was something simple. Things like this remind me that I have only been using linux for six months......
    Also, I chose it being world writable because everyone that uses the computer needs access to it, and it isn't connected to the internet.

Posting Permissions

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