06-07-2013
Create multiple users with individual passwords to users
hi,
i am new to shell scripts
i write a shell script to create multiple users but i need to give passwords to that users while creating users, command to write this script
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I am the administrator for a large network of HP/UX servers, about 100, this will be growing to over 200 in the next 18 months, part of my duties are to change the root passwords on these machines once month... which is a pain. I have written a script that will generate random passwords for me and... (3 Replies)
Discussion started by: PJolliffe
3 Replies
2. UNIX for Dummies Questions & Answers
hi, to do a su - user, we need to know what are the users...
so in unix
1) which file to see the list of users, passwords? (2 Replies)
Discussion started by: yls177
2 Replies
3. Shell Programming and Scripting
Hi,
I am trying to write a shell script which execute certain commands within certain folders in each user's home directories
I started off with a bash script -
#!/bin/csh -f
su -l cvsusr1
cvs -d /home/cvsadm/repository status
But the shell script finishes immediately after... (1 Reply)
Discussion started by: rupa_lahiri
1 Replies
4. Solaris
Hi All,
How to restrict the NIS users not to change their passwords in for NIS users??
and my NIS user is unable to login to at client location what could be the problem for this ?
Any body can help me. Thanks in advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies
5. UNIX for Advanced & Expert Users
Hello,
I have an AIX 5.3 system. I want to check users to see whether there are users with blank passwords but i would prefer to do that without checking /etc/passwd or /etc/security/passwd files.
Also while i was searching the web for a solution i noticed that many people refer to /etc/shadow... (2 Replies)
Discussion started by: omonoiatis9
2 Replies
6. Solaris
* Can we create multiple users with same UID?
* Can we give root permissions to normal user like admin.s ? If YES give me full details (syntax of sudo/RBAC) (14 Replies)
Discussion started by: Navkreddy
14 Replies
7. Shell Programming and Scripting
Hi, guys. I need help on some expect problem.
#!/usr/bin/expect
set user
set password
set newuser
spawn telnet x.x.x.x
expect login*
send “root\r”
expect Password*
send “123546\r”
send "useradd $newuser\r"
send "exit\r"
interact
I can add 1 user using expect script, but how do I... (1 Reply)
Discussion started by: alhazerd
1 Replies
8. UNIX and Linux Applications
Is it possible to use {SHA} with ldappasswd? I didn't find responsible option in manual page and doc (1 Reply)
Discussion started by: urello
1 Replies
9. Red Hat
Hi,
I have problem with a script, it was working for 6 month and suddenly I started getting strange expire times
example:
# chage -l wXXp
Last password change : Oct 28, 2014
Password expires : Nov 27, 2014
Password... (3 Replies)
Discussion started by: redmansas
3 Replies
10. UNIX for Beginners Questions & Answers
Hi Team,
I got a requirement to send a mail to the individual users of a unix server about their respective groups. can some one help me to provide the script as I am unable to write that.
I tried with below lines but I come out with errors.
cat /etc/passwd | awk -F':' '{ print $1}' |... (6 Replies)
Discussion started by: harshabag
6 Replies
LEARN ABOUT SUSE
xsession.options
Xsession.options(5) File Formats Manual Xsession.options(5)
NAME
Xsession.options - configuration options for Xsession(5)
DESCRIPTION
/etc/X11/Xsession.options contains a set of flags that determine some of the behavior of the Xsession(5) Bourne shell (sh(1)) script. See
the Xsession(5) manpage for further information.
Xsession.options may contain comments, which begin with a hash mark ('#') and end at the next newline, just like comments in shell scripts.
The rest of the file consists of options which are expressed as words separated by hyphens, with only one option per line. Options are
enabled by simply placing them in the file; they are disabled by prefixing the option name with 'no-'.
Available options are:
allow-failsafe
If the 'failsafe' argument is passed to the Xsession script, an emergency X session is invoked, consisting of only an x-termi-
nal-emulator(1) in the upper-left hand corner of the screen. No window manager is started. If an x-terminal-emulator program is
not available, the session exits immediately.
allow-user-resources
If users have a file called .Xresources in their home directories, these resources will be merged with the default X resources when
they log in.
allow-user-xsession
If users have an executable file called .xsession in their home directories, it can be used as the startup program for the X session
(see Xsession(5)). If the file is present but not executable, it may still be used, but is assumed to be a Bourne shell script, and
executed with sh(1).
use-session-dbus
If the dbus package is installed, the session bus will be activated at X session launch.
use-ssh-agent
If the ssh-agent(1) program is available and no agent process appears to be running already, the X session will be invoked by
exec'ing ssh-agent with the startup command, instead of the startup command directly.
All of the above options are enabled by default. Additional options may be supported by the local administrator. Xsession(5) describes
how this is accomplished.
AUTHORS
Stephen Early, Mark Eichin, and Branden Robinson developed Debian's X session handling scripts. Branden Robinson wrote this manual page.
SEE ALSO
Xsession(5), ssh-agent(1), x-terminal-emulator(1)
Debian Project 2004-10-31 Xsession.options(5)