Solved

Add user to solaris and give ownership to folder

Posted on 2013-11-04
3
665 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 34

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 34

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now