LinuxQuestions.org
Review your favorite Linux distribution.
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 01-20-2004, 10:44 AM   #1
Stevetgn
Member
 
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

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

Rep: Reputation: 46
Hey,

On this page:
http://www.oreillynet.com/linux/cmd/

Look at Chown and Chmod.

That should do it.

Peace,
Whitehat
 
Old 01-20-2004, 12:24 PM   #3
fragglehorn
Member
 
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, 03:02 PM   #4
fatboyal
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 is...music. 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!
 
  


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

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

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