On Sat, Feb 03, 2001 at 06:25:38AM -0000, Jim M. wrote:
> Hi,
> I entered the "application/octet-stream; /usr/local/bin/mutt.octet.stream 
> %s; copiousoutput"
> in my /etc/mailcap file. I get the error:  permission denied. In 
> /usr/local/bin, I have:
> -rw-r--r-- 1 userid userid      .    .      .   mutt.octet.stream
> 
> How do i fix this?.

The short answer is, execute this command:

    chmod 755 /usr/local/bin/mutt.octet.stream

(Are you sure that's not mutt.octet.filter?)

A slightly longer answer is that you need to give users permission to
execute that file.  This done by changing the permissions, or the mode
bits, of the file using the chmod (CHange MODe) command.  The least
significant 9 bits are composed of 3 groups of three bits each.  Each
group of three bits determines the Read, Write and eXecute permissions
for a set of users:  the file's owner (User), the file's Group, and
Others.  So, for example, 755 is an octal representation of these bits
giving the owner read, write and execute permissions, and giving
everyone else read and execute permissions.  The 'ls -l' command would
show these as "-rwxr-xr-x".

Since this is pretty basic and important stuff to know when using a Unix
system, I would recommend that you find a good introductory book on
using Unix:  Matt Welsh's "Running Linux" (3rd edition) would be a good
choice.

Gary

-- 
Gary Johnson                 | Agilent Technologies
[EMAIL PROTECTED]     | RF Communications Product Generation Unit
                             | Spokane, Washington, USA

Reply via email to