symbolic link access problems for ~/publ... [partial solved]

Having a problem with your shell account? Post here.

symbolic link access problems for ~/publ... [partial solved]

Postby De Kus on Wed Mar 16, 2005 10:22 am

$ ls -l public_html/STARZ.html
lrwx--x--x 1 DeKus users 33 Mar 16 09:59 public_html/STARZ.html -> /home/DeKus/STARZ/logs/STARZ.html
$ ls -l STARZ/logs/STARZ.html
-rw-r--r-- 1 DeKus users 1872 Mar 16 09:38 STARZ/logs/STARZ.html

I tried to make this file accessable through web, but I am stuck at "Access Forbidden", probably because the symbolic link is not readable to "others", but neither a 'chmod 644 public_html/STARZ.html' neither a 'chmod g=r,o=r public_html/STARZ.html' would change it. I don't find any more leads in the man pages for ln or chmod.
Last edited by De Kus on Thu Mar 17, 2005 1:00 pm, edited 1 time in total.
Image
User avatar
De Kus
Phoenix Veteran
Phoenix Veteran
 
Posts: 305
Joined: Mon Mar 14, 2005 2:15 pm
Location: Germany

Postby Will on Wed Mar 16, 2005 12:02 pm

What server is this on?
Will Sumpter
Phoenix Network Staff
"No bastard ever won a war by dying for his country.
He won it by making the other poor dumb bastard die for his country." - General George S. Patton
Will
Phoenix Veteran
Phoenix Veteran
 
Posts: 436
Joined: Thu Mar 10, 2005 3:37 am

Postby De Kus on Wed Mar 16, 2005 12:06 pm

yours, the symbolic link can be accessed (or rather not ^^) via http://fusion.phoenix-hosting.org/~DeKus/STARZ.html
Image
User avatar
De Kus
Phoenix Veteran
Phoenix Veteran
 
Posts: 305
Joined: Mon Mar 14, 2005 2:15 pm
Location: Germany

Postby Rommaster on Wed Mar 16, 2005 2:41 pm

Try using chmod 755
Rommaster
Phoenix Veteran
Phoenix Veteran
 
Posts: 960
Joined: Thu Mar 10, 2005 1:05 pm
Location: The Netherlands

Postby De Kus on Wed Mar 16, 2005 3:11 pm

$ chmod 755 public_html/STARZ.html
$ ls -l public_html
total 0
lrwx--x--x 1 DeKus users 33 Mar 16 10:16 STARZ.html -> /home/DeKus/STARZ/logs/STARZ.html
Image
User avatar
De Kus
Phoenix Veteran
Phoenix Veteran
 
Posts: 305
Joined: Mon Mar 14, 2005 2:15 pm
Location: Germany

Postby bLiTz on Wed Mar 16, 2005 6:11 pm

chmod 755 public_html
bLiTz
Newbie
Newbie
 
Posts: 6
Joined: Mon Mar 14, 2005 11:29 pm

Postby Will on Wed Mar 16, 2005 9:10 pm

nighthawk wrote:What server is this on?

I meant which specific server, falcon or fusion.
Will Sumpter
Phoenix Network Staff
"No bastard ever won a war by dying for his country.
He won it by making the other poor dumb bastard die for his country." - General George S. Patton
Will
Phoenix Veteran
Phoenix Veteran
 
Posts: 436
Joined: Thu Mar 10, 2005 3:37 am

Postby Narf on Wed Mar 16, 2005 9:16 pm

nighthawk wrote:
nighthawk wrote:What server is this on?

I meant which specific server, falcon or fusion.


De Kus wrote:yours, the symbolic link can be accessed (or rather not ^^) via http://fusion.phoenix-hosting.org/~DeKus/STARZ.html


Fusion - take a close look at the URL.
Limp Bizkit rulez
User avatar
Narf
Contributer
Contributer
 
Posts: 34
Joined: Fri Mar 11, 2005 7:05 pm
Location: Bulgaria

Postby Will on Wed Mar 16, 2005 9:21 pm

I know, but that wasn't in the original post when I asked :(
Will Sumpter
Phoenix Network Staff
"No bastard ever won a war by dying for his country.
He won it by making the other poor dumb bastard die for his country." - General George S. Patton
Will
Phoenix Veteran
Phoenix Veteran
 
Posts: 436
Joined: Thu Mar 10, 2005 3:37 am

Postby De Kus on Thu Mar 17, 2005 12:04 am

bLiTz wrote:chmod 755 public_html

come on please, get real... I am not THAT noobish @_o
I wouldn't bother asking here, if it would be such a obvious solution ;).
$ ls -l
...
drwxr-xr-- 2 DeKus users 512 Mar 16 10:16 public_html


nighthawk wrote:I know, but that wasn't in the original post when I asked :(

my reply to your post hasn't changed, since I posted it ;). I even answered your question in 2 diffrent ways :D.
Image
User avatar
De Kus
Phoenix Veteran
Phoenix Veteran
 
Posts: 305
Joined: Mon Mar 14, 2005 2:15 pm
Location: Germany

Postby Will on Thu Mar 17, 2005 1:21 am

*throws up arms in air*
Talking to too many people at once! :0
De Kus, try to catch krod on IRC as he's more knowledgable about the setup on Fusion then I am.
Will Sumpter
Phoenix Network Staff
"No bastard ever won a war by dying for his country.
He won it by making the other poor dumb bastard die for his country." - General George S. Patton
Will
Phoenix Veteran
Phoenix Veteran
 
Posts: 436
Joined: Thu Mar 10, 2005 3:37 am

Postby pugrit on Thu Mar 17, 2005 12:08 pm

i think falcon has similar problem back then. i dont know know.
problems in permissions in the public_html directory.
pugrit
Phoenix Veteran
Phoenix Veteran
 
Posts: 293
Joined: Thu Mar 10, 2005 1:06 pm
Location: /home/pugrit

Postby De Kus on Thu Mar 17, 2005 12:30 pm

nope, its not the permission for the directory. As you can see the link is currently up, but the problem itself could not be solved. I am using a workaround and directed the script to directly write to public_html instead of writing to logs and create the symbolic link in public_html.
Image
User avatar
De Kus
Phoenix Veteran
Phoenix Veteran
 
Posts: 305
Joined: Mon Mar 14, 2005 2:15 pm
Location: Germany

Postby De Kus on Thu Mar 17, 2005 12:59 pm

I am using a partial solution. Instead of linking public_html/STARZ.html to STARZ/logs/STARZ.html, I just changed the whole thing to STARZ/logs/STARZ.html -> public_html/STARZ.html so apache access the real file and the bot is redirected via the symbolic link.
Image
User avatar
De Kus
Phoenix Veteran
Phoenix Veteran
 
Posts: 305
Joined: Mon Mar 14, 2005 2:15 pm
Location: Germany


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron