LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author]
  From: Benjamin Close <linux@senet.com.au>
  To  : Rick McQueen-Thomson <rmcqt@mail.mcmedia.com.au>
  Date: Thu, 18 Nov 1999 21:10:57 +1030 (CST)

Re: Caldera Problems as a Newbie

On Thu, 18 Nov 1999, Rick McQueen-Thomson wrote:

> 	I am not used to this system or indeed to Linux, so if I offend local
> mores, please forgive.

We have all had to learn how to use linux :)

> 	I have a problem with Caldera OpenLinux ver 2.3.  I installed it
> successfully enough on my machine.  As root user, I then tried to mount a
> WordPerfect ver 8 disc, which was mounted OK.  I then tried to follow the
> instructions which involved setting the directory to /mnt/cdrom and typing
> ./install.wp and I got "permission denied" as superuser.  I tried the same
> with StarOffice 5.1 (cd/mnt/linux/office51 type ./setup) and again got
> "permission denied".  
> 
> 	There is obviously something simple I am missing here, but I don't
> understand what.  I have tried fairly extensive reading to no avail.  I
> would be very grateful if someone could point me in the right direction.

It sounds to me like the files do not have the executable permission set.
Not even root can run a file if it's not executable. A little example...

I have a file called hello which outputs "hello world" now:

ls -l gives:
-rw-rw-r--   1 root     root           17 Nov 18 21:07 hello

[root@Bytes4U /root]# ./hello
bash: ./hello: Permission denied

[root@Bytes4U /root]# chmod u+x hello
[root@Bytes4U /root]# ls -l hello
-rwxrw-r--   1 root     root           17 Nov 18 21:07 hello
   ^
   |-- notice the difference

[root@Bytes4U /root]# ./hello
hello world

So you can either set the execute permissions as above or type: 
sh ./filename

Cheers,
--

* Benjamin Close
* Benjsc@senet.com.au
* Web Page: http://users.senet.com.au/~benjsc

-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author]
Return to the LinuxSA Mailing List Information Page