![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
File Permissions
Hi All,
Could any one help me on is there any file where all file permissions are being stored? Please help me. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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?) |
|
#3
|
|||
|
|||
|
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..
|
|
#4
|
||||
|
||||
|
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.
|
|
#5
|
|||
|
|||
|
What are you wanting to do exactly ?
|
|
#6
|
|||
|
|||
|
I think he is trying to change all of directory and file permissions at once..
|
|
#7
|
|||
|
|||
|
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.
|
|||
| Google The UNIX and Linux Forums |