Forums Register Login

Unix Specific directory Access

+Pie Number of slices to send: Send
Hi Everyone,

I have 3 directories on unix server. I want to give user's write permission to two directories only. How do I do that?
1. Can some explain with example?
2. Are the users has to part of unix group(plprod)?

Example:
Unix Server Name: prime
Unix Group: plprod

Directory Structure:
drwxrwx--- abc plprod /export/appl/plprod/Data1 <-- I want to give write access to this directory

drwxrwxr-x abc plprod /export/appl/plprod/source/Data2 <-- I want to give write access to this directory

drwxrwxr-x abc plprod /export/appl/plprod/Data3 <-- leave as is

Thanks
Srinivas


+Pie Number of slices to send: Send
Who owns these files? Who is the owner and what is the group? If plprod is the group, then everyone in that group already has write privileges. You can remove the write privileges for the last directory by running:

chmod g-w /export/appl/plprod/Data3

If plprod is not the group, I would make plprod the group first.
+Pie Number of slices to send: Send
These directories are owned by abc id and group is plprod. If the new user is part of plprod group he will get access to all the files and directories under plprod group, but I want the new users to have access to below directories only. How do I restrict the access?


drwxrwx--- abc plprod /export/appl/plprod/Data1 <-- I want to give write access to this directory

drwxrwxr-x abc plprod /export/appl/plprod/source/Data2 <-- I want to give write access to this directory

No more fooling around. Read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 964 times.
Similar Threads
path classpath issue after installing Java on Mandrake10
log4j and file permissions
Expanded/exploded war permissions
UNIXhow to ensure files created in a directory automatically has group "w" permission
problem protecting resources with basic authentication
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:59:57.