Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Add user to solaris and give ownership to folder

Posted on 2013-11-04
3
Medium Priority
?
688 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
  • 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
 
LVL 5

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 2000 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month10 days, 11 hours left to enroll

885 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