LinuxQuestions.org
Help answer threads with 0 replies.
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 03-05-2015, 10:22 AM   #1
carlos4nyc
LQ Newbie
 
Registered: Feb 2015
Location: New Jersey
Distribution: Ubuntu 14.04
Posts: 11

Rep: Reputation: Disabled
chmod command


Hello everyone!

Can anyone help me in how to work the chmod command?
Suppose that you have a directory of udir12, a subdirectory udir121 (under udir12) and a file called file131 under directory udir121.

How do you change permission for the directory udir12 and all subdirectory and files to 770?

Can anyone help me out please!!!

Thanks
Carlos
 
Old 03-05-2015, 10:23 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by carlos4nyc View Post
How do you change permission for the directory udir12 and all subdirectory and files to 770?
With the recursive flag
Code:
chmod -R 770 udir12
 
Old 03-05-2015, 10:29 AM   #3
carlos4nyc
LQ Newbie
 
Registered: Feb 2015
Location: New Jersey
Distribution: Ubuntu 14.04
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thank you

Thank you suicidaleggroll for your help, I'd really appreciate it.
 
  


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
Apache: difference between chmod 644 and chmod 666 and chmod 600 for output/txt/dat? frenchn00b Programming 6 04-22-2009 01:10 PM
chmod command manoj.linux Solaris / OpenSolaris 6 12-08-2007 01:21 PM
CHMOD Command dudeman41465 Linux - Software 1 09-26-2005 02:29 AM
chmod command linuxtesting2 Linux - Newbie 2 09-03-2004 12:02 PM
Chmod command gogo Linux - General 2 09-24-2002 07:01 AM

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

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