09-24-2013
Quote:
Originally Posted by
jennie28n
re: NIS
What is this?
For me, the first Google result is relevant.
Are you going to modify a user's account on all 50 machines if that user needs their password changed? Or if a user needs to be disabled? Or if a user needs to be added or deleted from a group? Or if ....
If you share with us the big picture of what's going on, someone might be able to give you well-informed advice.
Regards,
Alister
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have 85 Unix servers & I need to add single user ID on multiple servers at same time
Can anyone help in this?
I have written one script for single servers.same I need to user for multiple servers
#!/bin/sh
echo Enter user login ID
read loginID
echo Enter Group ID
read GroupID
... (6 Replies)
Discussion started by: sandeep_pan
6 Replies
2. Shell Programming and Scripting
Hi all, working on script to create a user acct on all our servers.
for i in `cat $host_file`; do
ssh $i /usr/bin/sudo /usr/bin/mkuser id='bpadm' gecos='NetBackup Admin' 2>&1 >> $log
done
error i get is: 3004-692 Error changing "id" to "bpadm" : Value is invalid.
I have tried this in... (1 Reply)
Discussion started by: dnidiffer
1 Replies
3. UNIX for Advanced & Expert Users
Hi,
When most of the server applications get installed, they create their own user. I believe this is to not use the "root" account. For example, Apache when installed creates a user called "apache". And the directories which it uses are all owned by this user. This seems to be the... (2 Replies)
Discussion started by: srikanths
2 Replies
4. Solaris
HI,
1.I want to add multiple users at a same time. How to achive this , since useradd will add only one user at a time,.
2.Also let me know how to install a software in a group of machines where the machines are not configured as zones (1 Reply)
Discussion started by: rogerben
1 Replies
5. Shell Programming and Scripting
Anyone has a script or something that can do this? I have a list of about 500 users and I need to add them to an AIX box. The profiles should have "Full Name" and "User Name". (2 Replies)
Discussion started by: bbbngowc
2 Replies
6. Shell Programming and Scripting
Hi
I have one file placed at one server whose sample as follows:
57272 28
56767 0
57575 4
58888 6
53030 26
54242 0
56060 0
And another file at different server whose sample data as follows:
57272 22
56767 0
57575 1
58888 2
53030 13 (9 Replies)
Discussion started by: poweroflinux
9 Replies
7. Shell Programming and Scripting
I wants to create 3 users and set password for the users in 400 servers. I can run this script without error. If wants to set the password in the same command it is not working. Like that i have to create 3 users
#!/usr/bin/ksh
for server in `cat /tmp/servers`
do
echo "servername =... (5 Replies)
Discussion started by: G0kulakrishnan
5 Replies
8. AIX
Hi experts,
I am an AIX/Unix admin in my company. I have been asked by one user to distribute .profile from one server to all other servers in the network. This is what she has asked me:
"Is there a way for me to save and use one .profile that I have personalized with aliases for all my... (4 Replies)
Discussion started by: uzair_rock
4 Replies
9. Shell Programming and Scripting
Hi Experts,
I am new to scripting. We have around 400 Linux servers in our environment. I want to add a new user to a perticular group on all the servers using SSH.
Requirements:
1) Need to take the server names from a text file.
2) Login into each server and check whether perticular... (1 Reply)
Discussion started by: Satya1983
1 Replies
10. Shell Programming and Scripting
Hi Team,
Hope you are doing good.I am new to scripting.I have a requirement of deleting around 10 users in 100 servers.It is very time consuming by logging into each servers and delete the user.Here I have redhat 6 ,Suse linux 10&11 environment servers.
In one set of servers I have... (5 Replies)
Discussion started by: muraliinfy04
5 Replies
LEARN ABOUT HPUX
groupdel
groupdel(1M) groupdel(1M)
NAME
groupdel - delete a group from the system
SYNOPSIS
group
DESCRIPTION
The command deletes a group from the system by removing the appropriate entry from the file.
The command must be used with the group argument which is the name of the group to be deleted. The name consists of a string of printable
characters that may not include a colon or newline
Refer to usergroupname(5) to understand the functionality changes with the Numeric User Group Name feature.
Options
The command uses the following option:
Exercise the safe delete feature. That is, if the gid of the
primary group of any system user matches the gid of group, then group is not deleted.
NIS
The command is aware of NIS user entries. Only local groups may be deleted with Attempts to delete an NIS group will result in an error.
NIS groups must be administered from the NIS server. If is used on a system where NIS is installed, it may fail with the error
(return value 6), if the group specified is an NIS group (see group(4)).
RETURN VALUE
exits with one of the following values:
No error.
Invalid command syntax.
Invalid argument supplied to an option.
group
does not exist.
Cannot modify the
file.
file or
file busy. Another command may be modifying the file.
Unable to open
or file is non-existent.
group
is busy or cannot delete the primary group.
EXAMPLES
Delete the group from the file if it exists:
WARNINGS
Because many users may try to write the file simultaneously, a password locking mechanism was devised. If this locking fails after subse-
quent retrying, terminates.
FILES
SEE ALSO
users(1), groupadd(1M), groupmod(1M), logins(1M), useradd(1M), userdel(1M), usermod(1M), group(4), usergroupname(5).
STANDARDS CONFORMANCE
groupdel(1M)