problemi con permessi su file .php

Ciao,

ho un problema, considerato sicuramente di base per un esperto linux.

Uso netbeans da oggi, prima di oggi usavo vi per la creazione di file .php, salvati su var/www/html/miofile,

il problema è che netbeans non mi fa salvare i dati sul percorso specificato prima(permesso denied), ma me li salva su /home/mionome/ecc ecc e quindi apache non me li carica.

Come faccio a editare con netbeans salvando i file su var/www/html/miofile o forse c’è un modo per abilitare apache a visualizzare i file dentro /home/mionome/ecc ecc

spero di essere stato chiaro.

Ciaooo

vedere:

# ll -d /var/www/html

netbeans con quali privilegi corre ?

drwxr-xr-x. 3 root root 4096 7 apr 00:31 /var/www/html

dove vedo i permessi netbeans :slight_smile:

facci vedere pure:

$ ll /var/www/html

[quote]
c’è un modo per abilitare apache a visualizzare i file dentro /home/mionome/ecc ecc[/quote]
Si:
http://httpd.apache.org/docs/2.2/howto/public_html.html
Io lo consiglierei in ambiente di sviluppo…a meno che non vuoi giocare un po’ con i permessi e i gruppi della directory root di apache.

I permessi con il quale corre netbeans sono in relazione all’utente che lo lancia.

Bene ad abbandonare vi, ma esiste anche Vim:
http://blog.marionline.it/?p=271

ho dato un 'occhiata ai link, molto interessanti, lavoro permettendo domani provo UserDir, e magari passo a Vim.

ps: cmq giocare con i permessi non mi dispiacerebbe per fare un po di pratica, è sempre bene conoscere tutte le alternative per sapere quale scegliere :slight_smile:

Per Virus:

ll /var/www/html/eserc_php/
totale 88
-rw-r–r--. 1 root root 1467 14 mag 15:28 accesso_utente.php
-rw-r–r--. 1 root root 2831 2 lug 17:48 calcolatore_esercizi.html
-rw-r–r--. 1 root root 2927 30 mag 20:50 calcolatore_esercizi_multd.html
-rw-r–r--. 1 root root 2120 2 lug 20:09 calcolatore_esercizi_mult.html
-rw-r–r--. 1 root root 256 12 mag 15:10 connessione.php
-rw-r–r--. 1 root root 416 7 mag 19:06 form_insert_cliente.html
-rw-r–r--. 1 root root 539 8 mag 16:03 form_registrazione.html
-rw-r–r--. 1 root root 2697 22 mag 20:26 gestore_esercizi2.php
-rw-r–r--. 1 root root 3532 2 lug 14:18 gestore_esercizi_box2.php
-rw-r–r--. 1 root root 2283 25 giu 17:32 gestore_esercizi_box.php
-rw-r–r--. 1 root root 324 30 mag 22:51 gestore_esercizi_multd.php
-rw-r–r--. 1 root root 3423 7 lug 17:50 gestore_esercizi_mult.php
-rw-r–r--. 1 root root 710 22 mag 19:38 gestore_esercizi.php
-rw-r–r--. 1 root root 399 8 mag 18:46 home.html
-rw-r–r--. 1 root root 944 7 mag 19:05 insert_cliente.php
-rw-r–r--. 1 root root 694 8 mag 16:13 insert_utente.php
-rw-r–r--. 1 root root 98 10 mag 17:54 pagina.html
-rw-r–r--. 1 root root 1291 8 gen 18:15 php_connection2.php
-rw-r–r--. 1 root root 1121 30 dic 2009 php_connection.php
-rw-r–r--. 1 root root 1032 8 gen 17:42 prova_form2.html
-rw-r–r--. 1 root root 1256 8 gen 18:20 prova_form3.html
-rw-r–r--. 1 root root 599 2 mag 23:16 prova_insert.php

per Marios

per configurare UserDir dovrei decommentare e settare a enable UserDir su httpd/conf suppongo in questa parte del file

# # UserDir is disabled by default since it can confirm the presence # of a username on the system (depending on home directory # permissions). # UserDir disabled
#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disabled" line above, and uncomment
# the following line instead:
#
#UserDir public_html

Control access to UserDir directories. The following is an example

for a site where these directories are restricted to read-only.

#<Directory /home/*/public_html>

AllowOverride FileInfo AuthConfig Limit

Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

Order allow,deny

Allow from all

Order deny,allow

Deny from all

#
*/

ops non funzia…
il restart mi restituisce

[root@giuseppe /]# etc/rc.d/init.d/httpd restart
Interruzione di httpd: OK ]
Avvio di httpd: [Thu Jul 08 18:33:49 2010] [warn] module php5_module is already loaded, skipping
Syntax error on line 352 of /etc/httpd/conf/httpd.conf:
UserDir “enable” keyword requires a list of usernames
[FALLITO]

modificato da me in UserDir enable

Hai configurato in modo scorretto apache.
Ricontrolla il suo file di configurazione.

ho modificato in UserDir enable

# # UserDir is disabled by default since it can confirm the presence # of a username on the system (depending on home directory # permissions). # UserDir enabled
#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disabled" line above, and uncomment
# the following line instead:
#
UserDir public_html

Control access to UserDir directories. The following is an example

for a site where these directories are restricted to read-only.

Decommentato da me lo script che segue
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

Order allow,deny
Allow from all


Order deny,allow
Deny from all

io sinceramente non so cosa ho sbagliato, l’errore secondo apache sta alla riga 352
che sarebbe UserDir enabled
*/

Devi commentare quella riga, non inserire user enable.

IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
# UserDir disabled

#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disabled" line above, and uncomment
# the following line instead:
#
UserDir public_html

ecco cosa mi restituisce :

etc/rc.d/init.d/httpd restart

Interruzione di httpd: OK ]
Avvio di httpd: [Thu Jul 08 19:00:04 2010] [warn] module php5_module is already loaded, skipping
httpd: apr_sockaddr_info_get() failed for giuseppe
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
OK ]

a questo punto non so cosaa vuol dire

ho provato pure UserDir enabled giuseppe

stesso errore

Facci vedere l’intero file di configurazione senza i commenti (per risparmiare spazio).

ecco:

ServerTokens OS

ServerRoot “/etc/httpd”

PidFile run/httpd.pid

Timeout 120

KeepAlive Off

MaxKeepAliveRequests 100

KeepAliveTimeout 15

StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 4000 StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0

Listen 80

LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so

Include conf.d/*.conf

User apache
Group apache

ServerAdmin root@localhost

UseCanonicalName Off

DocumentRoot “/var/www/html”

Options FollowSymLinks AllowOverride None

<Directory “/var/www/html”>

Options Indexes FollowSymLinks

AllowOverride None


Order allow,deny
Allow from all
# # UserDir is disabled by default since it can confirm the presence # of a username on the system (depending on home directory # permissions). # # UserDir disabled
#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disabled" line above, and uncomment
# the following line instead:
# 
UserDir public_html

<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

Order allow,deny
Allow from all


Order deny,allow
Deny from all

DirectoryIndex index.html index.html.var

AccessFileName .htaccess

<Files ~ “^.ht”>
Order allow,deny
Deny from all

TypesConfig /etc/mime.types

DefaultType text/plain

# MIMEMagicFile /usr/share/magic.mime MIMEMagicFile conf/magic

HostnameLookups Off

ErrorLog logs/error_log

LogLevel warn

LogFormat “%h %l %u %t “%r” %>s %b “%{Referer}i” “%{User-Agent}i”” combined
LogFormat “%h %l %u %t “%r” %>s %b” common
LogFormat “%{Referer}i -> %U” referer
LogFormat “%{User-agent}i” agent

CustomLog logs/access_log combined

ServerSignature On

Alias /icons/ “/var/www/icons/”

<Directory “/var/www/icons”>
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

# Location of the WebDAV lock database. DAVLockDB /var/lib/dav/lockdb

ScriptAlias /cgi-bin/ “/var/www/cgi-bin/”

<Directory “/var/www/cgi-bin”>
AllowOverride None
Options None
Order allow,deny
Allow from all

IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif …
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html

IndexIgnore .??* ~ # HEADER README RCS CVS *,v *,t

AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

ForceLanguagePriority Prefer Fallback

AddDefaultCharset UTF-8

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl

AddHandler type-map var

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

Alias /error/ “/var/www/error/”

AllowOverride None Options IncludesNoExec AddOutputFilter Includes html AddHandler type-map var Order allow,deny Allow from all LanguagePriority en es de fr ForceLanguagePriority Prefer Fallback

BrowserMatch “Mozilla/2” nokeepalive
BrowserMatch “MSIE 4.0b2;” nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch “RealPlayer 4.0” force-response-1.0
BrowserMatch “Java/1.0” force-response-1.0
BrowserMatch “JDK/1.0” force-response-1.0

BrowserMatch “Microsoft Data Access Internet Publishing Provider” redirect-carefully
BrowserMatch “MS FrontPage” redirect-carefully
BrowserMatch “^WebDrive” redirect-carefully
BrowserMatch “^WebDAVFS/1.[0123]” redirect-carefully
BrowserMatch “^gnome-vfs/1.0” redirect-carefully
BrowserMatch “^XML Spy” redirect-carefully
BrowserMatch “^Dreamweaver-WebDAV-SCM1” redirect-carefully

LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
*/

