Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Monkey problem., Another one again?< Next Oldest | Next Newest >
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: Oct. 02 2006,19:38 QUOTE

Ok. It seems that whenever I create a symlink to a directory it works just fine. I can access into it with my web browser. But when I create a symlink to a file, monkey gives me 'Forbidden' status.
I tested that with same directory:
1. I created a directory.
2. Made a symlink of a <file> there.
Result == Forbidden
1. Ok I then made symlink of the directory that contained <file>.
Result == Works fine. I could download that file.

Ok. Is there anything I should know about symlinks?
I create symlinks always like this:
Code Sample
ln -s <file/directory to link> <link (path) name>
.


--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 02 2006,20:12 QUOTE

It could be the permissions set on the linked file.  If it's readable only by the file's owner and group you will get a 403. Monkey runs as user "nobody", so a file with no read permission for "other" will be denied. For example, a file chmoded 644 will be readable, but 640 or 600 will not.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: Oct. 02 2006,21:10 QUOTE

I've checked that. But no.
Files are on FAT partition. ;)

Maybe I can find a solution by creating a user that has limeted access. Then try to access with that account to those files.

If that goes just fine (meaning it's problem with monkey) then I think installing Cherokee and forgot Monkey.


--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 02 2006,22:11 QUOTE

I have no idea how linux handles file permissions on fat partitions.  Maybe it has to do with the way the drive is mounted, but i couldn't say.

I don't have any other ideas right now.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Oct. 03 2006,17:05 QUOTE

You can change the owner and group of the files on a vfat partition using the uid=dsl and gid=staff options, either from mount or by adding them into the /etc/fstab entry for the device.

mount /dev/hda1 /mnt/test -t vfat -o uid=dsl,gid=staff

I was able to get monkey to serve up a web page from a FAT drive by first mounting the drive as shown above (so that the files were all dsl/staff), creating a link in my home directory, and then copying that link into /opt/monkey/htdocs:

Code Sample
mount /dev/hda1 /mnt/test -t vfat -o uid=dsl,gid=staff
cd /home/dsl
ln -s /mnt/test/myfile.html newfile.html
sudo cp newfile.html /opt/monkey/htdocs
Back to top
Profile PM 
11 replies since Oct. 02 2006,19:38 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: Monkey problem.

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code