![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
permisssions
hi,
i want to set Umask for my newly created files or modified files with execute permissions. if i iset umask 002 ,iam not able to see execute permissions for script files,but if i create new directories,iam gettin 'X' permission. I want to have 'X' permission for the ordinary files also,when i create or modify.pls let me know what umask setting i need to give for this,and to make this change permenent where do i need to set the setting. Thanks for your help!! |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Not possible in UNIX.......
Default permissions in UNIX are as follows:
For files 666, Directory: 777, if you set umask to 0 still you can't get default executable permissions on each file because it'll give you 666 permissions whichi is: -rw-rw-rw. This is due to security reasons. I dont think so you'll be able to acheive your target in Linux/Unix systems. Regards, Tayyab Last edited by tayyabq8; 06-21-2006 at 05:46 AM. |
|
#3
|
|||
|
|||
|
so everytime after creating or modifying a file ,do i need to give "X" permissions manually using chmod?
if i have lot of files?? |
|
#4
|
||||
|
||||
|
Yes, you have to do that, for many files try to use wildcards, suppose you have many .scr files which you want to make executable you could use
Code:
chmod +x *.scr Tayyab |
||||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|