Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: UNIX question....

RE: UNIX question....

From: Steve Adams <steve.adams_at_ixora.com.au>
Date: Sat, 3 Jun 2000 10:40:17 +1000
Message-Id: <10516.107627@fatcity.com>


Hi Stephen,

The umask is a mask. That is, it masks out bits that would otherwise be set. It cannot turn on bits that would otherwise not be set. When you create an empty file with touch(1), it is assumed to an empty text/data file, not an empty executable file. Therefore the full permissions with a umask of 0 would be 666, not 777. Applying a umask of 2 gives 664. This is correct. However, if you were to create an executable file with that umask, then you would get the 775 that you are after. If you are not creating an executable, then why do you need the execute bits to be on?

Regards,
Steve Adams

http://www.ixora.com.au/
http://www.oreilly.com/catalog/orinternals/
http://www.christianity.net.au/


-----Original Message-----
From:	Stephen J Palmer [SMTP:spalmer_at_brk.photronics.com]
Sent:	Saturday, June 03, 2000 2:15 AM
To:	Multiple recipients of list ORACLE-L
Subject:	UNIX question....

A quick question for all you Oracle/UNIX people...... I need to create a file
with the
permissions 775 ( rwxrwxr-x ) and I have set the umask to what all the books
recommend.... with no luck.... The end user cant user CHMOD on the file, so I
need
to have the files created as 775. Any ideas would be much appreciated.

Thanks in advance.

$ umask -S

u=rwx,g=rwx,o=rx
$ touch junk
$ ls -l junk

-rw-rw-r-- 1 oracle dba 0 Jun 2 09:49 junk

       777

$ umask 002
$ touch junk
$ ls -l junk

-rw-rw-r-- 1 oracle dba 0 Jun 2 09:55 junk

Stephen Palmer
Junior Database Administrator
Photronics Inc.
15 Secor Road
Brookfield, Conn.
203.740.5331
Pager 203-830-0306 or 1-800-706-7109
mailto:spalmer_at_brk.photronics.com
Home Number 203.270.8159
Alpha Pager mailto:spalmer.pager_at_brk.photronics.com

--
Author: Stephen J Palmer
  INET: spalmer_at_brk.photronics.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
Received on Fri Jun 02 2000 - 19:40:17 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US