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 > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
umask praveen_b744 UNIX for Dummies Questions & Answers 1 07-27-2008 02:14 AM
help on umask suvendu4urs Linux 6 04-11-2008 12:12 PM
Umask help x96riley3 AIX 1 04-04-2006 03:56 PM
umask rsh UNIX for Dummies Questions & Answers 2 12-14-2002 12:52 PM
umask bb00y UNIX for Dummies Questions & Answers 1 11-06-2002 09:59 AM

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 08-01-2008
falcon16 falcon16 is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 3
umask

Due to urgent requirement to resolve some permission issues , I wish
to set solaris 8 server so that any file written is on 777 .

I guess need to set umask , how to set it ??
  #2 (permalink)  
Old 08-01-2008
incredible incredible is offline Forum Advisor  
Registered User
  
 

Join Date: May 2008
Location: s'pore
Posts: 2,073
set umask to 027, /etc/profile is the file to be updated.
  #3 (permalink)  
Old 08-01-2008
incredible incredible is offline Forum Advisor  
Registered User
  
 

Join Date: May 2008
Location: s'pore
Posts: 2,073
NOTE: all files created from now on will have the default permission of 750
  #4 (permalink)  
Old 08-01-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
Or in reality often 640, because umask alone does not determine the result. The application which creates the file requests a file mode -- usually 644 or 666 -- and umask merely restricts that further.

You don't really want everything to be 777; if you do, sorry, you should be fired. Nothing personal, but the practice of using 777 is catastrophically sloppy.
  #5 (permalink)  
Old 03-18-2009
robsonde robsonde is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 162
Quote:
Originally Posted by era View Post
You don't really want everything to be 777; if you do, sorry, you should be fired. Nothing personal, but the practice of using 777 is catastrophically sloppy.
that was my first thought too....

if I see admins asking about how to do 777 or 666 I assume that they are asking the wrong question.

what is the problem you are trying to solve?
why do you think you need 777 ?

if you can answer the above questions then we will be able to help you find a good secure solution to your problem.
  #6 (permalink)  
Old 08-01-2008
incredible incredible is offline Forum Advisor  
Registered User
  
 

Join Date: May 2008
Location: s'pore
Posts: 2,073
Thats y I recommended 750 instead... falcon16 , Never compromise on security on any circumstances
  #7 (permalink)  
Old 03-18-2009
Mwamba Mwamba is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 4
If you need to have this then

Umask 000 will sort you
  1. any ordinary file will have 444
  2. directories 777

set this in /etc/profile
ie. Umask=000
But I dont recomend this..... Unsecured
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 12:49 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