Find the answer to your Linux question:
Results 1 to 4 of 4
hi friends.. i use redhat linux(RHEL5) i hav a problem using the CHMOD command... i wish to use the command to make a directory nd its subfiles to be accessable ...
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    20

    CHMOD help

    hi friends..

    i use redhat linux(RHEL5)

    i hav a problem using the CHMOD command...

    i wish to use the command to make a directory nd its subfiles to be accessable only to be accessable to the root..

    i am using the following command..at the location of the directoy...

    CHMOD 700 <directory >

    no effect occour on the permission of the directory,... i tried using in the GUI mode..but no effect..

    pl help

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    You have to give ownership of folder to root user too.
    Log in as root and execute this
    Code:
    chown -R root:root <folder>
    chmod -R 700 <folder>
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Code:
    chmod -R 700 <folder>
    Note that you usually don't want to do that, since it will give exec permissions to all the files under that directory. You usually want 700 for dirs and 600 for files, except those files that contain a script or a program.

  4. #4
    Just Joined!
    Join Date
    Jan 2008
    Posts
    20

    Smile

    thankyou friends...

    i shall try these..

Posting Permissions

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