umask 000 é igual ao chmod 777

Em Seg, 2009-12-28 às 13:35 -0300, Lucas Saliés Brum escreveu:

> Não Leslie, umask é diferente de chmod.
> umask 000 é igual ao chmod 777, ou seja -rwxrwxrwx
> Entendeu?
> 
> http://www.vivaolinux.com.br/artigo/Entendendo-os-tipos-de-permissoes/?pagina=5
> http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html
> http://www.dartmouth.edu/~rc/help/faq/permissions.html
> 
> Agora eu não sei se esse mask do Samba se refere ao umask ou chmod.
> 
> Em Seg, 2009-12-28 às 14:19 -0200, Leslie H. Watter escreveu: 
> 
> > Do man chmod
> > 
> >        S_ISVTX  (01000)  sticky bit (restricted deletion flag, as described 
> > in unlink(2))
> > 
> >        S_IRUSR  (00400)  read by owner
> > 
> >        S_IWUSR  (00200)  write by owner
> > 
> >        S_IXUSR  (00100)  execute/search by owner ("search" applies for 
> > directories, and means that entries within the directory can be accessed)
> > 
> >        S_IRGRP  (00040)  read by group
> > 
> >        S_IWGRP  (00020)  write by group
> > 
> >        S_IXGRP  (00010)  execute/search by group
> > 
> >        S_IROTH  (00004)  read by others
> > 
> >        S_IWOTH  (00002)  write by others
> > 
> >        S_IXOTH  (00001)  execute/search by others
> > 
> >  
> > E fazendo as contas, 0777 = -rwxrwxrwx sim :D
> > 
> > Att,
> > 
> > Leslie
> > 
> > 
> 
> 


Attachment: signature.asc
Description: Esta é uma parte de mensagem assinada digitalmente

Responder a