Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unix Specific directory Access

 
Srinivas Palam
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Srinivas Palam
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic