On Fri, 24 Apr 1998, Richard Belanger wrote:

> Check the file permissions of the files that you downloaded to your
> Windows computer i.e. once your files are in the linux filesystem, do ls
> -la to see the file permissions.  You should see only -rw------ or
> something similar , with no x's interspersed with the others . having x's
> mean that your files are now executables.  I had the same problem once, I
> downloaded Red Hat 5 files to install Red Hat 5, forgot about the file
> permissions and ended up with a readonly Linux filesystem and it's not
> desirable.   If you see x's, do chmod -x and chmod o-r and chmod g-r (it
> may be possible to combine these commands but I don't know how yet.)

If you use digits instead of characters with chmod, combining those
commands is pretty easy: R is 4, W is 2, X is 1. If you want a file to
be read-only for the owner only, and no permissions for anyone else:

# chmod 400 [filename]

The first digit is the owner; 2nd is the group; third is others. If I
want a file to be readable, writable and executable by the owner and
readable only by anyone else:

chmod 744 [filename]

Owner gets a 7 (4 for R + 2 for W + 1 for X); group & others get a 4
(for R).

You can setuid with this too (involves adding a fourth digit). See man
chmod.

HTH

Fred W. Noltie Jr.
Criterion Consulting
Coon Rapids, MN USA

Running Linux 2.0.33


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to