LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-07-2007, 06:36 AM   #1
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 36
Difference in default path creating user with SMC and with useradd


Hi guys.

Experimenting with Solaris 10 (11/06) I noticed a strange behaviour. If I create an user with useradd (skel dir: /etc/skel, shell: bash) the user PATH contains the directory /usr/openwin/bin and no .profile file is copied in user's home (some local.{login, profile, etc} files are copied from skel, in fact). If I create the same user with smc, a .profile and a .cshrc file is copied into user's home which sets his PATH to a very basic one (should be /usr/bin:/usr/ucb:.). What caught my attention is that /usr/openwin/bin in user PATH is required by some JDS components (such as xscreensaver) to work properly.

Is this smc behaviour by design?
Thanx,
Enrico.
 
Old 05-08-2007, 04:24 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
Like smc, useradd copies the skeleton files if you ask for by using the "-m" option.

In my opinion, the way the PATH is set in the default /etc/skel files is broken anyway. It shouldn't set/overwrite the default path as this is already done in /etc/default/login file. Adding /usr/ucb to the PATH is dubious too.

You can also use webmin to create accounts, and an OpenSolaris project (http://www.opensolaris.org/os/project/vpanels/) plan to provide a better administration interface.
 
Old 05-08-2007, 04:27 AM   #3
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
thank you very much jlliagre. I'll try that tool.

Bye,
Enrico.
 
Old 05-08-2007, 07:32 AM   #4
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
Beware that vpanels is currently a work in progress so it may not be able to create user accounts yet. On the other hand, webmin is established since a while in the Open Source world, so it may be a better option.

You need to run once /usr/sfw/bin/webminsetup before using webmin on Solaris.

Last edited by jlliagre; 05-08-2007 at 07:34 AM.
 
  


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
Creating New User with Default Theme stychman Linux - Newbie 1 07-30-2006 11:13 PM
Useradd - Cannot locate /etc/default/useradd in Solaris Paean Solaris / OpenSolaris 4 12-09-2005 01:36 AM
How to set default Desktop environment while creating user accounts?? mayank_a Linux - Software 5 10-05-2005 06:26 AM
useradd:'invalid user name' error when creating a machine account on RedHat Linux ES4 santosh0805 Linux - General 1 07-12-2005 08:39 AM
useradd with default values ?! realos Linux - Newbie 1 08-09-2002 07:38 AM

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

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