LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing permissions of folder and subdirectories (https://www.linuxquestions.org/questions/linux-newbie-8/changing-permissions-of-folder-and-subdirectories-456006/)

esc_5p1d0r 06-18-2006 02:52 PM

Changing permissions of folder and subdirectories
 
Ok, well I found out how to change the permissions of a folder. Is there a way I can do one command to change the permissions of a folder and all it's subdirectories?

Flesym 06-18-2006 02:56 PM

Use the -R (or--recursive) option of chmod

esc_5p1d0r 06-18-2006 02:59 PM

Thank you.

CrownAmbassador 01-13-2007 02:25 PM

Quote:

Originally Posted by Flesym
Use the -R (or--recursive) option of chmod

I just used this to change permissions for my Windows partition. I have permissions on all the folders now but not the files. How do i get it for all the files too?

JimBass 01-13-2007 02:39 PM

You can't alter the permissions of the windows files (in a permanent way). The permissions you set on the windows files will only apply suring the current mount, when you return to windows, the permissions will be the same as windows ahd left them previously, and when you go back to linux, all your changes will have been lost to the permissions.

Linux doesn't control the windows permissions, windows does. The only thing important with a win file is that it can be read. Unless you have done something with the ownership on the files, you can't write to them (assuming you have one of the NTFS writing tools to write with).

If you could write to the directory containing the files, you should be aboe to write the files, unless there is ownership involved. Do ls -al (target) and see who owns the files. As root mounted them, probably root ownes them. You could change the ownership (again recursively) to give your base user more write permissions, but again, linux can't effect the true permissions of windows files.

Peace,
JimBass


All times are GMT -5. The time now is 12:32 PM.