Shared directory permissions


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Shared directory permissions
# 1  
Old 05-29-2010
Shared directory permissions

I use User private groups, and have setup a new group 'team' and member users, and a shared directory owned by that group with permissions as follows:

drwxrwsr-x 2 holocene team 4096 2010-05-29 14:45 holoceneshardir

My objective is collaboration among group 'team' members.

shouldn't the indicated permissions mean that all members of group 'team' should be able to read/write/delete every file in this directory? Especially each other's files?

Everything seems in order, except that group 'team' members can not change the files created by other members.

What am I doing wrong?


Thanks in advance
steve.
# 2  
Old 05-29-2010
What is the permission on the file ?

Even tho the directory permission accepts deletion within the group, the permission on the file itself might not.
# 3  
Old 05-29-2010
Quote:
Originally Posted by redhead
What is the permission on the file ?

Even tho the directory permission accepts deletion within the group, the permission on the file itself might not.
Here are the files that each group 'team' member created.

-rw-r--r-- 1 holocene team 15 2010-05-29 14:58 myfile.h
-rw-r--r-- 1 libraryu team 0 2010-05-29 14:55 myfile.l

I think you might be saying that each user must change his file's permission to allow group rw?

EDIT: Verified that changing permissions to group rw fix the problem. I just wish a separate step to chmod the files upon creation would not be required.

Thanks for fast reply.
Steve.

Last edited by holocene; 05-29-2010 at 05:25 PM.. Reason: added result of change.
# 4  
Old 05-29-2010
They only hold read permission for the group, it's only the ovner who has write permission, which is required in order to delete a file.

Either the user needs to additionaly set group +w, or you will have to enforce this permission on the sructure through your mount settings.
The later part is only acceptable if the location where these files will be created are as a seperate partition, thus enforcing specific permission on the entire partition.

[edit]
If this has something todo with several users interacting on a common project, why not run it through CVS or subversion ?
This User Gave Thanks to redhead For This Post:
# 5  
Old 05-30-2010
Quote:
Originally Posted by holocene
I just wish a separate step to chmod the files upon creation would not be required.
Depending on the environment you're building, resetting those user's umask might prove helpful (or disastrous, as this approach is by no means folder-specific).

But why don't you implement a script to check and update the permissions of all files and folders in question at regular intervals by means of a root cron job ...?
This User Gave Thanks to dr.house For This Post:
# 6  
Old 05-30-2010
Quote:
Originally Posted by dr.house
Depending on the environment you're building, resetting those user's umask might prove helpful (or disastrous, as this approach is by no means folder-specific).

But why don't you implement a script to check and update the permissions of all files and folders in question at regular intervals by means of a root cron job ...?
Dr. House,

I like the idea of a cron job. One that was driven by a config file so that a list of directories could be specified that need the action. The action being that all files therein to be chmod'ed to allow group rw.

Thanks for the help.
Steve.

ps: House, great show!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Directory permissions

i have an application that writes to a directory. let's call the directory: /var/app/ the permissions of this directory is: drwxrwxr-x Now the files that the application creates in this directory usually dont have read permissions for others. i know there's something called... (3 Replies)
Discussion started by: SkySmart
3 Replies

2. Solaris

Directory Permissions for 2 users on 1 directory

we want to allow user to FTP files into a directory, and then the program (PLSQL) will read and process the file, and then move the file to other directory for archiving. the user id: uftp1, group: ftp the program run in oracle database, thus have the user Id: oraprod, group: dba how to... (2 Replies)
Discussion started by: siakhooi
2 Replies

3. UNIX for Dummies Questions & Answers

Files in a shared directory

At work, we have a shared directory where we modify files via ssh. This can be an issue if two people unknowingly try to open and modify the same file. Sure, one user could send a mass e-mail/IM to the group, letting everyone know when he/she is accessing a file, but I was wondering if there was a... (2 Replies)
Discussion started by: jl487
2 Replies

4. Shell Programming and Scripting

Checking directory permissions on UNIX directory

Hi, How do i check if I have read/write/execute rights on a UNIX directory? What I'm doing is checking read access on the files but i also want to check if user has rights on the direcory in whcih these files are present. if then...... And I check if the directory exists by using... (6 Replies)
Discussion started by: chetancrsp18
6 Replies

5. UNIX for Dummies Questions & Answers

Directory Permissions

Hi all. Only one of the following makes any kind of sense as a possible permission field for a UNIX file. Which one? --w------- ----rwxrwx -r-------- --rwx----- ----r----- I think it is no. 3. I dont think it would be 2, because why would you want to give groups and... (1 Reply)
Discussion started by: hawaiifiver
1 Replies

6. Solaris

shared directory

how can I make a shared directory between two UNIX servers??? (6 Replies)
Discussion started by: mm00123
6 Replies

7. Filesystems, Disks and Memory

Shared Home directory between Unix servers

Hi Im working in an environment where 2 production and 2 testing unix servers are used.. All these servers share the same home directory.. how is it done where would the home directory be located (0 Replies)
Discussion started by: raghav288
0 Replies

8. UNIX for Dummies Questions & Answers

copy file from UNIX to shared directory

Hi, I want to copy a file from unix machine to a shared windows directory. i tried using the ftp command but i was able to transfer the file only to my local directory. Is there any way we can transfer/copy the files from unix to windows shared directory.......... Please help. Thanks (5 Replies)
Discussion started by: sireesha15
5 Replies

9. UNIX for Dummies Questions & Answers

permissions of a directory

Read and write bits make sense for a directory but what about the execute permission bit What does that imply?Is it just a filler? Saurabh (3 Replies)
Discussion started by: smehra
3 Replies

10. Shell Programming and Scripting

determine owner directory permissions from within the directory

From within a directory, how do I determine whether I have write permission for it. test -w pwd ; echo ? This doesn't work as it returns false, even though I have write permission. (4 Replies)
Discussion started by: Sniper Pixie
4 Replies
Login or Register to Ask a Question