Solved

Creating a user account

Posted on 2014-10-08
6
170 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
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 
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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

If, like me, you have a lot of Dell servers in the estate you manage this article should save you a little time. When attempting to login to iDrac on any server I would be presented with two errors. The first reads "Do you want to run this applicati…
Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime is disastrous for companies and can lead to major hits on a brand, reputation, an…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

730 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