Permission inherited by users


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Permission inherited by users
# 1  
Old 08-03-2012
Permission inherited by users

Hi Felas

I am running Fedora and have this issue on my system:

I have the following users:

jane:x:552:100::/usr1/users/jane:/bin/bash
jules:x:553:100::/usr1/users/jules:/bin/bash

I have the following group which all users belong to:

lab:x:100:root,jules,jane

I have the following folder with appropriate permissions:
xrf/jobs/t000

drwxrwxrwx 3 jane lab 4096 2012-06-26 10:40 xrf
drwxrwxrwx 39 jane lab 4096 2012-08-01 16:05 jobs
drwxrwxr-x 3 jane lab 36864 2012-08-03 15:46 t000

When a user jane creates a file in t000 for example 00001.
this file automatically gets the following permissions:

-rwxr-xr-x 1 jane lab 1060 2012-08-03 15:46 00001

User jules cannot write or access this 00001 file. That is my problem.
How can user jules also automatically access this file without changing
permissions manually each time a file is created?

Regards
# 2  
Old 08-03-2012
in the login directory for each user: jules, jane

1. Create a .profile file, owned by that user, if one does not exist
2. Put (or add this):
Code:
umask 002

Unless a umask setting occurs elsewhere, or an application specifcally calls open() this will work. open() will create files with a locally defined umask.
# 3  
Old 08-03-2012
u mask wont work, I have

umask 002 t000 but nothing


Can you explain what I should do on the user profiles . profile
clearly?

thanks
# 4  
Old 08-03-2012
First off, what shell are they using? It might not be ~/.profile depending on what shell it is.

As for what to do to the profile file? Simply add the line umask 002

You can test whether the umask got set properly by touch /tmp/filename and seeing if it ended up with the right permissions
# 5  
Old 08-05-2012
Seeing that both jane and jules are in the same group;

Code:
chmod g+s <dir name>

setting the sticky bit, aka, groupid, for the directory.
This forces the subdirectories and files to inherit the group perms of the parent directory, which you set accordingly.

Adding another layer, you could implement ACL's (Access Control Lists)

http://www.udel.edu/topics/os/unix/g...upsharing.html

The above link has good info in it.

My google search was "chmod g+s directory". Lots of hits.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Trying to Parse An Inherited Command/Routine

I am am one of these people that it isn't good enough just to say, "Here, try this...". it is important for me to understand how and why something works (or doesn't work.) All that being said, I am trying to parse out a command that we use that was handed down to me by someone I can no longer... (3 Replies)
Discussion started by: he204035
3 Replies

2. Shell Programming and Scripting

Create multiple users with individual passwords to users

hi, i am new to shell scripts i write a shell script to create multiple users but i need to give passwords to that users while creating users, command to write this script (1 Reply)
Discussion started by: DONFOX
1 Replies

3. Red Hat

Showing all users in 'users' and 'top' commands

Hi All, I work in a multi user environment where my school uses Red Hat Linux server. When I issue commands such as "top" or "users", I get to see what others are doing and what kinds of applications they are running (even ps -aux will give such information). "users" will let me know who else is... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies

4. AIX

Inherited VIO server an LPARs

Lucky me, someone has installed a server and got it running with the best intentions, but leaving me a headache. :wall: We have a simple p520 with 4 disks. 2x145Gb & 2x300Gb. The smaller disk pair have been built into a VIO mirrored rootvg, and quite right too. The other two disks form a... (3 Replies)
Discussion started by: rbatte1
3 Replies

5. Solaris

To restrict the users not to change the passwords for NIS users

Hi All, How to restrict the NIS users not to change their passwords in for NIS users?? and my NIS user is unable to login to at client location what could be the problem for this ? Any body can help me. Thanks in advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies

6. UNIX for Advanced & Expert Users

about the access permission of users home directory

RHEL5.0 As we know, when root create a new user, a new home directory will be created : /home/user I want to know what determine the access permission of /home/user . Thanks! (1 Reply)
Discussion started by: cqlouis
1 Replies

7. HP-UX

Telnet permission for other then root users in HP-UNIX

Hi please tell me any one how to give telnet permission for other then root users in HP-UNIX :confused: (4 Replies)
Discussion started by: sreedhargouda
4 Replies

8. Cybersecurity

file permission/acl: 2 users with write access on 1 file...

Hello, i need some help/advice on how to solve a particular problem. these are the users: |name | group | ---------- --------------- |boss | department1 | |assistant | department1 | |employee | department1 | |spy | department2 | this is the... (0 Replies)
Discussion started by: elzalem
0 Replies

9. Shell Programming and Scripting

Trying to manage an inherited Ksh script

Hi I am trying to get to know a script I have inherited. The original author is no longer available. Does anyone know if there is a utility to parse a ksh script and generate a report/output which details all the defined functions and their arguments? Maybe even provide a 'call trace' of how the... (1 Reply)
Discussion started by: ajcannon
1 Replies

10. SCO

Inherited server - need help

I have inherited admin duties on an old server running SCO Open Server 5. No changes have been made to this thing for a very long time. The server has started randomly disconnecting itself from the network. I have to reboot the server to get it to find the network again. It happens about once a... (3 Replies)
Discussion started by: jmickens
3 Replies
Login or Register to Ask a Question