Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Absolute Beginner Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Absolute Beginner Talk
The perfect starting place to find out more about computers, Linux and Ubuntu.

 
Thread Tools Display Modes
Old January 27th, 2009   #1
technosinner
5 Cups of Ubuntu
 
Join Date: Oct 2008
Beans: 39
File permissions, Write vs. Execute (RWX)

Ok, this is by far as noob as it gets, but I've been having issues with file permissions: I can't get for the life of me what the difference is between read and execute for a file...

I mean in theory yes, I do. But when it comes to working it, what's the difference between reading a .jpg and executing a .jpg? I first assumed the X attribute only applied to binaries and executables - hence the name - but I've gathered conflicting info over the Net.

BTW I fully understand how to tell what permissions a file has, and how to change them. I also get the whole owner vs. group vs. world. And believe it or not I understand what the difference is between RWX in a folder... Just a brain cramp or something for files...

Thanks once again!
ts
technosinner is offline   Reply With Quote
Old January 27th, 2009   #2
emarkd
Dark Roasted Ubuntu
 
emarkd's Avatar
 
Join Date: Mar 2007
Location: Georgia, US
Beans: 1,072
Ubuntu 7.10 Gutsy Gibbon
Send a message via ICQ to emarkd Send a message via AIM to emarkd
Re: File permissions, Write vs. Execute (RWX)

I'm not sure what you've read, but execution really only applies to executable binaries or scripts. It basically breaks down like this:


R = read a file or list contents of a folder
W = edit a file or create/delete/rename contents of a folder
X = run a file or access contents of a folder
__________________
print $clever_quote
NameError: name '$clever_quote' is not defined
emarkd is offline   Reply With Quote
Old January 28th, 2009   #3
technosinner
5 Cups of Ubuntu
 
Join Date: Oct 2008
Beans: 39
Re: File permissions, Write vs. Execute (RWX)

Thanks so much for a clear answer emarkd! Some places I read mentioned something about accessing the file not being the same as reading it's content... got me confused a bit.

Now let me swing this in another direction: if I've been playing around with these and maybe shouldn't have (...) how do I know what the default permissions should be for the system to run properly?

Thanks
technosinner is offline   Reply With Quote

Bookmarks

Tags
file, permission, rwx

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:27 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry