permisssions


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers permisssions
# 1  
Old 06-21-2006
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!!
# 2  
Old 06-21-2006
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 09:46 AM..
# 3  
Old 07-13-2006
so everytime after creating or modifying a file ,do i need to give "X" permissions manually using chmod?
if i have lot of files?? Smilie
# 4  
Old 07-15-2006
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

Regards,
Tayyab
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question