Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Closed TopicStart new topic
> bash: Permission Denied, Probably a stupid problem
ikillpenguin
post Oct 29 2006, 02:44 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 29-October 06
Member No.: 7,606



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?
Go to the top of the page
 
+Quote Post
michaelk
post Oct 29 2006, 07:03 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,800
Joined: 23-January 03
Member No.: 360



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

example:
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
Go to the top of the page
 
+Quote Post
DS2K3
post Oct 30 2006, 01:37 PM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165



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

D


--------------------
Fixed your problem? Let us know!
richard@linuxhelp.net

www.Gathr.co.uk Online Event Management
Go to the top of the page
 
+Quote Post
RichNorman
post Dec 7 2007, 04:01 AM
Post #4


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 7-December 07
Member No.: 13,184



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@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
rich@rich-desktop:/etc$

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.

--Rich
Go to the top of the page
 
+Quote Post
DS2K3
post Jan 3 2008, 08:36 PM
Post #5


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165



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. :|


--------------------
Fixed your problem? Let us know!
richard@linuxhelp.net

www.Gathr.co.uk Online Event Management
Go to the top of the page
 
+Quote Post

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th November 2017 - 07:58 PM