Visit Our UNIX and Linux User Community


Text based user creation


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Text based user creation
# 1  
Old 07-17-2001
Data Text based user creation

Smilie How do you create new users on solaris 2.5 (5.7) without being on the console? with AIX I used SMIT - is there a text based user creation tool? Can't find one....
# 2  
Old 07-17-2001
do a man on useradd...syntax is useradd -u -g -d -s -c -m...

u=uid
g=gid
d=home dir
s=shell
c=comment
m=login

eg...

useradd -u (uid)1060 -g (gid)1 -d (home dir) /export/home/testuser -s (shell)/bin/ksh -c(comment)TESTUSER -m (login)testuser

hope this helps...make sure of the blank spaces...-c doesn't have one

tail the /etc/passwd to check the next uid and /etc/group for the group...
# 3  
Old 07-17-2001
Well thats fine and dandy, but still doesn't answer my question.
Looking for a text based creation tool for Solaris.

AIX (IBM Unix) uses smit.

adduser doesn't do passwords, you have to know about the shadow file, and an existing password to be able to login, otherwise if you have PASSREQ=YES in the profile, it doesn't work.

Works great for moveing user to different groups and user addministration as long as you remember everything.

Just want a simple text based interface to create users and such
# 4  
Old 07-17-2001
I don't know about any text based tool but when you add user as root you can very easily change that users password as root...

passwd username...then login...after that the user can change the passwd again...hope this helps...sorry if I didn't answer your question completely
# 5  
Old 07-17-2001

is your O.S 2.5 or 5.7 ??

if your o.s is 5.7 which is Solaris 2.7 (sort of), you can
try "admintool" .

(i.e.
$su -
$admintool
this will bring you a GUI base tool to add user, printer...)

Hope this help



Smilie
# 6  
Old 07-18-2001
Well the admintool is good for the GUI section, I was looking for something like SMIT for solaris.

Smit is a Text based admin tool in the AIX world.
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #112
Difficulty: Easy
macOS was not the largest Unix largest installed base in 2017.
True or False?

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bourne returning files based on creation date

I'm wanting to write a bourne shell script that takes in two command line arguments - a directory and a file. With this I want to return a list of files within the directory that are older (based on creation date) than the given file, and print the number of files that have not been listed (they... (4 Replies)
Discussion started by: britty4
4 Replies

2. UNIX for Dummies Questions & Answers

Deletion of list of user based on a text file In LDAP UNIX server

Dear All, It would be really nice, if you could help me to write a script for deletion of list of user( more than 15000 users) stored in a file and sorted by email address( i need deletion of only a particular type of mail address). Is the any script to write and take the file as input and... (3 Replies)
Discussion started by: Chand
3 Replies

3. Shell Programming and Scripting

Moving files based on file creation

Hi, I have a directory having so many number of files. Now I want to move the files which are older than one month (lets say) from this directory to another directory (say BKP dir). Simply, if file is olderthan one month move it from source1 dir to BKP1 dir. My file names doesn't have... (7 Replies)
Discussion started by: karumudi7
7 Replies

4. Shell Programming and Scripting

Move files from one directory to another based on creation/modification date

Hi All, Really stuck up with a requirement where I need to move a file (Lets say date_Employee.txt--the date will have different date values like 20120612/20120613 etc) from one directory to another based on creation/modification dates. While visiting couple of posts, i could see we can... (3 Replies)
Discussion started by: dsfreddie
3 Replies

5. Shell Programming and Scripting

Dynamic case creation based on output list from a command

I am attempting to create a script that would allow me to list all the instances associated with a DB2 and then prompt the user to choose which one to issue the db2profile command against. I use the db2 command db2ilist to get a list of the instances for a particular server, but the number of... (7 Replies)
Discussion started by: slatoms
7 Replies

6. Red Hat

Dynamic case creation based on output list from a command

I am attempting to create a script that would allow me to list all the instances associated with a DB2 and then prompt the user to choose which one to issue the db2profile command against. I use the db2 command db2ilist to get a list of the instances for a particular server, but the number of... (1 Reply)
Discussion started by: slatoms
1 Replies

7. Shell Programming and Scripting

copy files based on creation timestamp

Dear friends.. I have the below listing of files under a directory in unix -rw-r--r-- 1 abc abc 263349631 Jun 1 11:18 CDLD_20110603032055.xml -rw-r--r-- 1 abc abc 267918241 Jun 1 11:21 CDLD_20110603032104.xml -rw-r--r-- 1 abc abc 257672513 Jun 3 10:41... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

8. Shell Programming and Scripting

Move files based on year of creation

Hi All, I have a directory which has crores of files since from 2003 till now. I want to move only the 2003 files to another directory. Please help. Thanks (2 Replies)
Discussion started by: IHK
2 Replies

9. UNIX for Dummies Questions & Answers

Moving files based on creation date

Howdy, I'm trying to figure out how to move multiple files based on their creation date. If anyone can enlighten me it would be most appreciated!! Thanks! :D (1 Reply)
Discussion started by: dgoyea
1 Replies

Featured Tech Videos