LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2010, 12:48 AM   #1
ramkernel
LQ Newbie
 
Registered: Feb 2010
Posts: 15

Rep: Reputation: 0
Question read and execute permission


Binary files need only execute permission to execute.No read permission is required.
But all executable files must be read by the kernel into main memory before executing.
Also script files need both read and execute permissions for executing the file.
Someone help please to understand this concept
 
Old 03-03-2010, 02:56 AM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 96
just kernel can read file w/o your permissions.
 
Old 03-03-2010, 03:46 AM   #3
sqn
Member
 
Registered: Apr 2002
Distribution: Ubuntu, Arch, freeBSD, Slackware
Posts: 210

Rep: Reputation: 30
For a little more info try reading this:
http://docs.opensourcesolutions.ro/h...ilepermissions
 
Old 03-04-2010, 11:34 AM   #4
ramkernel
LQ Newbie
 
Registered: Feb 2010
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for the info
If the kernel can read without my permission why can't it do the same for shell scripts?
 
Old 03-04-2010, 11:39 AM   #5
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware, Salix
Posts: 237

Rep: Reputation: 59
Quote:
Originally Posted by ramkernel View Post
Thanks for the info
If the kernel can read without my permission why can't it do the same for shell scripts?
Shell scripts are not read directly by the kernel, but are interpreted first by the shell (such as /bin/bash). Since the shell operates in user space it must have read permission on the script.
 
Old 03-06-2010, 10:02 AM   #6
ramkernel
LQ Newbie
 
Registered: Feb 2010
Posts: 15

Original Poster
Rep: Reputation: 0
Understood now.Thank you everyone
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba read+execute permission salimshahzad Linux - Newbie 1 02-21-2010 01:47 AM
File Permission - Read an execute only file e_x_p Linux - Security 1 12-16-2009 08:08 AM
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
How can set execute permission. deepak_message Linux - Software 3 11-03-2007 10:22 AM
vfat execute permission Akuji Slackware 3 08-20-2004 01:38 PM


All times are GMT -5. The time now is 06:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration