LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-01-2009, 05:26 AM   #1
dappa_don
LQ Newbie
 
Registered: Jan 2009
Posts: 12

Rep: Reputation: 0
Question File permissions


Hi All,

I'm running RHEL 5.1. This is running our oracle databases. When the database creates a file it is not creating the file with r,w,e, permissions. It is creating these files on a nfs share on windows server2003.

does anybody know how to make sure the database is creating these files with permissions of 775 on this filesystem which is mounted from a windows box?
 
Old 06-01-2009, 01:30 PM   #2
battletroll
Member
 
Registered: Dec 2004
Location: Alabama
Distribution: Slackware, Solaris,Fedora, CentOS, Redhat, SGI
Posts: 65

Rep: Reputation: 18
It may be the umask the system is set with or the user oracle is running as.
By default the umask - 0002 for root and 0022 for users.
Try changing this in the /etc/bashrc or and it to the users /home/oracle/.bash_profile

Hope it helps
 
Old 06-01-2009, 08:33 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
MS and Linux perms are very different. What format is this disk; NTFS, VFAT ?
 
Old 06-03-2009, 03:58 AM   #4
dappa_don
LQ Newbie
 
Registered: Jan 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Its using NTFS.

I have wrote a script to run on this and mod all files but don't want this solution. would setting the UID in this directory solve this issue?
 
Old 06-03-2009, 07:43 AM   #5
Sm1ler
Member
 
Registered: Apr 2004
Location: UK
Distribution: Fedora Core (all), Knoppix, RHEL, Centos, Debian
Posts: 100

Rep: Reputation: 16
How is the NTFS drive or share mounted? If this done via the fstab you can pass various options and set the umask at mount. Also what permissions are set on the mount point and who owns it? it's all worth checking.
 
Old 06-05-2009, 09:45 AM   #6
dappa_don
LQ Newbie
 
Registered: Jan 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Yeah it's getting mounted via the fstab using:

nfs defaults 0 0

the directory in question is:

drwxrwxrwx 2 nfsnobody nfsnobody 64 Jun 5 07:59

although the mount point is higher in the directory tree but still has the same permissions

drwxrwxrwx 2 nfsnobody nfsnobody 64 Jun 5 12:00
 
  


Reply



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
how to hide a file using file permissions in linux without using dot davender84 Linux - General 4 03-26-2009 12:13 AM
Windows file permissions with a Linux file server joseph_k Linux - Server 3 05-09-2008 12:54 PM
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 05:35 AM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:59 PM.

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
Open Source Consulting | Domain Registration