توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : مشکل در پرمیشن فایل php.ini
leberman
January 22nd, 2014, 22:56
درود
میخواستم php.ini رو از ssh ادیت کنم که با ارور :
-bash: /usr/local/lib/php.ini: Permission denied
برخوردم!سطح دسترسی رو زیاد تر میکنم ارور:
/usr/local/lib/php.ini: line 1: [PHP]: command not found
/usr/local/lib/php.ini: line 3: syntax error near unexpected token `;;'
/usr/local/lib/php.ini: line 3: `;;;;;;;;;;;;;;;;;;;'
در یافت میکنم! دسوتانی که اطلاع دارن میتونن کمک کنن؟
nginxweb
January 22nd, 2014, 22:59
درود
دوست گرامی با چه دستوری اقدام به ویرایش کردید؟
leberman
January 22nd, 2014, 23:01
با این دستور
chmod 0644 /usr/local/lib/php.ini
nginxweb
January 22nd, 2014, 23:10
خروجی دستور زیر را در تاپیک قرار بدید:
ls -la
/usr/local/lib/php.ini
leberman
January 22nd, 2014, 23:14
خدمت شما
total 1768
drwxr-xr-x 12 root root 4096 Oct 7 2011 .
drwx--x--x 4 diradmin diradmin 4096 Jan 22 10:33 ..
-rw-r--r-- 1 root root 124 Jan 8 16:54 accounttracking.txt
-rw-r--r-- 1 root root 181 Jan 8 16:54 alert.txt
-rwx------ 1 root root 9777 Jan 8 16:54 auto.directadmin.pl
-rwxr-xr-x 1 root root 9543 Jan 8 16:54 auto.generic.pl
-rwxr-xr-x 1 root root 11241 Jan 8 16:54 auto.pl
-rw-r--r-- 1 root root 153180 Jan 8 16:54 changelog.txt
-rw-r--r-- 1 root root 192 Jan 8 16:54 connectiontracking.txt
-rw-r--r-- 1 root root 76 Jan 8 16:54 consolealert.txt
drwxr-xr-x 3 root root 4096 Jan 8 16:54 cpanel
-rw-r--r-- 1 root root 136 Jan 8 16:54 cpanelalert.txt
drwxr-xr-x 2 root root 4096 Jan 8 16:54 Crypt
-rwxr-xr-x 1 root root 35671 Jan 8 16:54 cseui.pl
drwxr-xr-x 2 root root 4096 Jan 8 16:54 csf
-rw-r--r-- 1 root root 3513 Jan 8 16:54 csf.1.txt
-rw-r--r-- 1 root root 4109 Jan 8 16:54 csfajaxtail.js
-rw-r--r-- 1 root root 814 Jan 8 16:54 csf.allow
-rw-r--r-- 1 root root 3563 Jan 8 16:54 csf.blocklists
-rw-r--r-- 1 root root 940 Jan 8 16:54 csf.c
-rw-r--r-- 1 root root 80978 Jan 8 16:54 csf.conf
-rwxr-xr-x 1 root root 14 Jan 8 16:54 csfcron.sh
-rw-r--r-- 1 root root 803 Jan 8 16:54 csf.deny
-rw-r--r-- 1 root root 76492 Jan 8 16:54 csf.directadmin.conf
-rw-r--r-- 1 root root 1859 Jan 8 16:54 csf.directadmin.pignore
-rw-r--r-- 1 root root 617 Jan 8 16:54 csf.dirwatch
-rw-r--r-- 1 root root 14571 Jan 8 16:54 csf.div
-rw-r--r-- 1 root root 712 Jan 8 16:54 csf.dyndns
-rw-r--r-- 1 root root 923 Jan 8 16:54 csf.fignore
-rw-r--r-- 1 root root 74658 Jan 8 16:54 csf.generic.conf
-rw-r--r-- 1 root root 1602 Jan 8 16:54 csf.generic.pignore
-rw-r--r-- 1 root root 3764 Jan 8 16:54 csf.help
-rw-r--r-- 1 root root 507 Jan 8 16:54 csf.ignore
-rw-r--r-- 1 root root 657 Jan 8 16:54 csf.logfiles
-rw-r--r-- 1 root root 1965 Jan 8 16:54 csf.logignore
-rw-r--r-- 1 root root 408 Jan 8 16:54 csf.mignore
-rw-r--r-- 1 root root 3197 Jan 8 16:54 csf.pignore
-rwx------ 1 root root 144279 Jan 8 16:54 csf.pl
-rw-r--r-- 1 root root 1142 Jan 8 16:54 csf.redirect
-rw-r--r-- 1 root root 2150 Jan 8 16:54 csf.resellers
-rw-r--r-- 1 root root 1622 Jan 8 16:54 csf.rignore
-rwxr-xr-x 1 root root 1931 Jan 8 16:54 csf.sh
-rw-r--r-- 1 root root 413 Jan 8 16:54 csf.signore
-rw-r--r-- 1 root root 510 Jan 8 16:54 csf.sips
-rw-r--r-- 1 root root 368 Jan 8 16:54 csf.suignore
-rw-r--r-- 1 root root 1644 Jan 8 16:54 csf.syslogs
-rwxr-xr-x 1 root root 5888 Jan 8 16:54 csftest.pl
-rw-r--r-- 1 root root 457 Jan 8 16:54 csf.uidignore
-rwxr-xr-x 1 root root 241294 Jan 8 16:54 csfui.pl
-rwxr-xr-x 1 root root 13421 Jan 8 16:54 csfuir.pl
drwxr-xr-x 7 root root 4096 Jan 8 16:54 da
-rw-r--r-- 1 root root 129 Jan 8 16:54 exploitalert.txt
-rw-r--r-- 1 root root 151 Jan 8 16:54 filealert.txt
-rw-r--r-- 1 root root 132 Jan 8 16:54 forkbombalert.txt
drwxr-xr-x 3 root root 4096 Jan 8 16:54 Geo
drwxr-xr-x 2 root root 4096 Jan 8 16:54 HTTP
-rwxr-xr-x 1 root root 11213 Jan 8 16:54 install.cpanel.sh
-rwxr-xr-x 1 root root 10870 Jan 8 16:54 install.directadmin.sh
-rwxr-xr-x 1 root root 10287 Jan 8 16:54 install.generic.sh
-rwx------ 1 root root 638 Jan 8 16:54 install.sh
-rw-r--r-- 1 root root 1067 Jan 9 2006 install.sh.1
-rw-r--r-- 1 root root 2609 Jan 8 16:54 install.txt
-rw-r--r-- 1 root root 374 Jan 8 16:54 integrityalert.txt
-rwxr-xr-x 1 root root 70 Jan 8 16:54 lfdcron.directadmin.sh
-rwxr-xr-x 1 root root 70 Jan 8 16:54 lfdcron.sh
-rw-r--r-- 1 root root 70 Jan 8 16:54 lfd.logrotate
-rwx------ 1 root root 273828 Jan 8 16:54 lfd.pl
-rwxr-xr-x 1 root root 2157 Jan 8 16:54 lfd.sh
-rw-r--r-- 1 root root 10174 Jan 8 16:54 license.txt
-rw-r--r-- 1 root root 1042 Jan 8 16:54 loadalert.txt
-rw-r--r-- 1 root root 103 Jan 8 16:54 logalert.txt
-rw-r--r-- 1 root root 101 Jan 8 16:54 logfloodalert.txt
drwxr-xr-x 2 root root 4096 Jan 8 16:54 messenger
-rwxr-xr-x 1 root root 8549 Jan 8 16:54 migratedata.sh
drwxr-xr-x 3 root root 4096 Sep 12 16:07 Net
-rw-r--r-- 1 root root 191 Jan 8 16:54 netblock.txt
-rwx------ 1 root root 3952 Jan 8 16:54 os.pl
-rw-r--r-- 1 root root 209 Jan 8 16:54 permblock.txt
-rw-r--r-- 1 root root 129 Jan 8 16:54 portknocking.txt
-rw-r--r-- 1 root root 175 Jan 8 16:54 portscan.txt
-rw-r--r-- 1 root root 391 Jan 8 16:54 processtracking.txt
-rwxr-xr-x 1 root root 1129 Jan 8 16:54 pt_deleted_action.pl
-rw-r--r-- 1 root root 97 Jan 8 16:54 queuealert.txt
-rw-r--r-- 1 root root 50471 Jan 8 16:54 readme.txt
-rw-r--r-- 1 root root 2055 Jan 8 16:54 regex.custom.pm
-rw-r--r-- 1 root root 27851 Jan 8 16:54 regex.pm
-rw-r--r-- 1 root root 10717 Jan 8 16:54 regex.txt
-rw-r--r-- 1 root root 196 Jan 8 16:54 relayalert.txt
-rwxr-xr-x 1 root root 397 Jan 8 16:54 remove_apf_bfd.sh
-rw-r--r-- 1 root root 260 Jan 8 16:54 resalert.txt
-rw-r--r-- 1 root root 181 Jan 8 16:54 reselleralert.txt
-rw-r--r-- 1 root root 736 Jan 8 16:54 restricted.txt
-rw-r--r-- 1 root root 4696 Jan 8 16:54 sanity.txt
-rw-r--r-- 1 root root 200 Jan 8 16:54 scriptalert.txt
-rw-r--r-- 1 root root 70138 Jan 8 16:54 servercheck.pm
-rw-r--r-- 1 root root 176 Jan 8 16:54 sshalert.txt
-rw-r--r-- 1 root root 159 Jan 8 16:54 sualert.txt
-rw-r--r-- 1 root root 194 Jan 8 16:54 syslogalert.txt
-rw-r--r-- 1 root root 298 Jan 8 16:54 tracking.txt
drwxr-xr-x 3 root root 4096 Jan 8 16:54 ui
-rw-r--r-- 1 root root 129 Jan 8 16:54 uialert.txt
-rw-r--r-- 1 root root 150 Jan 8 16:54 uidscan.txt
-rwxr-xr-x 1 root root 868 Jan 8 16:54 uninstall.directadmin.sh
-rwxr-xr-x 1 root root 747 Jan 8 16:54 uninstall.generic.sh
-rwxr-xr-x 1 root root 1016 Jan 8 16:54 uninstall.sh
-rw-r--r-- 1 root root 720 Jan 8 16:54 upgrade.txt
-rw-r--r-- 1 root root 192 Jan 8 16:54 usertracking.txt
-rw-r--r-- 1 root root 4 Jan 8 16:54 version.txt
-rw-r--r-- 1 root root 129 Jan 8 16:54 watchalert.txt
drwxr-xr-x 3 root root 4096 Sep 12 16:07 webmin
-rw-r--r-- 1 root root 146 Jan 8 16:54 webminalert.txt
-rw-r--r-- 1 root root 1207 Jan 8 16:54 x-arf.txt
[root@s1 csf]# /usr/local/lib/php.ini
-bash: /usr/local/lib/php.ini: Permission denied
و
-rw-r--r-- 1 root root 70301 Jan 22 2014 /usr/local/lib/php.ini
abolfazl201358
January 23rd, 2014, 02:17
درود
میخواستم php.ini رو از ssh ادیت کنم که با ارور :
-bash: /usr/local/lib/php.ini: Permission denied
برخوردم!سطح دسترسی رو زیاد تر میکنم ارور:
/usr/local/lib/php.ini: line 1: [PHP]: command not found
/usr/local/lib/php.ini: line 3: syntax error near unexpected token `;;'
/usr/local/lib/php.ini: line 3: `;;;;;;;;;;;;;;;;;;;'
در یافت میکنم! دسوتانی که اطلاع دارن میتونن کمک کنن؟