LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   problem running program as user (https://www.linuxquestions.org/questions/linux-general-1/problem-running-program-as-user-104167/)

FlAWD 10-15-2003 06:25 AM

problem running program as user
 
I have a box at FDC that I run a Medal Of Honor game server off of also i run a stats program to record in game stats. but the stats program will not run because it has to create .html files in the www dir where it is telling me it has no permissions. i made the permissions on the folder 777 and still the same error...


drwxrwxrwx 3 merc merc 512 Oct 6 18:00 .
drwxr-xr-x 13 pureftpd pureftpd 1024 Sep 1 04:48 ..
-rwxrwxrwx 1 merc merc 15991 Oct 6 18:00 deaths.html
-rwxrwxrwx 1 merc merc 8343 Oct 6 18:00 index.html
-rwxrwxrwx 1 merc merc 16145 Oct 6 18:00 kills.html
drwxrwxrwx 2 merc merc 21504 Oct 6 18:00 player
-rwxrwxrwx 1 merc merc 15846 Oct 6 18:00 ratio.html
-rwxrwxrwx 1 merc merc 16157 Oct 6 18:00 skill.html
-rwxrwxrwx 1 merc merc 499 Aug 5 20:58 stats.css


merc@genesis:~$ sh runstats.sh
rm: /www/virtual/firm.framper.com/htdocs/server/player: permission denied
mkdir: /www/virtual/firm.framper.com/htdocs/server/player: Permission denied
chmod: /www/virtual/firm.framper.com/htdocs/server/player: Permission denied
gunzip: cache: unknown suffix -- ignored
Could not open output file `/www/mywebsite.com/htdocs/server/index.html'.



the server is running 4.9-RC FreeBSD


thanks in advance :)

-FlAWD

scottm89 10-15-2003 07:31 AM

I am not a Linux expert by any stretch, but here are a couple of ideas that might help:

1. Check both the file and directory permission sets. The files may permit changes, but the directory permissions may not.

2. Check the permissions on the executables used to make the file/dir changes. If these executables do not permit the average user to execute, then the system will also fail.

Not much, but I hope it helps.


All times are GMT -5. The time now is 07:36 AM.