Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Life after Windoze _ bash: Permission Denied

Posted by: ikillpenguin Oct 29 2006, 02:44 PM

Probably a stupid problem, but I just started using linux yesterday since i found out that windows sucks, and im having a problem.

[root@MSHOME Desktop]# ./jre-1_5_0_09-linux-i586-rpm.bin
bash: ./jre-1_5_0_09-linux-i586-rpm.bin: Permission denied

As you can see, I'm logged in as root, so it shouldn't be a permission problem, right?

Posted by: michaelk Oct 29 2006, 07:03 PM

The file's executable bits still need to be set regardless of user.
see man pages for chmod for details

chmod 777 jre-1_5_0_09-linux-i586-rpm.bin
sets rwx permissions for all users.

To see permissions
ls -l jre-1_5_0_09-linux-i586-rpm.bin

Posted by: DS2K3 Oct 30 2006, 01:37 PM

To see man pages for chmod, run "man chmod"


Posted by: RichNorman Dec 7 2007, 04:01 AM

I can personally see how permissions can be troubling to Windoze users entering the Linux community, check out this piece of work:

rich@rich-desktop:/etc$ whoami
rich@rich-desktop:/etc$ groups rich
rich : rich adm dialout cdrom floppy audio dip video plugdev scanner lpadmin admin netdev powerdev ejabberd
rich@rich-desktop:/etc$ ls -alF | grep ej*
drwxrwx--- 2 ejabberd ejabberd 4096 2007-12-06 20:39 ejabberd/
rich@rich-desktop:/etc$ cd ejabberd
bash: cd: ejabberd: Permission denied

I am 'rich'; 'rich' is a member of ejabberd; ejabberd folder is owned by user ejabberd of group ejabberd. folder can be read/wrote or executed by a member of ejabberd
So logically 'rich' should have access to the folder called 'ejabberd'. Ah Contrar, bash says No! Where's that baseball bat? bash needs a bashing.

Of course, permissions are not solely a problem of Linux. I found the perfect blog to post to on here called "permissions". I clicked on post, and got this message.

"The error returned was: Sorry, you do not have permission to reply to that topic"

IMHO If I was just curious about Ubuntu/Linux but was still OK with Windoze,.......not only would Windoze (viruses and all) look better (as MS would have you think) ...but asking for help on here would appear just as flawed.


Posted by: DS2K3 Jan 3 2008, 08:36 PM

I'm not entirely sure what the point is that you are trying to make (and "only" 15 months after the last post) but I think it has something to do with a dislike for file permissions. File permissions are a fundamental part of any UNIX operating system and even Windows (apparently everyone has forgotten how to spell) has a crude implementation of them. They are perhaps the single biggest reason that UNIXes are less vulnerable to malware.

Ah - Locked topics, a moderators dream. This is why I lock topics when they are resolved, it stops random posts being added several years later. :|

Powered by Invision Power Board (
© Invision Power Services (