Welcome to the most active Linux Forum on the web.
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 01-20-2004, 11:44 AM   #1
Registered: Jun 2003
Distribution: SuSE10, Mepis,
Posts: 230

Rep: Reputation: 30
What Commands do I use to change permissions

I want to change the permissions for a complete directory and all its sub directories. What commands do I use? I want the Directory to be read and write for all users.

Thanks in adavance

Old 01-20-2004, 12:14 PM   #2
Senior Member
Registered: Feb 2003
Location: The Cold North
Distribution: SuSE 9.1
Posts: 1,289

Rep: Reputation: 46

On this page:

Look at Chown and Chmod.

That should do it.

Old 01-20-2004, 01:24 PM   #3
Registered: Oct 2002
Location: I-Town, NY
Distribution: Debian, Slackware
Posts: 130

Rep: Reputation: 15
The super-useful --recursive flag will apply changes to all sub-directories. For security reasons, you probably shouldn't chown to 777 (if that's what you mean by "all users").
Old 01-20-2004, 04:02 PM   #4
LQ Newbie
Registered: Jan 2004
Location: NorCal
Posts: 8

Rep: Reputation: 0
OK, (and if you see this g-rod, yep, I am still having issues), I have a music directory that initially I set up with a 222 mask. I didn't want users to accidently delete files, so I changed to 0111. (Both for share and create masks - with those entries in the share section of samba.conf).
Problem is that ownership now is all over the place as people put files in there.
I see that chown will change the owner of the files, then I can apply chmod to allow access to the files. I also see that I can use the -r to go through all sub folders.
Now, I am new to linux - so is there a way I could run this periodically to reset the owner (and I am thinking to root) and the mode? Could you provide a couple examples of the commands so I can do this?
The share Any ideas y'all have about this are welcome. I am not easily frustrated and I am impressed with my progress, but little things like this are not little to the users.
Thanks in advance!


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
How to change permissions? SonoranFun Linux - Newbie 4 11-02-2004 11:10 AM
Can't change permissions LitlJay Linux - Software 9 05-21-2004 02:41 PM
Is it wise to change permissions ? glenn69 Linux - Newbie 1 05-04-2004 09:49 PM
How Can I Change Permissions monkeymartin Linux - General 1 03-25-2003 01:47 PM
Permissions on commands KevStA Linux - Newbie 6 05-31-2002 10:11 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration