LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-18-2006, 02:52 PM   #1
esc_5p1d0r
Newbie
 
Registered: Jun 2006
Posts: 20

Rep: Reputation: 0
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?
 
Old 06-18-2006, 02:56 PM   #2
Flesym
Member
 
Registered: Aug 2005
Location: Germany
Distribution: Ubuntu, Debian
Posts: 189

Rep: Reputation: 31
Use the -R (or--recursive) option of chmod

Last edited by Flesym; 06-18-2006 at 02:57 PM.
 
Old 06-18-2006, 02:59 PM   #3
esc_5p1d0r
Newbie
 
Registered: Jun 2006
Posts: 20

Original Poster
Rep: Reputation: 0
Thank you.
 
Old 01-13-2007, 02:25 PM   #4
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Rep: Reputation: 30
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?
 
Old 01-13-2007, 02:39 PM   #5
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copy a file to all subdirectories in a folder raj000 Linux - General 6 03-24-2006 03:55 AM
Having problems changing permissions on a folder zener Linux - Security 16 12-19-2005 09:32 AM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 05:23 PM
Changing permissions of mounted folder of XP box owain Linux - Networking 1 06-12-2004 04:09 PM
Limited permissions in subdirectories dwz3591 Linux - Newbie 1 04-27-2004 04:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration