Solved

Add user to solaris and give ownership to folder

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Log File Creation with Header and Footer 17 59
Exchange 2010 unable to mount DB due to corruption 11 69
Coding C# in Linux 8 24
Linux VM 6 44
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Fine Tune your automatic Updates for Ubuntu / Debian
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to recover a database from a user managed backup

910 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

22 Experts available now in Live!

Get 1:1 Help Now