LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-29-2009, 12:01 AM   #1
mufy
Member
 
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Blog Entries: 4

Rep: Reputation: 30
umask change not taking effect


Hi Folks,

This where I'm stranded.

I have 2 Oracle users that generate .tmp files under /var/tmp. By default, the files have the permissions 644. Now, a need has arisen whereby the files created by these users have to have the permission bits as 664. Obviously, I changed the UMASK value for these users from 022 to 02. But the files are still getting created with 644 as the permission.

I tried restarting the application as I read that a relogin is required for the UMASK change to take effect. Even that hasn't helped.

Any guess(es)?
 
Old 12-29-2009, 01:01 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
1. You can confirm whether or not the "umask" is taking effect by logging in as that user and typing "umask" (which will print out the current umask value).

2. If all else fails, you can globally set "umask" in your system's /etc/profile.

3. But I think the *real* questions are:

a) are these files being created in the context of that user ... or in the context of some *other* user (for example, by one or another Oracle daemons)?

b) is it possible that context is explicitly setting its own umask (overriding the logon configuration value)?

c) is it possible that program is explicitly setting read/write/execute bits when it creates the file (*excluding* the permissions you wish)?

'Hope that helps .. PSM
 
Old 12-29-2009, 01:34 AM   #3
mufy
Member
 
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Blog Entries: 4

Original Poster
Rep: Reputation: 30
This is how the files look:
Code:
-rw-r--r--   1 orauat2  dba               0 Dec 29 06:30 o0289553.tmp
-rw-r--r--   1 orauat2  dba               0 Dec 29 06:30 l0289553.tmp
-rw-r--r--   1 orauat2  dba               0 Dec 29 06:49 o0289557.tmp
-rw-r--r--   1 orauat2  dba               0 Dec 29 06:49 l0289557.tmp
-rw-r--r--   1 orauat2  dba               0 Dec 29 07:00 o0289561.tmp
-rw-r--r--   1 orauat2  dba               0 Dec 29 07:00 l0289561.tmp
-rw-r--r--   1 orauat2  dba               0 Dec 29 08:20 o0289551.tmp
-rw-r--r--   1 orauat2  dba               0 Dec 29 08:20 l0289551.tmp
-rw-r--r--   1 orauat   dba               0 Dec 29 08:30 o0288553.tmp
-rw-r--r--   1 orauat   dba               0 Dec 29 08:30 l0288553.tmp
-rw-r--r--   1 orauat   dba               0 Dec 29 08:31 o0289552.tmp
-rw-r--r--   1 orauat   dba               0 Dec 29 08:31 l0289552.tmp
-rw-r--r--   1 orauat   dba               0 Dec 29 08:33 o0289555.tmp
-rw-r--r--   1 orauat   dba               0 Dec 29 08:33 l0289555.tmp
Moreover, it is interesting to note that there were two files generated with the required permission bits
Code:

-rw-rw-r--   1 orauat   dba               0 Dec 29 09:00 o0288552.tmp
-rw-rw-r--   1 orauat   dba               0 Dec 29 09:00 l0288552.tmp
Only to revert as shown:
Code:
-rw-r--r--   1 orauat2  dba               0 Dec 29 09:00 o0289554.tmp
-rw-r--r--   1 orauat2  dba               0 Dec 29 09:00 l0289554.tmp
-rw-r--r--   1 orauat   dba               0 Dec 29 09:00 o0291551.tmp
-rw-r--r--   1 orauat   dba               0 Dec 29 09:00 l0291551.tmp
But when I switch to one of the users, say, orauat and touch file it seems ok.
Code:
-rw-rw-r--   1 orauat   dba               0 Dec 29 09:05 test.txt
And the umask value is also fine:
Code:
op58@aixuat01[/var/tmp] $su orauat
op58@aixuat01[/var/tmp] $umask
02
 
Old 01-10-2010, 12:37 AM   #4
mufy
Member
 
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Blog Entries: 4

Original Poster
Rep: Reputation: 30
Solution can be found here.

Last edited by mufy; 01-10-2010 at 12:49 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] umask change not taking effect mufy AIX 2 01-10-2010 12:39 AM
umask taking the nearest even number anjanesh Linux - General 4 07-17-2006 01:12 PM
Changes to GRUB menu.lst not taking effect blair Mandriva 4 06-04-2005 10:52 AM
LILO mods not taking effect in mdk9.1 canon Linux - Software 1 05-01-2003 02:27 PM
/etc/crontab adjustment not taking effect :-( furrie *BSD 4 10-08-2002 01:33 PM


All times are GMT -5. The time now is 10:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration