Trying to create a bash script that will read the /etc/passwd file for existing UID's before adding a new user and also does an incremental by allocating the next available UID.And also add the user to the correct group.Please help I am a newbie in scripting. (2 Replies)
I want to creat a 27 logins in solaris.Can anyone tell me how to write a script for that so that i create at a time for all 27 people.
Thanks to guide me. (6 Replies)
We have netgroup in ldap in Sun java directory server, how can I add or remove a user to/from a netgroup via command line without using ldif file? I need to put this into a script.
Here is a sample netgroup, and I want to add user tonyz to it:
# ldapsearch -h ldapserver.com -p 389 -b ... (1 Reply)
i'm new to scripting in unix and am trying to make a script to add a user and an encrypted password for them. this is what i have and it isn't giving me any errors, but when i try to login with the new user, the password doesn't work. i'm hoping someone can point me in the right direction
... (1 Reply)
Ok Im trying too make this shell script create users from my text file, I also want to type in a password for the new users. So thay can make a uniq one themself after first logon.
#!/bin/sh
# Sebastian schmidt
clear
echo "*************************************************************"... (3 Replies)
Here's my box info:
ROOT@fcivra: uname -a
SunOS fcivra 5.6 Generic_105181-26 sun4m sparc SUNW,SPARCstation-5
I am creating a script called adduser, that will incorporate the useradd command. Here is what it looks like:
#!/bin/sh
echo "Enter the person's VZID (lower case): \c"
read VZID... (2 Replies)