Solved

Creating a user account

Posted on 2014-10-08
6
167 Views
Last Modified: 2014-10-27
I need to create an user account in solaris 10 that has permission to read, write and execute just for 3 different directories.

Example:

IP:10.123.45.90
Directories: /street/house/bedroom
                   /street/house/kitchen
                    /street/house/restroom

Those 3 directories belongs to another user (person1)

It's very import that the user could access just those 3 directories.


ls -la of /street/house/bedroom

drwxrwxr-x   2 person1      dpgrpa      1024 Oct  2 15:14 .
drwxrwxr-x   7 person1      dpgrpa      1024 Aug 28  2013 ..

ls -la of /street/house/kitchen

drwxrwxr-x   2 person1      dpgrpa      1024 Oct  2 15:14 .
drwxrwxr-x   7 person1      dpgrpa      1024 Sep 13  2013 ..

ls -la of  /street/house/restroom

drwxrwxr-x   2 person1      dpgrpa        96 Oct  2 15:15 .
drwxrwxr-x   7 person1      dpgrpa      1024 Sep 24 15:33 ..
0
Comment
Question by:joaotelles
  • 3
  • 2
6 Comments
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 500 total points
ID: 40369056
You create the user say user2 and add to group dpgrpa which has full perms as you want

OR

you could create new group say g1, then add user to it and change group for the 3 dirs with chgrp command
0
 

Author Comment

by:joaotelles
ID: 40369086
The first option will still give permission for this user to r,w,e in other directories right?

The second option, I still want to have the permissions in the directory for the users/group that I had before... So if I change the group of these dirs to the one I crate.. the user form the group dpgrpa will still be able to r,w this dir?
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
ID: 40369119
you may add all users of group dpgrpa to the new group g1

OR

you can use acl on solaris to provide required perms. please see link below for examples

http://softpanorama.org/Solaris/ACL/index.shtml
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 8

Expert Comment

by:Pepe2323
ID: 40369737
The second account u need to create must be part of the group dpgrpa    

check /etc/groups and look for that group

u will see something like this

dbgrpa:x:101: -------- > add the account u need to create

dbgrpa:x:101:user2 --- Example

Regards.
0
 

Author Closing Comment

by:joaotelles
ID: 40407548
tks
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 40407705
Welcome
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Group Policy Object - Mapping DrivesI'v 5 53
mobaxterm not able to change directory 28 145
server plus 2 94
Log File Creation with Header and Footer 17 93
I wrote an article (http://www.experts-exchange.com/articles/2245/Anti-rootkit-software.html) some time ago with a reference to nLite  (http://www.nliteos.com/)slipstreaming software.  I recently changed that link to point to NTLite (https://www.ntl…
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question