LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-13-2003, 08:59 AM   #1
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Rep: Reputation: 15
changing permissions for entire directory


i have a directory that has about 32,000 files and folders in it. it was moved from a windows machine to a linux machine. i am using samba. when the directory was moved it gave it a group permission of the owner id of the owner who moved the files. the problem is that group doesnt exist, it only exists for that owner. the file owner and group look like this:

file owner: username
file group: 501

i need to change the group for the entire directory. how do i do that without having to go through the entire directory one file or folder at a time to change the group? it is very important i change the permissions as people need to move the files around but cant because of permission problems. thanks for your help
 
Old 05-13-2003, 09:04 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
chown -R user:group dirname

man chown for more information
 
Old 05-13-2003, 09:12 AM   #3
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Original Poster
Rep: Reputation: 15
got it thanks for the help.
 
  


Reply


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
remove entire directory. bruse Linux - Newbie 2 04-27-2005 02:23 AM
Home directory permissions changing haphazardly... zupidupi Linux - Newbie 4 04-14-2005 02:31 PM
Changing file permissions within a directory for all files. cajunaggie Linux - Newbie 2 02-06-2005 02:53 AM
Directory permissions changing back? elderain Linux - Newbie 0 03-08-2004 07:02 PM
Changing directory permissions Bagsy Linux - Newbie 1 07-08-2003 06:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:48 PM.

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