can't run script

Atom 'Smasher' atom-gpg at
Sun Dec 21 16:03:37 CET 2003

Hash: SHA1

> BTW: I don't know of anyway to have umask activate execute permissions
> on a file, do you? I thought 0 will only do rwx on directories. At least
> that's how it works on my system 027 will give rw-r-----

umask takes away permissions (such as taking away other users' ability to
read files) but cannot be used to add permissions (such as turning on an
execute bit).

depending on your shell and/or flavor of *nix, you might be able to create
an empty file by `touch`ing it, then chmod it, then redirect stuff into
it. the point is to set the restrictive permissions before filling the
file with data.

if you can't create a file by touching it, you can always do:
  echo > new_file
  chmod 700 new_file
  echo "${good_stuff}" > new_file


 PGP key -
 3EBE 2810 30AE 601D 54B2 4A90 9C28 0BBF 3D7D 41E3

	"We've got to pause and ask ourselves:
	 How much clean air do we need?"
		-- Lee Iacocca,
		former president of Chrysler Motor Corp

Version: GnuPG v1.2.3 (FreeBSD)


More information about the Gnupg-users mailing list