The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
To give the "unzip" permissions & "create" file permissions Mike1234 HP-UX 3 03-02-2008 02:34 PM
help with file permissions bbbngowc Security 3 12-21-2007 10:34 AM
file permissions: l Tobe UNIX for Dummies Questions & Answers 1 04-26-2007 07:04 AM
file permissions mohanprabu Shell Programming and Scripting 4 05-31-2005 06:19 AM
File Permissions buRst Filesystems, Disks and Memory 3 02-12-2002 06:30 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-09-2008
Registered User
 

Join Date: Aug 2008
Posts: 3
File Permissions

Hi All,

Could any one help me on
is there any file where all file permissions are being stored?
Please help me.
Reply With Quote
Forum Sponsor
  #2  
Old 09-09-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
No, they are stored in the directory along with the file name, date, etc.

On some platforms you can actually read the directory as a file and parse out these things, but it's stored in binary form so you need something which can cope with that (C or Perl?)
Reply With Quote
  #3  
Old 09-09-2008
dj -------
 

Join Date: Feb 2007
Location: Cochin/Bangalore, India
Posts: 439
There will not be any files in Unix to hold the file permissions. But the stat comand can be used which will internally do a system call to retrieve the file information. It will provide info including the inode num, pwermissions, times etc..
Reply With Quote
  #4  
Old 09-09-2008
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
Permissions are stored in the inode of a file. A directory entry is a name and an inode number. Nothing else is stored in the directory.
Reply With Quote
  #5  
Old 09-09-2008
Registered User
 

Join Date: Sep 2008
Posts: 6
What are you wanting to do exactly ?
Reply With Quote
  #6  
Old 09-10-2008
Registered User
 

Join Date: Sep 2008
Posts: 28
I think he is trying to change all of directory and file permissions at once..
Reply With Quote
  #7  
Old 09-10-2008
Registered User
 

Join Date: Sep 2008
Posts: 6
If you are trying to change the directory and file permissions at once, you can use chmod -R (recursive) switch on the concerned directory. There are many other options possible, depending on what you are intending to do. We can help you if we have a clear picture.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 02:22 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0