Problem executing command as root.

Hello,

I logged in to my system as a regular user than I su'ed to root and then I tried to run a command and I got Permission denied. The root user is already a member of the wheel group. Why do I keet getting this error?

Thank you,
 
arie01 said:
I logged in to my system as a regular user than[sic] I su'ed to root and then I tried to run a command and I got Permission denied. The root user is already a member of the wheel group. Why do I keet[sic] getting this error?
What were the exact command and error message?

Fonz
 
Hello Fonz,

The exact command is

# /usr/local/www/lilac/export.php id=1

It may be wrong, I am not sure how else to execute it.
 
PHP scripts usually cannot be executed standalone, they need to be run by an interpreter. For example, something like # [b]/usr/local/bin/php[/b] /usr/local/www/lilac/export.php id=1

Fonz

P.S. Although in this case I can to some extent understand that you posted your question in this thread, you should in most cases start a new thread for your question instead of "hijacking" an existing one.
 
fonz said:
PHP scripts usually cannot be executed standalone, they need to be run by an interpreter. For example, something like # [b]/usr/local/bin/php[/b] /usr/local/www/lilac/export.php id=1

Fonz

It is possible, but not recommended.
 
Oh, sorry. Unfortunately, I know very little about the os and it's commands and also about using this forum. I searched on Google and this post came up. I read through it and saw that it may be the right post for my issue too, so I guess I highjacked it.

IN any case, I run the command again as it appears in your reply and it looks like it might have run successfully. I have to check into it to make sure.

I'll check and post back tomorrow so whoever is facing the same issue like mine, will know what to do.

Thank you and sorry if I was a rude.
 
arie01 said:
Oh, sorry.
[snip]
I read through it and saw that it may be the right post for my issue too, so I guess I highjacked it.
[snip]
Thank you and sorry if I was a rude.
No, you weren't rude. And I didn't intend to appear angry either, it was just a gentle little hint :beer

Fonz
 
fonz said:
P.S. Although in this case I can to some extent understand that you posted your question in this thread, you should in most cases start a new thread for your question instead of "hijacking" an existing one.
Agreed, posts split off into it's own thread.
 
Back
Top