NukeXchange Network

          

NukeZone Hosting - Fast, Affordable and Dependable
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·Please Help Question about Siggy's
·time doesn't appear when I post a new
·Install problems
·Security about Embeding into news articles.
·I get nomail in my phpnuke :(
·Hi My name is Rukasuzu, where is the introduction?
·I get an bug TinyMCE_basic_getEditorTemplate?
·MYSQL ERROR HELP ME PLEASE
·Creating a Gaming PHP Nuke Site - Newbie
·Issues with GIF Images

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: churchy
Today: 3
Yesterday: 1
Overall: 15033

Visitation:
Guests: 461
Members: 1
Total: 462


You are Anonymous user. You can register for free by clicking here
Sponsor Links
Nuke Sites Link Directory
Nuke Sites Link Directory

NukeResources :: View topic - Unix permissions and the use of chmod
NukeResources Forum Index

NukeResources Forum Index -> Unix Commands -> Unix permissions and the use of chmod
Post new topic  Reply to topic    View previous topic :: View next topic 
Unix permissions and the use of chmod
PostPosted: Tue Nov 12, 2002 2:09 am Reply with quote
gumbydammit
Resource Seeker
Resource Seeker
 
Joined: Nov 07, 2002
Posts: 5




One cannot understand unix and its capabilities until he understands general permissions.. it is the basics of unix and highly important to make things work and keep them safe from harm.In this post i will attempt to explain the basic usage of chmod and explain file permissions.
First of all i will explain a simple Unix format file permission.. what you would see on a ls-l in your shell

-rwxr-xr-x 1 mark wheel 14 Oct 19 15:14 .xsession

the first part is the permissions themselves .. the "1" is the number of files... if this was a directory it would be more obviously... the owner of this file is USER mark .. the GROUP this file belongs to is wheel.... the date and time the file was created ... and lastly the name of this file is .xsession

The permissions in unix are split up into sections... the very first letter is specia,l usually you will see either nothing here or a d.. meaning directory.. the next three digits are for USER, perissions in this files case rwx for USER mark, so full access.. the next three are for GROUP permissions.. r-x in this files case meaning anyone belonging to GROUP wheel can read and execute this file.
the last three digits are for USER nobody.. meaning guests on the comp .. this could be many things like anonymous ftp for example or simply used so someone can read this file who is not USER mark or belonging to GROUP wheel.

Now the fun part lol .. in unix, chmod is a command for changing file permissions, it has many options but i will explain the basic uses of it.. in order to use chmod correctly you must know the numerical values of permissions, these are in very simple terms...
r (read access) = 4
w ( write access) =2
x (execute access ) =1 or "able to cd to" for a directory
these are also grouped like above, user group and nobody.. so a three digit number the first for USER the second for GROUP the third for "user nobody"
so if we break down my exmaple file
-rwxr-xr-x 1 mark wheel 14 Oct 19 15:14 .xsession
rwx(user) ... equals r=4 + w=2 + x=1... so our first number is 7
r-x(group)....equals r=4 + w=0 + x=1....so our second digit is 5
r-x(user nobody) ..equals r=4 + w=0 + x=1...so out third digit is 5
so that file is 755
The use of chmod is simple.... chmod 755 filename would make "filename" rwxr-xr-x
The second use which lazy people use or people who dont understand the numerical values is chmod +x or +w or +r filename
like chmod +x filename ... would add x to the USER,GROUP and user nomody permissions
so if i had a file that was simply -rw------- ... chmod +x filename would make it rwx--x--x which is ok if thats what you want it to be however many lazy people dont take the time to learn perms and simply use this and compromise the security of the file in question
chmod in ftp works the exact same way... in ftp from a shell it is identical to what i said.... in a ftp client the interface might have like fancy check marks for read write and execute but its all the same thing, if you understand this you will know which exact permissions you are setting regardless..
hope this helps
View user's profile Send private message
Unix permissions and the use of chmod
PostPosted: Sun Dec 15, 2002 4:25 pm Reply with quote
gumbydammit
Resource Seeker
Resource Seeker
 
Joined: Nov 07, 2002
Posts: 5




just a clarification on my above post..
in order for a file to be accessed\written\executed you must have permissions to do so on the full path of a file... for example
file 1 located in /usr/home/gumby/folder1/myfile.html
in order for me to access that file... i must have perms on each folder it is in... starting from /usr and then down the line...
so the final perm deciedes what i can or cannot do with that file... altho if i cant access the folder itself obviously my perms on that particular file are irrelevant
View user's profile Send private message
Is there a script
PostPosted: Tue Feb 03, 2004 9:19 pm Reply with quote
jimmorrison
Resource Seeker
Resource Seeker
 
Joined: Jun 12, 2003
Posts: 2




Hey there

I am playing round with debian, I am trying to get phpnuke goin the webserver, and have realised I have to go to every folder to chmod the contents

Is there a way to them all with one command?
View user's profile Send private message
PostPosted: Thu Oct 21, 2004 9:24 am Reply with quote
gumbydammit
Resource Seeker
Resource Seeker
 
Joined: Nov 07, 2002
Posts: 5




chmod -R 755 directory
for instance would "recursively" chmod all files folders in said directory to chmod 755
View user's profile Send private message
Unix permissions and the use of chmod
 NukeResources Forum Index -> Unix Commands
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 4 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic     



Powered by phpBB © 2001-2005 phpBB Group.     Theme created by Vjacheslav Trushkin.
There have been 171 unique hit(s) in the past 24 hours.
Forums ©
Nuke Sites Link Directory


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.86 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::