Prova ad eliminare questa ultima riga:

E output:

$ cat /etc/httpd/conf.d/php.conf |grep -v "#"

niente da fare,

cat /etc/httpd/conf.d/php.conf |grep -v “#”

[code]
LoadModule php5_module modules/libphp5.so


LoadModule php5_module modules/libphp5-zts.so

AddHandler php5-script .php
AddType text/html .php

DirectoryIndex index.php
[/code]

[root@giuseppe conf]# cd /
[root@giuseppe /]# etc/rc.d/init.d/httpd start
Avvio di httpd: httpd: apr_sockaddr_info_get() failed for giuseppe
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
OK ]

forse sbaglio ad immettere il percorso sulla barra dehli indirizzi, mi puoi aiutare a farlo?
io inserisco :
http:-://localhost/home/giuseppe/public_html/calcolatore_esercizi_mult.html

oppure:http:-//localhost/~eserc_php/calcolatore_esercizi_mult.html

oppure :http:-//localhost/~/eserc_php/calcolatore_esercizi_mult.html

PS: nella tua guida http://blog.marionline.it/

per usare i plugin e per la creazione del file.vrmc nella home directory dato che a me non funziona ancora apache per i file dentro la home, il file .vrmc lo devo creare dentro var/www/html/ecc ecc ?

Grazie 1000

Giusto per la cronaca sono riuscito almeno a fargli cambiare messaggio :

-http://localhost/~giuseppe/eserc_php/

Forbidden

You don’t have permission to access /~giuseppe/eserc_php/ on this server.

pardon l’insistenza ma ho i miei limiti su linux, ci provo a fare funzionare, ma la mia conoscenza non mi fa andare oltre.

Ho modificato anche in /etc/sysconfig/selinux

This file controls the state of SELinux on the system.

SELINUX= can take one of these three values:

enforcing - SELinux security policy is enforced.

permissive - SELinux prints warnings instead of enforcing.

disabled - No SELinux policy is loaded.

#SELINUX=enforcing
SELINUX=disabled

SELINUXTYPE= can take one of these two values:

targeted - Targeted processes are protected,

mls - Multi Level Security protection.

SELINUXTYPE=targeted

Per semplificarti la vita usa system-config-selinux per disabilitare completamente selinux o gestire le varie policy.
Ti conviene tenerlo disabilitato.

Poi devi permettere ad apache di leggere la cartella del tuo utente, devi dunque dare i permessi.

Usa il comando “service” per avviare, fermare un qualsiasi demone in fedora.

P.S. per la guida, .vimrc si trova nella home dell’utente, come detto nella guida. Ma un problema una discussione.

pardon il ritardo, ma sono stato impegnato, purtroppo il problema è rimasto.

This file controls the state of SELinux on the system.

SELINUX= can take one of these three values:

enforcing - SELinux security policy is enforced.

permissive - SELinux prints warnings instead of enforcing.

disabled - No SELinux policy is loaded.

#SELINUX=enforcing
SELINUX=disabled

SELINUXTYPE= can take one of these two values:

targeted - Targeted processes are protected,

mls - Multi Level Security protection.

#SELINUXTYPE=targeted

Disabilitato completamente e ho controllato da GUI, risulta disabilitato.
ecco i permessi dentro giuseppe:

