LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 09-06-2006, 10:51 AM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
Question adduser in Solaris


When I first got Solaris installed and got to GDM or whatever login manager it uses, I didn't remember creating a username and password, so I thought I would have to reboot into Solaris with single user mode from grub. Then I logged in as root. I tried running adduser from xterm. command not found. I need a normal user, so that I am not always running as root. That's dangerous. How can I create a normal user account?
 
Old 09-06-2006, 11:13 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
The Solaris command is useradd.
Code:
useradd -g group -c "firstname lastname" -d /export/home/username -s /bin/ksh username
mkdir -p /export/home/username
chown username /export/home/username
 
Old 10-03-2006, 08:17 AM   #3
Flame2k
LQ Newbie
 
Registered: May 2004
Distribution: Gentoo, Gentoox (xbox), Windows XP pro, Solaris 9
Posts: 8

Rep: Reputation: 0
or just

useradd -g group -c "firstname lastname" -d /export/home/username -m -s /bin/ksh username

-m switch baby.
 
Old 10-04-2006, 07:50 AM   #4
mackdav
Member
 
Registered: Feb 2005
Distribution: RHEL, CentOS
Posts: 113

Rep: Reputation: 16
Former Linux junkies will probably be happier with /bin/bash as their shell instead of /bin/ksh.
 
Old 10-04-2006, 02:34 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by Flame2k
-m switch baby.
Indeed, thanks
 
Old 06-10-2007, 04:54 AM   #6
angrykeyboarder
LQ Newbie
 
Registered: Oct 2004
Location: Phoenix, Arizona, U.S.A.
Distribution: Mostly (K)Ubuntu. But also Fedora, Debian, Mandriva & some other *nix's - e.g. Solaris and FreeBSD/
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by Flame2k

...-m switch baby.
OK, yes.. my response is 8 months old.. But I landed here due to a Google search on the subject.

I got what I was looking for, but now I have another question....

What do you mean by "-m switch baby"?

Curiously,
 
Old 06-10-2007, 05:06 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I understood it as:
"Instead of running mkdir, you'd rather use useradd '-m' switch, baby !"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
great solaris website for newbies http://solaris-x86.org/ feetyouwell Solaris / OpenSolaris 2 12-06-2006 12:14 AM
adduser bally Linux - General 7 08-09-2004 01:28 PM
adduser trophy Linux - General 1 05-01-2004 07:35 AM
adduser teqno Linux - Newbie 5 12-08-2003 12:26 PM
need to adduser(s) b_usa Linux - General 3 04-04-2003 07:40 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration