Solved

Solaris /etc/passwd file and admintool

Posted on 1997-06-12
4
2,555 Views
Last Modified: 2013-12-21
edit /etc/passwd to add a user then using pwconv to update /etc/shadow works fine, except when I use the GUI admintool it doesn't seem to look at either for the UID field number and picks up only the last number used by the GUI tool and not the last one in /etc/passwd or /etc/shadow - does admintool look somewhere else for these if so where ??
0
Comment
Question by:coryg
4 Comments
 
LVL 1

Expert Comment

by:henrys
ID: 2006398
I assume you are NOT using NIS+ (?)
If I manually add a user (either by a straight edit of /etc/passwd followed by pwconv or using /usr/ucb/vipw), the admintool sees the correct UID. If I add a user with admintool, the UID field is always blank.
What Solaris/Admintool versions are you using?
0
 

Author Comment

by:coryg
ID: 2006399
OK:

Firstly ( No I do not use  nor intend to use NIS+ )

Secondly

Use admintool to create Users - The UID field is automatically update to get the next UID number automatically. Now use vi to edit /etc/passwd - Add a user ID remembering to change the UID field to get the next UID number. Save /etc/passwd - use pwconv to update /etc/shadow - the user is now added all works hunky dory - Now use admintool again to create a user - It doesn't get the right UID number - its only got the next one along from the last one added by admintool - I have to manually check /etc/passwd for the right UID and put that one in. Now save that user added by admintool and create another - the same thing happens !!
Where is admintool looking for the UID number !!!!!!!!
The version of admintool is the standard one shipped with 2.5.1 Solaris.
0
 
LVL 2

Accepted Solution

by:
red031197 earned 100 total points
ID: 2006400
its incremented and hard set in an admintool conf file
0
 
LVL 3

Expert Comment

by:rickyr
ID: 2006401
Admintool will do all the boring /etc/passwd and /etc/shadow stuff for ya. thats what admintool is for. Who needs vi to add a user? it creates the home dirs and everything....
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

803 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