[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Shell Script 'Compilado'
From: |
Gentil de Bortoli Júnior |
Subject: |
Re: [shell-script] Shell Script 'Compilado' |
Date: |
Tue, 31 Jan 2006 16:48:50 -0200 |
User-agent: |
Thunderbird 1.5 (X11/20051201) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tiago Barcellos Peczenyj wrote:
> Ok, mas isso não pode ser resolvido com as tais "permissões" de um arquivo ?
Não pode. Ao menos não com o modelo tradicional de permissões.
Um script não é executável se não tiver permissão de leitura.
E nem sempre quem precisa executar um script, precisa conhecer seu
conteúdo.
$ ls -ld teste.sh
- -rwxr-xr-x 1 gentil gentil 23 2006-01-31 16:39 teste.sh
$ cat teste.sh
#!/bin/bash
echo Teste
$ chmod -r teste.sh
$ cat teste.sh
cat: teste.sh: Permission denied
$ ./teste.sh
/bin/bash: ./teste.sh: Permission denied
Mas, _talvez_ isso seja possível com ACLs.
- --
Gentil de Bortoli Júnior
Chave GPG: http://gentil.bortoli.com.br/gpg
"There Is No Gene For The Human Spirit"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFD37ESR/xCJbtXupkRAuP/AJwPCb7s7907qI+yh7N1nDeAgWS3hACePt+7
7eYpcPrG5WQ7lKjKygukkbw=
=v1KJ
-----END PGP SIGNATURE-----