Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 11-22-2006, 06:21 PM   #1
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?

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

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


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 such file or dir. Dr.Swing Linux From Scratch 6 10-08-2002 05:42 PM > Forums > Linux Forums > Linux - General

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

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
Open Source Consulting | Domain Registration