LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-29-2002, 04:29 PM   #1
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Rep: Reputation: 30
Permissions


How do I set permissions on a folder so that a specific user other than root may read & write to that dir?

Thanx

Gonus
 
Old 08-29-2002, 05:08 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You need to use chmod to do this. You can read more about permission system here: http://www.linuxquestions.org/questi...missions+chown
In your case, you need 777, as I can see.
 
Old 08-29-2002, 05:30 PM   #3
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Original Poster
Rep: Reputation: 30
That did it. Here is what I did

chgrp root /var/www

this did not give me the permissions all the way down though.

I had to chmod 777 /var/blah/blah for everythign thing down why would that be?
 
Old 08-29-2002, 06:37 PM   #4
lopezjo49
Member
 
Registered: Jun 2002
Location: NJ
Distribution: Mainly Kubuntu 8.10
Posts: 44

Rep: Reputation: 15
look at the chmod man pages. There's an option to go down through the directories with -r or -R (i can't remember) for recursively.

note: chmod 777 is a little dangerous because it is r w x by anyone.
 
Old 08-29-2002, 09:01 PM   #5
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Original Poster
Rep: Reputation: 30
oh, so recusive means on through all dir under? I thought it was something like meaning it was unabel to be undone. ok thanx will go and fix that shortly.

Gonus
 
Old 08-29-2002, 09:08 PM   #6
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
I believe that recursive means 'keep on going until you stop'... so chmoding recursively would chmod stuff through all subdirs. And if you did something stupid, like rm -rf /, you could curse recursively at yourself.
 
Old 08-30-2002, 12:31 PM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Usually you don't need 777 for /var/www. What was the reason?
 
Old 08-30-2002, 01:40 PM   #8
yixudong
LQ Newbie
 
Registered: Aug 2002
Location: Somewhere in East World
Distribution: RH7.x
Posts: 11

Rep: Reputation: 0
It is easy-----give the whole directory to the user.
chown xxx -r directory xxx is the uid of the user
chmod 700 -r directory
 
Old 08-30-2002, 05:13 PM   #9
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Original Poster
Rep: Reputation: 30
I was using 777 just at the time since it worked. now I am going to go back and change the owner to the user and then give 700.

Thanx

Gonus
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 04:16 AM
Permissions jymmi Linux - Newbie 3 04-14-2005 11:43 PM
Permissions help reddog64 Linux - Newbie 1 04-22-2004 05:23 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 12:52 PM

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

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