Sua pergunta acredito tem sido respondida no e-mail anterior pelo nosso colega, mas acho que essa tabelinha pode ajudar. No meu caso ajudou muito pra eu decorar os valores de cada permissão especial
Segue a tabela que eu criei: u g o - P 1 1 1 7 1 1 0 6 1 0 1 5 1 0 0 4 0 1 1 3 0 1 0 2 0 0 1 1 0 0 0 0 onde u=user, g=grupo, o=outros e P=permissão Abraços, -- Alessandro Oliveira dos Santos Analista de Tecnologia LPIC-1 Tel.: 55 (21) 8738-7713 2007/1/10, Samoied <[EMAIL PROTECTED]>:
Sepoys... Sepoys.. man chmod: MODES Modes may be absolute or symbolic. An absolute mode is an octal number constructed from the sum of one or more of the following values: 4000 (the set-user-ID-on-execution bit) Executable files with this bit set will run with effective uid set to the uid of the file owner. Directories with the set-user-id bit set will force all files and sub-directories created in them to be owned by the directory owner and not by the uid of the creating process, if the underlying file system supports this feature: see chmod(2) and the suiddir option to mount(8). se vc colocou esse "4 na frente" voce setou o suid, portanto deve ter um "s" no lugar do x, no primeiro grupo de letras. Continuando: 2000 (the set-group-ID-on-execution bit) Executable files with this bit set will run with effective gid set to the gid of the file owner. 1000 (the sticky bit) See chmod(2) and sticky(8). Ou seja, para suid e sgid, vc colocaria "6"(4+2). Até, Em 10/01/2007, às 15:43, Jean Vieira escreveu: Lista... estou lendo o livro Certificação Linux de Uirá Ribeiro e uma dúvida me surgiu que ele não trata com clareza no livro: Para eu setar SUID de maneira binária, como é interpretado o comando: $chmod 4750 arquivo.txt 7 = rwx (usuario) 5 = r-x (grupo) 0 = --- (qq) O SUID coloca um "s" no "x" referente a permissão para usuário e para SGID no "x" no grupo... quero entender o 4 antes. -- +-------+ | _ | Jean Vieira | *v* | sepoys at gmail . com | /(_)\ | GNU/Linux User # 352890 | ^ ^ | Florianópolis - SC +-------+