Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dubbio permessi KDE4 [risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
pierino_89
Guru
Guru


Joined: 03 Oct 2009
Posts: 522

PostPosted: Fri May 13, 2011 9:50 pm    Post subject: Dubbio permessi KDE4 [risolto] Reply with quote

Oggi mi sono accorto di una cosa strana.
Ho aperto un terminale, sono diventato root e ho fatto:
Code:
touch file.txt

Ho verificato i permessi con
Code:
ls -l file.txt
-rw-r--r-- 1 root root 0 13 mag 23.45 file.txt


Dopodiché l'ho aperto con kwrite, ho scritto delle cose, e ho salvato.
Al che kwrite ha detto:
Quote:
Impossibile salvare il documento, perché non è stato possibile scrivere su /home/pierino/file.txt.

Controlla di avere accesso in scrittura al file e che lo spazio su disco sia sufficiente.

dunque ho chiuso, sono tornato su dolphin, ho fatto click destro -> elimina e il file è sparito.

Poi ho pensato: "Ma perché dolphin può cancellare un file di root senza avere il permesso di scrittura???" :evil:
Adesso vorrei capire se capita anche a voi, o se qualcosa non va dalle mie parti.[/quote]
_________________
Linux registered user 461710


Last edited by pierino_89 on Sat May 14, 2011 11:34 am; edited 1 time in total
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Sat May 14, 2011 7:22 am    Post subject: Reply with quote

Non è colpa di dolphin. Anche se provi a rimuoverlo via shell te lo cancella, però in questo caso chiede una conferma.
Il punto è che stai creando un file nella tua home (intestata a te!), e sostanzialmente il sistema vedendo che si trova nella tua home ti permette di cancellarlo.
Se provi a creare lo stesso file in /, vedrai che non te lo fa cancellare.

Altre info qui.
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
pierino_89
Guru
Guru


Joined: 03 Oct 2009
Posts: 522

PostPosted: Sat May 14, 2011 11:53 am    Post subject: Reply with quote

Ah! Devo ammettere che come meccanismo mi lascia un po' perplesso, comunque l'importante è saperlo :D
_________________
Linux registered user 461710
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Sat May 14, 2011 11:58 am    Post subject: Reply with quote

Considera che se imposti bene i permessi questo non crea nessuna falla di sicurezza.
I file di root nella home non devono starci (intendendo come file di root, se vogliamo quelli di sistema). Il concetto è che se tu vieni in casa mia non posso "perquisirti" la borsa, ma posso cacciarti via di casa. :D
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Sat May 14, 2011 12:52 pm    Post subject: Reply with quote

cerca su questo forum, ci sono almeno due discussioni molto dettagliate sull'argomento e su come prevenire quest'eventualità.
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Sun May 15, 2011 9:47 am    Post subject: Reply with quote

Interessante... :roll:
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum