Help - Search - Members - Calendar
Full Version: bash: Permission Denied
Linuxhelp > Support > Life after Windoze
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?
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
To see man pages for chmod, run "man chmod"

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.

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. :|
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.