The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-21-2006
rujupriya rujupriya is offline
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!!
  #2 (permalink)  
Old 06-21-2006
tayyabq8's Avatar
tayyabq8 tayyabq8 is offline Forum Advisor  
Moderator
  
 

Join Date: Nov 2004
Location: Bahrain
Posts: 579
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 08:46 AM..
  #3 (permalink)  
Old 07-13-2006
rujupriya rujupriya is offline
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??
  #4 (permalink)  
Old 07-15-2006
tayyabq8's Avatar
tayyabq8 tayyabq8 is offline Forum Advisor  
Moderator
  
 

Join Date: Nov 2004
Location: Bahrain
Posts: 579
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0