Solved

Add user to solaris and give ownership to folder

Posted on 2013-11-04
3
676 Views
Last Modified: 2013-11-04
I need to add user to server A(remote site) and give ownership of TIMBER under /app to appdisc:dba

This user dows not exist in production at HQ, but the Oracle Discovery Software which resides on a dev/test at HQ is used production reporting


And what does this line mean? Does it go somewhere?
appdisc:x:1005:1001:Oracle Discover Software Owner:/app/TIMBER:bin/ksh
0
Comment
Question by:Indyrb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

Expert Comment

by:johnsone
ID: 39622526
This line:

appdisc:x:1005:1001:Oracle Discover Software Owner:/app/TIMBER:bin/ksh

is a line from the /etc/passwd file.  I would highly recommend using the useradd utility to create a new user and not edit the files directly.  One missed field and nobody can log into the system at all.

Doc for useradd in Solaris should be here -> http://docs.oracle.com/cd/E23824_01/html/821-1462/useradd-1m.html
0
 

Author Comment

by:Indyrb
ID: 39622589
if using the useradd command -- what would the who syntax be to complete the first post?
0
 
LVL 35

Accepted Solution

by:
johnsone earned 500 total points
ID: 39622649
All the information is in the man page.  Not sure why you cannot figure it out yourself.  This is my guess:

useradd -d /app/TIMBER -g dba -s /bin/ksh -u 1005 -c "Oracle Discover Software Owner"
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RHEL7 - Error installing docker compose 2 219
Granting root permissions to a user (in Debian Jessie) 17 86
replicate in oracle 13 45
Oracle Date add 9 35
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
Suggested Courses

752 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