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 ...
- 04-16-2008 #1Just 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
- 04-16-2008 #2
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
- 04-16-2008 #3Linux Guru
- Join Date
- Nov 2007
- Location
- Córdoba (Spain)
- Posts
- 1,513
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.Code:chmod -R 700 <folder>
- 04-17-2008 #4Just Joined!
- Join Date
- Jan 2008
- Posts
- 20
thankyou friends...
i shall try these..


Reply With Quote