LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-08-2012, 09:59 PM   #16
Joshua Russo
LQ Newbie
 
Registered: Apr 2007
Distribution: Linux Mint
Posts: 13

Original Poster
Rep: Reputation: 0

Ya, I formatted and re-installed everything. I wanted a fresh start.

For the acl command, should I need to apply it from the home directory, or can I just do it on the static_test directory?
 
Old 01-09-2012, 09:41 AM   #17
Joshua Russo
LQ Newbie
 
Registered: Apr 2007
Distribution: Linux Mint
Posts: 13

Original Poster
Rep: Reputation: 0
There must be some way to do this. All of the alias examples in the Apache docs use home: http://httpd.apache.org/docs/2.0/urlmapping.html
 
Old 01-09-2012, 04:41 PM   #18
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

In the link that you have posted I do not see any example in which author has used home. I will try to duplicate the way you want it to be but can't promise how soon I can, as it will depend on my schedule.

I have seen people setting up alias for directories but not for the one which is under their home directory. Because user is the owner of his home. I doubt it will work without configuring acl.

Let me see if there is some alternate way to get this done.
 
Old 01-09-2012, 05:39 PM   #19
Joshua Russo
LQ Newbie
 
Registered: Apr 2007
Distribution: Linux Mint
Posts: 13

Original Poster
Rep: Reputation: 0
I was looking at the example
ScriptAliasMatch ^/~([a-zA-Z0-9]+)/cgi-bin/(.+) /home/$1/cgi-bin/$2
 
Old 01-09-2012, 07:51 PM   #20
Joshua Russo
LQ Newbie
 
Registered: Apr 2007
Distribution: Linux Mint
Posts: 13

Original Poster
Rep: Reputation: 0
Ok, I found a solution, and thank you because it was via the setfacl command you suggested. I had tried it previously but I was using the wrong user.

sudo setfacl -R -m g:www-data:rx /home/josh/Dev

What I don't understand is why I had to apply it so far up the path. Do you know why it worked at the Dev level but not static_test, or some other directory deeper in the path?
 
Old 01-10-2012, 12:38 PM   #21
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

You're welcome.

Great that you got it working. Please mark the thread as solved.

To answer your query I need to know the acl for /home/josh. You can find that using the following command:

Code:
getfacl /home/josh
The reason I am asking for this information because it appears to me that earlier you have setup acl for the only at /home/josh level but did not perform it recursively. Then you setup acl at /home/josh/Dev/bell_network_stuff/git/dev/static_test which didn't work because the user was not able to get into /home/josh/Dev itself then how it can reach so deep in the path.

I will be able to say for sure if I know how acl is set on /home/josh
 
Old 01-10-2012, 06:08 PM   #22
Joshua Russo
LQ Newbie
 
Registered: Apr 2007
Distribution: Linux Mint
Posts: 13

Original Poster
Rep: Reputation: 0
This is interesting. My initial attempt using setfacl was with root, that's why those entries are there.

# file: home/josh
# owner: josh
# group: josh
user::rwx
user:root:r-x
group::r-x
group:root:r-x
mask::r-x
other::r-x


# file: home/josh/Dev
# owner: josh
# group: josh
user::rwx
user:root:r-x
group::---
group:root:r-x
group:www-data:r-x
mask::r-x
other::---

What do the empty group and other entries with no permissions mean for home/josh/Dev?
 
  


Reply

Tags
alias, apache, apache22, directory, permission denied



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 - Alias directive Sapient Linux - Software 3 01-24-2006 07:57 AM
Apache Directory Indexing 403 Error 70k51k Linux - Software 0 09-29-2003 11:26 PM
Alias directive in Apache 1.3.22 mswebs Linux - Networking 2 08-01-2003 02:09 PM
Apache alias' getting an 403 Forbid error! XxAndyxX Linux - Software 1 08-01-2003 11:53 AM

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

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