LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-11-2010, 08:35 AM   #1
LinuxLover
Member
 
Registered: Feb 2004
Distribution: Centos 7 x86_64 , Rocky Linux 8 (aarch64)
Posts: 196

Rep: Reputation: 32
How to change default shell for All new user on solaris


Hi,

In linux we can change the default shell for new users by

#useradd -D -s /bin/bash


How can I change default shell for all new users (which will be create later on) on solaris.
 
Old 02-11-2010, 09:22 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
You do it exactly the same way with OpenSolaris based distributions.

Previous releases are missing this specific "-s" sub-option but a simple workaround is to directly edit the /usr/sadm/defadduser file. It has to be create with some other "useradd -D" command.
 
1 members found this post helpful.
  


Reply



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
Create user add file with default password and force user to change it? Morgandy Linux - Newbie 3 02-02-2010 05:06 PM
How to change the default shell in Linux apdas Linux - Newbie 2 11-11-2009 11:11 AM
Solaris 9 how to change ip address and default gateway rust8y Solaris / OpenSolaris 6 10-15-2007 05:44 PM
How to change default shells in solaris 10 and other misc. questions amlucent23 Solaris / OpenSolaris 3 07-21-2006 10:45 AM
How to change the default shell to bash? shadkong Slackware 12 04-23-2005 03:49 PM

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

All times are GMT -5. The time now is 11:12 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