[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Negar permissao excluir



aham!
da um chmod 777 na pasta e deixa o grupo e o dono como root.



Em 21/08/07, Maxwillian Miorim <miorimmax@gmail.com > escreveu:
On 8/21/07, Gunther Furtado < gunzera0@yahoo.com.br> wrote:
> Em 21/08/07, gunix<gustavo.grupos@gmail.com> escreveu:
> (...)
> > Alguem sabe como fazer isso?
> >
> dê uma olhada em,,,
>
> http://checkmyip.com/man/chmod.html
>
> ou execute
>
> $ man chmod

Depois que ele tirar as permissões de write do diretório ele não pode
mais criar arquivos lá dentro...

----
max@max:~$ mkdir permission_test
max@max:~$ chmod a-w permission_test/
max@max:~$ touch permission_test/file
touch: cannot touch `permission_test/file': Permission denied
----


Uma alternativa é ligar o sticky bit no diretório, definir o root como
dono e deixar as permissões como 777, da man page do chmod:

----
STICKY DIRECTORIES
       When the sticky bit is set on a directory, files in that
directory may be unlinked or renamed only by root or their owner.
Without
       the sticky bit, anyone able to write to the directory can
delete or rename files.  The sticky bit is commonly found on
directories,
       such as /tmp, that are world-writable.
----

--
Max




--
     .~.
     / v \  
    /(   )\  GNU/Debian/Linux
    ^   ^
Reply to: