The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-21-2006
Registered User
 

Join Date: May 2006
Posts: 5
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!!
Reply With Quote
Forum Sponsor
  #2  
Old 06-21-2006
tayyabq8's Avatar
Moderator
 

Join Date: Nov 2004
Location: Bahrain
Posts: 555
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.
Reply With Quote
  #3  
Old 07-13-2006
Registered User
 

Join Date: May 2006
Posts: 5
so everytime after creating or modifying a file ,do i need to give "X" permissions manually using chmod?
if i have lot of files??
Reply With Quote
  #4  
Old 07-14-2006
tayyabq8's Avatar
Moderator
 

Join Date: Nov 2004
Location: Bahrain
Posts: 555
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
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 03:24 AM.


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