The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to create a user in HP-UX Harikrishna HP-UX 3 02-08-2008 06:31 AM
create user magasem HP-UX 2 10-09-2006 05:50 PM
I create user but i cant login the user i created. jerome UNIX for Dummies Questions & Answers 5 06-09-2006 02:08 PM
Other than root user .Normal user is unable to create files mallesh UNIX for Advanced & Expert Users 1 06-22-2005 09:18 AM
Need to create a user... New_Guru UNIX Desktop for Dummies Questions & Answers 5 06-13-2005 08:36 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-27-2008
Registered User
 

Join Date: May 2008
Posts: 16
how to create an user

hi
can anyone help me out to create an user to access specific folder only.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-27-2008
Registered User
 

Join Date: Feb 2008
Posts: 1
Quote:
Originally Posted by aemunathan View Post
hi
can anyone help me out to create an user to access specific folder only.
for creating user account try this command\

# useradd -u 102 -g 101 -d /home/user1 -m -s /bin/sh -c "Test User" user1
Reply With Quote
  #3 (permalink)  
Old 05-27-2008
Registered User
 

Join Date: May 2008
Posts: 16
hi i tried and created in the mean time ..can u explain fields u mentioned after the useradd.../bin/bash i used but dont know what for it is...
Reply With Quote
  #4 (permalink)  
Old 05-27-2008
Registered User
 

Join Date: May 2008
Posts: 49
dude...........

#useradd -u <uid> -g <gid> -G <GID/G.NAME> -c <comment> -d </export/home/user1> -m -s </bin/sh> user1

u --> uid --> user identification
g --> gid --> group " " (primary group)
G --> GID --> " " (secondary ") no need to give this GID
c -- --- ---> comment(if u give ur name also) no need to give this c
d --> directory
m --> making home dir for user
s --> shell.no need to give this shell it will take by default.

ok..
Reply With Quote
  #5 (permalink)  
Old 05-27-2008
Registered User
 

Join Date: Aug 2007
Posts: 44
Also there is option to use SMC to add users via GUI.
Reply With Quote
  #6 (permalink)  
Old 05-28-2008
Registered User
 

Join Date: May 2007
Posts: 26
For GUI support, type admintool on command prompt but Solaris 10 doesnot support admintool command.
Reply With Quote
Google UNIX.COM
Reply

Tags
solaris

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0