Red Hat ENTERPRISE LINUX WS 2.1 - Guia de Instalação Página 220

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 219
each user can set his own umask, e.g in his .profile or .bashrc
1
. For this
it is necessary to add a line like this:
umask 0002
The 4-digit number must start with zero. The following three digits describe the
permissions for the user, group and others.
examples
1. create a file fila, e.g. with vi, for different values of umask
2. show the output of ls -l fila
umask 000 permissions 666
-rw-rw-rw- 1 owner group 10 Jun 7 12:20 fila
umask 002 permissions 664
-rw-rw-r-- 1 owner group 10 Jun 7 12:20 fila
umask 024 permissions 642
-rw-r---w- 1 owner group 10 Jun 7 12:20 fila
umask 666 permissions 000
----------- 1 owner group 10 Jun 7 12:20 fila
13.3 Linux shells
A Linux shell:
is a layer between the operating system and the user.
1. umask can be set for all users in the file /etc/profile and /etc/csh.login (sh and
bash) or /etc/csh.cshrc (csh and tcsh)
Vista de página 219
1 2 ... 215 216 217 218 219 220 221 222 223 224 225 ... 271 272

Comentários a estes Manuais

Sem comentários