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. 05 2006,21:18 QUOTE

But that's not my problem. My problem is that symlinks to files won't work. ;(

Anyways I did this:
Code Sample
sudo mount -o remount,owner=dsl,mode=0755,uid=dsl,gid=staff /mnt/hda10

Same result as before. :(


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





Group: Members
Posts: 570
Joined: June 2004
Posted: Oct. 06 2006,01:45 QUOTE

I was able to get a symlink to a file to work, but only when I created the link in my home directory first and then copied the link into the /opt/monkey/htdocs directory with the cp command.

Try creating the symlink in your /home/dsl directory and then copying it into the /opt/monkey/htdocs directory.  It worked for me when I did that but not when I created the link in the /opt/monkey/htdocs directory directly.  I don't know why.
Back to top
Profile PM 
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: Oct. 06 2006,10:17 QUOTE

I have already set my webserver root to /home/dsl/www/... But I'll try that.

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





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: Oct. 06 2006,10:37 QUOTE

Won't work. It still gives me forbidden status.  :angry:

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





Group: Members
Posts: 570
Joined: June 2004
Posted: Oct. 06 2006,18:59 QUOTE

Zucca, I missed before that the error you're seeing is "Forbidden" and not "Not found."  I think I understand now.  You're trying to run a script, right?  And the script gets loaded from the FAT partition?  If that's the case, then it's not the owner that's the problem but that the executable bit isn't set.  I don't think your mode=0755 option is doing the trick.  Try using the umask=000 option in mount along with the other switches you used and that may help:

mount /dev/hda10 /mnt/test -o uid=dsl,gid=staff,exec,umask=000

The numbers in umask are the opposite of what chmod command uses, the bits that are on remove priveledges instead of adding them.  So if you wanted the equivelant to a 755 from chmod, use 022 in umask:

sudo mount -o uid=dsl,gid=staff,exec,umask=022 /dev/hda10 /mnt/hda10

I don't trust the "remount" switch, I found I had to use umount and the mount again to get the changes to take effect.  I also dont think the mode=0755 did what you wanted it to.

Good luck.
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