LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-29-2007, 10:16 PM   #1
brokenpromises
Member
 
Registered: Jan 2005
Location: NZ
Distribution: Fedora / Debian
Posts: 99

Rep: Reputation: 21
How to allow selective access


Hello,

For security reasons, I want to create a user and allow full access to the /var/www folder.

Any ideas how I can go about doing this?

Any help appreicated
 
Old 07-30-2007, 01:50 AM   #2
vjn
LQ Newbie
 
Registered: Jul 2007
Posts: 12

Rep: Reputation: 0
To allow access to /var/www on the linux box, you can create a user and make him the owner of /var/www

For example if you created 'user1' as the new user, this is how you can make him the owner -

Code:
chown -Rv user1 /var/www
Then change the permissions to the directory
Code:
chmod -Rv 700 /var/www
This will give full permission only to the owner, while no permission to others.

VJN
Team SafeSquid
 
Old 07-30-2007, 10:03 PM   #3
brokenpromises
Member
 
Registered: Jan 2005
Location: NZ
Distribution: Fedora / Debian
Posts: 99

Original Poster
Rep: Reputation: 21
Thanks a ton mate, really appreciated.
 
Old 07-31-2007, 06:23 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Do you have "users" group?

What is each regular user's primary group?

Is there already a "www" user or group?


While "700" will work, it may be too restrictive; & depending on how your distro handles groups, perhaps "770" may be better.
 
  


Reply


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
selective application access for users logicalfuzz Linux - Newbie 3 10-15-2006 12:19 PM
Selective Apache2.0 access control Gibsonist Linux - Software 6 01-26-2006 08:18 AM
X selective translucency? shishimo Linux - Software 1 06-22-2005 07:31 PM
Enabling POP3 Access for Selective Users only topcat Linux - Software 1 11-23-2004 10:31 PM
Firewall (with selective access) KETrel Linux - Security 7 10-06-2004 12:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:02 AM.

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