can't run script

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


-----BEGIN PGP SIGNED MESSAGE-----
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


        ...atom

 _______________________________________________
 PGP key - http://smasher.suspicious.org/pgp.txt
 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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/5jTdnCgLvz19QeMRAsM8AJwP+USViRBs7CQfNJceRoI7ZgCEPACgquuM
fJ5koE0Y6UbgrcevnD2KDC8=
=i2hK
-----END PGP SIGNATURE-----



More information about the Gnupg-users mailing list