Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
permission denied as root??
Name: Chris Date: June 1, 2002 at 21:18:14 Pacific
Comment:
I am reading "Learning the Bash Shell" from O'Reilly. I have run a few commands (from the root account) and I will occaisionally get a "permission denied" when i run different commands. It doesn't matter if I login as root, or I su - to root. Why am I getting permission denied on anything when I am logged in as root? I figured at root I should be able to access anything on the server. I am running Red Hat 7.2 kernel version 2.4.7-10, and Bash version 2.05-8
Well if root owns the file, and user only has read and write access (chmod 600), then you can't even execute it as root. User needs execute permission (even if user is root) to be able to execute the file.
0
Response Number 3
Name: Barry J. Grundy Date: June 2, 2002 at 04:17:28 Pacific
Reply:
Can you give us an example? That would be easier than guessing the problem...
0
Response Number 4
Name: NetPortal Date: June 2, 2002 at 07:35:07 Pacific
Reply:
Actually, if you does not setup an execute permission for the file, you will not be able to execute it even tough you are root. But as a root, you can setup any privileges you like for yourself and for any others… that is you powerful ;)
Summary: When I use the super user console I am denied permission on some commands, such as /dev/hda and /dev /dsp*/dev/mixer* . I am trying to use Linux and am learning it little by little. I have no experi...
Summary: It doesn't matter whether the file is owned by root or not, or in fact what any of the permissions are as root will still be able to run it using sh, eg: As a user: $ chown myname:mygroup script.sh Se...
Summary: I can't seem to run shell scripts that reside on an EXT2 filesystem. I get bad interpreter: permission denied every time I try, even though I am root, and the exec bits are set on both the script and...