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: Stephen J Palmer <spalmer_at_brk.photronics.com>
Date: Tue, 06 Jun 2000 10:38:11 -0400
Message-Id: <10520.107883@fatcity.com>


Thanks for the information... the file we are dealing with is a text file that will be
viewed through a browser, and for some reason needs to have an execute bit on it to be seen... we have been using FTP to move the files, and changing the

privileges on the other end. I thought umask may help me out.... but as it turns
out.... it wont.

Thanks!

Steve

Steve Adams wrote:

> 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
> - 775
> _______
> 002
>
> $ 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
> also send the HELP command for other information (like subscribing).
> --
> Author: Steve Adams
> INET: steve.adams_at_ixora.com.au
>
> 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
> also send the HELP command for other information (like subscribing).

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 Received on Tue Jun 06 2000 - 09:38:11 CDT

Original text of this message

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