[Solved] File permissions issue


 
Thread Tools Search this Thread
Operating Systems HP-UX [Solved] File permissions issue
# 1  
Old 03-03-2010
[Solved] File permissions issue

Hi everybody,

following is the scenario;

OS HP UX 11.23

two users:
# id bodi
uid=109(bodi) gid=20(users) groups=1(other),2(bin),3(sys),106(oinstall)
# id ossmed
uid=121(ossmed) gid=20(users)

umask
077
directory name /home/mydir
directory permissions drwxrwxrwx

requirement: to have read,execute permissions to group users on all the new created/creating files in this dir.

files are created by a encrypted tool from "bodi" user into this directory with read,write permissions to owner only.

what i tried:

Changed the umask in .profile to 027 of "bodi" user. but dos'nt help because the tool that creates the files don't use the .profile of user.

can't change the default umask in /etc/default/security to other the 077

tried to put acl on dir and don't help with new created files.

any solution?, other then writing and scheduling a script that runs and changes the permission of files.

Regards/AjayS
# 2  
Old 03-03-2010
Since you cannot change the default umask which is the cause of your issue, you are doomed...
Now my 2 cents:
What is the point of such a restrictive umask if the directories are 777?
For instance you are letting anyone the possibility to remove the file(s)...
Why not use a already quite restrictive 027 which lets your conveniently set a 750 on the directory (could add an +s on group, better...) and decide who has access to the group (which would be read only...) OK this does not solve your execute perm... I blame your tools for that...

Last edited by vbe; 03-03-2010 at 10:33 AM.. Reason: typo... thanks methyl!
# 3  
Old 03-03-2010
Me pedantic.

umask 027
New directory gets permissions 750
New file gets permissions 640

Perfect for this situation because both users are in the same primary group.

Can the encrypted program be enveloped in a script which sets up the correct environment?
# 4  
Old 03-04-2010
Thanx for ur replies,
UMASK 077 is part of the security policy,
i was looking for other possibilities,
let me check if i get the approval to override this.

Regards
AjayS
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Permissions issue

Hello, I'm having an issue with a directory that is used to forward Windows logs. I have a user account on Windows servers that uses SCP to put logs on my Solaris 10 server. A appliance called LogLogic then takes the logs from my server and stores them. I need to have have group read so the... (8 Replies)
Discussion started by: bitlord
8 Replies

2. Shell Programming and Scripting

Permissions issue

Hi, I have a shell script which calls oracle procedure. Procedure creates a file using oracle utl_file and places file on unix server at loaction /tmp. The file permission is getting set to 640 (Owner=oracle, group=dba) I need it to be 644 by default. (So others can read it.) The umask... (4 Replies)
Discussion started by: krishna_gnv
4 Replies

3. Shell Programming and Scripting

Permissions Issue

Hi Experts, I have one ftp user which will FTP the files to two subdirectories of some other user. Say i have one user "xyz" . It FTP's the file to the directory of "abc" user. I have added xyz user in abc group. -rw-r--r-- 1 xyz abc 0 Jul 26 10:05 mo -rw-r--r-- 1 xyz abc ... (1 Reply)
Discussion started by: sugarcane
1 Replies

4. Shell Programming and Scripting

[Solved] Line Break Issue for an XML file

I got an XML file(file name TABLE.xml) which the data format has line breaks(with no Spaces, no Nulls, no characters between each line), I need to write a KSH script which gives me the data in single line as format shown below My input file which have line breaks: <TABLE> <TABLE-ROW> <S_NO>... (7 Replies)
Discussion started by: pred55
7 Replies

5. UNIX for Advanced & Expert Users

[Solved] nfs share permissions with java

Please bare with me while I try to explain this weird problem. We are exporting a filesystem from an aix box to two linux boxes. On the linux box a java-weblogic application hits the share. For explanation benefits I'll describe the users thus. aix filesystem owned by userA in groupA on... (2 Replies)
Discussion started by: fwellers
2 Replies

6. UNIX for Advanced & Expert Users

Issue with File Permissions

one of the business users is ftping files into unix box using user name ftp_user, where as i am using infa_user to login into same unix box. When i am trying to access those or copy over those files from upload directory it says permission denied. Though i know the password of... (4 Replies)
Discussion started by: Ariean
4 Replies

7. Solaris

Issue With File Permissions while uploading

one of the business users is ftping files into unix box using user name ftp_user, where as i am using infa_user to login into same unix box. When i am trying to access those or copy over those files from upload directory it says permission denied. Though i know the password of ftp_user to... (4 Replies)
Discussion started by: Ariean
4 Replies

8. UNIX for Dummies Questions & Answers

Issue with file permissions when using mailx

Hiya... I've got a script on AIX 4.2 that sends an email, with an attachment, that has always worked happily in the past and has chosen today to stop working. It now throws up an error "/tmp/Rs13492: The file access permissions do not allow the specified action" The /tmp/RsXXXXX file name... (2 Replies)
Discussion started by: phaedrus
2 Replies

9. Linux

permissions issue

We are trying to run a program on a Red Hat ES3 machine that works fine under root user but not as any other user. I believe its getting denied access to the USB ports (which this program needs), Does anyone know how i can open up access to the USB ports on a machine to all users. Thanks, Frank (0 Replies)
Discussion started by: frankkahle
0 Replies

10. HP-UX

File permissions issue

Hi, We have a apps database running on HP-UX 11.11. Yesterday, we had a problem with the server which was resolved after rebooting the server. Now the problem I am facing is that now the files created by application manager user has weird file permissions. Like instead of rw-r-r it is... (1 Reply)
Discussion started by: isingh786
1 Replies
Login or Register to Ask a Question