ls: impossibile accedere a .gvfs: Permission denied
totale 276
d??????????  ? ?        ?            ?            ? .gvfs
-rw-r--r--.  1 giuseppe giuseppe   124  8 apr  2009 .bashrc
-rw-r--r--.  1 giuseppe giuseppe   176  8 apr  2009 .bash_profile
-rw-r--r--.  1 giuseppe giuseppe    18  8 apr  2009 .bash_logout
drwx------.  3 giuseppe giuseppe  4096  5 ott  2009 .dbus
drwxr-xr-x.  2 giuseppe giuseppe  4096  5 ott  2009 Pubblici
drwxr-xr-x.  2 giuseppe giuseppe  4096  5 ott  2009 Musica
drwxr-xr-x.  2 giuseppe giuseppe  4096  5 ott  2009 Modelli
drwxr-xr-x.  2 giuseppe giuseppe  4096  5 ott  2009 Video
drwxr-xr-x.  2 giuseppe giuseppe  4096  5 ott  2009 Immagini
-rw-------.  1 giuseppe giuseppe   256  5 ott  2009 .pulse-cookie
drwx------.  2 giuseppe giuseppe  4096  5 ott  2009 .gnome2_private
drwxr-xr-x.  3 giuseppe giuseppe  4096  5 ott  2009 .local
-rw-------.  1 giuseppe giuseppe    16  5 ott  2009 .esd_auth
drwx------.  2 giuseppe giuseppe  4096  5 ott  2009 .pulse
drwxr-xr-x.  3 giuseppe giuseppe  4096  5 ott  2009 .nautilus
drwxr-xr-x.  5 giuseppe giuseppe  4096  6 ott  2009 .mozilla
drwx------.  3 giuseppe giuseppe  4096  8 ott  2009 .adobe
drwx------.  3 giuseppe giuseppe  4096  8 ott  2009 .macromedia
drwxrwxr-x.  2 giuseppe giuseppe  4096  9 ott  2009 .themes
drwxrwxr-x.  2 giuseppe giuseppe  4096  9 ott  2009 .icons
drwxr-xr-x.  6 giuseppe giuseppe  4096 12 ott  2009 .config
drwx------.  5 giuseppe giuseppe  4096 16 ott  2009 .thumbnails
drwxrwxr-x.  3 giuseppe giuseppe  4096 26 ott  2009 .netbeans
drwxrwxr-x.  3 giuseppe giuseppe  4096 26 ott  2009 .netbeans-registration
-rw-rw-r--.  1 root     root        37  6 nov  2009 t1
drwxrwxr-x.  3 giuseppe giuseppe  4096  9 nov  2009 .openoffice.org
-rw-------.  1 giuseppe giuseppe   607  9 nov  2009 .recently-used
drwxr-xr-x.  3 giuseppe giuseppe  4096 21 dic  2009 .cache
drwx------.  3 giuseppe giuseppe  4096 21 dic  2009 .kompozer.net
drwxr-xr-x.  2 giuseppe giuseppe  4096  6 mar 18:39 Scaricati
-rw-r--r--.  1 root     root        26 19 apr 16:54 ciao.txt
-rw-------.  1 giuseppe giuseppe  1406  5 mag 16:52 .viminfo
drwxr-xr-x.  3 root     root      4096  8 mag 16:51 ..
drwxr-xr-x.  2 giuseppe giuseppe  4096  8 mag 18:09 Documenti
drwx------.  3 giuseppe giuseppe  4096 30 mag 22:58 .gphpedit
drwxrwxr-x.  5 giuseppe giuseppe  4096 24 giu 15:07 NetBeansProjects
drwxr-xr-x.  3 giuseppe giuseppe  4096  8 lug 18:17 public_html
-rw-r--r--.  1 root     root     33812  8 lug 19:13 copia_httpd_conf
drwxr-xr-x.  3 giuseppe giuseppe  4096  9 lug 16:59 Scrivania
drwxrwxr-x.  4 giuseppe giuseppe  4096  9 lug 17:00 .tomboy
drwx------.  2 giuseppe giuseppe  4096  9 lug 19:10 .icedteaplugin
drwxrwxr-x   3 giuseppe giuseppe  4096  9 lug 19:10 .netx
-rw-------.  1 giuseppe giuseppe  4036  9 lug 20:30 .bash_history
drwxr-xr-x. 10 giuseppe giuseppe  4096  9 lug 20:30 .gnome2
-rw-------   1 giuseppe giuseppe  4023  9 lug 20:30 .recently-used.xbel
-rw-------   1 giuseppe giuseppe  2829  9 lug 20:31 .xsession-errors.old
-rw-r--r--   1 giuseppe giuseppe    42 14 lug 19:53 .dmrc
-rw-------.  1 giuseppe giuseppe 16740 14 lug 19:53 .ICEauthority
drwx------.  4 giuseppe giuseppe  4096 14 lug 19:53 .gconf
-rw-rw-r--   1 giuseppe giuseppe   152 14 lug 19:53 .gtk-bookmarks
drwx------. 38 giuseppe giuseppe  4096 14 lug 19:53 .
drwxr-xr-x.  2 giuseppe giuseppe  4096 14 lug 19:53 .wapi
-rw-rw-r--.  1 giuseppe giuseppe  4331 14 lug 19:53 .tomboy.log
drwx------.  2 giuseppe giuseppe  4096 14 lug 19:56 .gconfd
-rw-------   1 giuseppe giuseppe  1217 14 lug 19:58 .xsession-errors
You have new mail in /var/spool/mail/root
[root@giuseppe giuseppe]# 

