Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-15-2007, 04:59 PM   #1
Registered: Apr 2007
Distribution: Fedora 7,Windows 3.11-9X/ME,Windows 2000/XP/Vista
Posts: 107

Rep: Reputation: 15
Arrow chown more then one file and subfolder

Well want to install the gallery2 appliance and so I downloaded it casue I did not back it up. so I tried.

[root@lea html]# chown -R apache:apache ./gallery2/
[root@lea html]#
I thought the -R ment subfolders and files.

this just seem to do just that folder and there are over 3000 subfolders and files. the one thing that seems to work is to change the files one at a time and about 15 sec pert file . I have tried to do what I was shown in my last post but I don't have a clue on what it means. I am not a progarmer by any means . so I have tryed batch script like I ask early in the other files but I don't know what I am doing. is there a gui that would help in chmod chown and chgrp thank you.
Old 06-15-2007, 05:13 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
That definitely should work...

Are you getting any output from the chown? As which user
are you trying it, as root?

Old 06-15-2007, 05:32 PM   #3
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
There should be no problem using the -R parameter.
Add the -v (verbose) and see if it will give you info into what it is doing.
Old 06-15-2007, 05:42 PM   #4
Registered: Apr 2007
Distribution: Fedora 7,Windows 3.11-9X/ME,Windows 2000/XP/Vista
Posts: 107

Original Poster
Rep: Reputation: 15
Smile Wow it worked

that is odd it see not to work till you told me it was going to work. thank you. I guess I am just a see you later.


chown, files, subfolders

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
importing a bookmarks file into a bookmarks subfolder newbiesforever Linux - Software 0 11-07-2006 09:54 PM
script to untar a .gz file and then chown it for a user?? dsids Linux - Newbie 2 08-23-2006 12:42 AM
how to run a script on subfolder file in a folder saggi_sam Linux - Newbie 5 07-13-2005 05:04 AM
how do I chown a PHP file on /usr/ to allow EVERYONE to include it? cpanelskindepot Programming 2 07-16-2004 03:36 PM such file or dir. Dr.Swing Linux From Scratch 6 10-08-2002 04:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:39 AM.

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