Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Unix Specific directory Access

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic