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)
does a command exist to add users to more than one group?
i think the usermod command can do this but i'm not really sure. past ways of me doing this has always been to just hack the /etc/group file and put the user in whatever group i need him to be in. however, vi..ing files like /etc/groups... (2 Replies)
Hi,
Can any one tell me is it possible to setup private key public key pairing(SSH ) for a group of users , instead of setting it up for individual users ?
Eg:
Say i have 3 users A,B and C and i want the users to connect to SERVER1. instead of generating public private keys for each user , is... (3 Replies)
Hi All,
Okay, I need help.
I need to ssh in to multiple linux servers execute certain commands and get them to email and print on the screen when the script is being executed.
So below is my script. Its not working :-(.
#!/bin/bash
#linux/UNIX box with ssh key based login... (7 Replies)
Requirement:
Run a shell script with below inputs
file name
checksum
path
the script should go to multiple servers (around 35) and verify the input cksum and if there is a mismatch display a simple message to the user that cksum verification failed.
host details, user id /... (1 Reply)
Hello,
I have access to several linux servers (mostly centos based) located in a DC in another country.
from day to day I need to login to each of them to do some work (they dont have gui/window manager installed, I work only from console), or even to just do a check like df -h for disc usage.... (3 Replies)
Hi Y'all,
I need help adding 30 users to 50 servers.
Is there a way to automate this?
I'm using this command:
sudo mkuser pgrp=srvadm gecos=Spears, Brittney auditclasses=ALL sugroups=system,security user01
But I'm doing it per user, per server...HOW CAN I MAKE THIS EASIER?... (7 Replies)
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)
Hi
I have an ssh 'for' loop script to login and put a key on multiple servers. I need to append a file on each server but the command which works ok from the prompt does not work via the script. I have
cat filename | ssh user@servername "cat >>append.file.name"
I have tried to 'spawn' this in... (0 Replies)
Hi folks.
I'm pretty new to unix, while I'm learning a lot I'm finding bash scripting quite confusing. Im sure it's not really, my head just hasn't clicked with it.
Anyway, I need a script to loop the ip addresses stored in a file and run a "pgrep <process>" and return the pid or some... (2 Replies)
Discussion started by: MuntyScrunt
2 Replies
LEARN ABOUT ULTRIX
group
group(5) File Formats Manual group(5)Name
group - group file
Description
The file is an ASCII file that contains the following information for each group:
Group name
Encrypted password
Numerical group ID
Comma-separated list of all users allowed in the group
Each group name is separated from the next by a new line. The fields are separated by colons. If the password field is null, no password
is demanded.
Because of the encrypted passwords, it can and does have general read permission and can be used, for example, to map numerical group IDs
to names.
The database can be distributed in a network by a naming service, such as Yellow Pages or BIND/Hesiod. See the Guide to the Yellow Pages
Service or the Guide to the BIND/Hesiod Service for setup information.
Restrictions
The command will not change the passwords.
Increasing the number of groups that a user is in beyond 8 can affect services that use SUN RPC. The version of SUN RPC shipped with ULTRX
V4.2 supports up to 32 groups. Prior versions supported users being in up to 8 groups. Users who increase the number of groups that they
are a member of to more than 8 will not be able to NFS mount file systems from ULTRIX servers older than V4.2. If root group membership is
increased to more than 8 groups on a V4.2 system, the YP service may not work if that V4.2 system is in a mixed YP server environment where
there are both V4.2 and previous releases of YP servers. Again, this incompatibility can only occur if a user's or root's group membership
is increased to more than 8 groups.
FilesSee Alsopasswd(1), setgroups(2), crypt(3), getgrent(3), initgroups(3x), passwd(5)
Guide to the BIND/Hesiod Service
Guide to the Yellow Pages Service
group(5)