LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-22-2006, 06:21 PM   #1
twinkers
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 153

Rep: Reputation: 30
Chown command for dir and contents


I know the chown command to change owner of a dir: # chown user:user dir
But that way the contents are not changed. Is there a chown command to change the dir and the contents at the same time?

Regards
 
Old 11-22-2006, 06:37 PM   #2
twinkers
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 153

Original Poster
Rep: Reputation: 30
It needs the -R switch.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
chown, chgrp an entire directoy and contents gin1 Red Hat 8 09-06-2013 03:48 AM
simple question - how to chown ALL files in a dir? flipwhy Linux - Newbie 5 08-29-2006 06:54 PM
Can't chmod/chown a dir after smbmout !? Ramu Linux - Security 2 01-19-2005 10:24 AM
d/l contents of a dir hfawzy Linux - General 2 05-08-2003 01:58 PM
chown....no such file or dir. Dr.Swing Linux From Scratch 6 10-08-2002 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:53 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