|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Perl script
hi , i would like to make a perl script with executes shell commands:
#!/usr/bin/perl { system("./test"); } but i was wondering can be executed from the web? and if it can what chmod should it have ? thanx in advance, best regards -Raul |
|
#2
|
||||
|
||||
|
You need to be very careful about what system commands you allow scripts to execute, particularly from the Web. The shell command needs to have the apache user as the group or owner with group and owner execute privs or they need to be executable by all.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
|
#3
|
|||
|
|||
|
so what should i do ? chown nobody.nobody test.pl ? and it should work ?`
|
|
#4
|
||||
|
||||
|
chown nobody:nobody test.pl
chmod u+x test.pl |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Perl script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|