ecco i permessi public_html

cd public_html/
[root@giuseppe public_html]# ls
eserc_php
[root@giuseppe public_html]# ls -lart
totale 12
drwxr-xr-x.  2 giuseppe giuseppe 4096  7 lug 20:04 eserc_php
drwxr-xr-x.  3 giuseppe giuseppe 4096  8 lug 18:17 .
drwx------. 38 giuseppe giuseppe 4096 14 lug 19:53 ..
[root@giuseppe public_html]# 

ecoo i permessi eserc_php

cd eserc_php/
[root@giuseppe eserc_php]# ls -lart
totale 108
-rw-rw-rw-. 1 giuseppe giuseppe  1121 30 dic  2009 php_connection.php
-rwxr-xr-x. 1 giuseppe giuseppe  1032  8 gen  2010 prova_form2.html
-rw-rw-rw-. 1 giuseppe giuseppe  1291  8 gen  2010 php_connection2.php
-rwxr-xr-x. 1 giuseppe giuseppe  1256  8 gen  2010 prova_form3.html
-rw-rw-rw-. 1 giuseppe giuseppe   599  2 mag 23:16 prova_insert.php
-rw-rw-rw-. 1 giuseppe giuseppe   944  7 mag 19:05 insert_cliente.php
-rwxr-xr-x. 1 giuseppe giuseppe   416  7 mag 19:06 form_insert_cliente.html
-rwxr-xr-x. 1 giuseppe giuseppe   539  8 mag 16:03 form_registrazione.html
-rw-rw-rw-. 1 giuseppe giuseppe   694  8 mag 16:13 insert_utente.php
-rwxr-xr-x. 1 giuseppe giuseppe   399  8 mag 18:46 home.html
-rwxr-xr-x. 1 giuseppe giuseppe    98 10 mag 17:54 pagina.html
-rw-rw-rw-. 1 giuseppe giuseppe   256 12 mag 15:10 connessione.php
-rw-rw-rw-. 1 giuseppe giuseppe  1467 14 mag 15:28 accesso_utente.php
-rw-rw-rw-. 1 giuseppe giuseppe   710 22 mag 19:38 gestore_esercizi.php
-rw-rw-rw-. 1 giuseppe giuseppe  2697 22 mag 20:26 gestore_esercizi2.php
-rwxr-xr-x. 1 giuseppe giuseppe  2927 30 mag 20:50 calcolatore_esercizi_multd.html
-rw-rw-rw-. 1 giuseppe giuseppe   324 30 mag 22:51 gestore_esercizi_multd.php
-rwxr-xr-x. 1 giuseppe giuseppe 12288 24 giu 18:12 .gestore_esercizi_box.php.swp
-rw-rw-rw-. 1 giuseppe giuseppe  2283 25 giu 17:32 gestore_esercizi_box.php
-rw-rw-rw-. 1 giuseppe giuseppe  3532  2 lug 14:18 gestore_esercizi_box2.php
-rwxr-xr-x. 1 giuseppe giuseppe  2831  2 lug 17:48 calcolatore_esercizi.html
-rwxr-xr-x. 1 giuseppe giuseppe  2120  2 lug 20:09 calcolatore_esercizi_mult.html
-rw-rw-rw-. 1 giuseppe giuseppe  3423  7 lug 17:50 gestore_esercizi_mult.php
drwxr-xr-x. 2 giuseppe giuseppe  4096  7 lug 20:04 .
drwxr-xr-x. 3 giuseppe giuseppe  4096  8 lug 18:17 ..
[root@giuseppe eserc_php]# 

No so più dove sbattere la testa, però non mi vorrei arrendere

Grazie a chi ha ancora pazienza

Non sono necessari tutti questi output.
Comunque usa i tag quote e code.

Dacci questo output invece:

$ ll /home/