10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
In a ksh, I'm attempting to pass my string of arguments to the mkuser command in a variable as follows...
cmd="pgrp=ACRGENU groups=ACRGENU home=/home/${USERID} shell=/usr/bin/ksh"
cmd=$cmd" gecos='${USERNAME}' login=true su=false rlogin=true daemon=true"
cmd=$cmd" admin=false... (4 Replies)
Discussion started by: bubbawuzhere
4 Replies
2. Shell Programming and Scripting
hi,
i have a script which needs to be run every 10 minutes.This is achieved using crontab utility,
it is checking Number of calls on a service... if number of calls are not increasing then it will stop the service else do nothing.
Now in the script, i fetch the current value in variable... (2 Replies)
Discussion started by: gauravah
2 Replies
3. Shell Programming and Scripting
Hi All,
Please can you advise on how can I initialize a variable with a line.
Suppose i want to initialize x with line redirects.www.virginatlantic.com.conf
Best Regards,
Shazin (1 Reply)
Discussion started by: Shazin
1 Replies
4. AIX
Can we create new user with same UID?? why do we need that and what is the purpose to create like that (3 Replies)
Discussion started by: senmak
3 Replies
5. AIX
Hi
I want to create a user on AIX box. The only problem I have is I want to set it a password and the user doesn't have to change the password at his initial login. Is there any flag to do that. Any help would be appreciated. (6 Replies)
Discussion started by: bandaru
6 Replies
6. Shell Programming and Scripting
hi
can anyone tell how to initialize a file to zero (3 Replies)
Discussion started by: Satyak
3 Replies
7. HP-UX
Hello Everyone,
Has anyboby ever come across the problem when fd refuses to get initialised. I try to use mediainit command, the fd is being accessed (the fd's LIT is green for some secs) but then I get the message - "Initialize media command failed - permission denied" I checked the diskette,... (1 Reply)
Discussion started by: Andrey Malishev
1 Replies
8. SCO
I use SCO UNIX from 2 years I need a command or procedure to make all log files empty and restart all counters like lp job number
:( :confused: :( (1 Reply)
Discussion started by: sharina
1 Replies
9. Shell Programming and Scripting
Hi, i m trying to loop a variable value, Basically i m reading variable value from an input file and using in rest of the program. Bu my problem is when i first time read value and assign to variable it works fine, but in second read it concatinate second value to first value with a LF. I want to... (2 Replies)
Discussion started by: coolbudy
2 Replies
10. UNIX for Advanced & Expert Users
Hi all,
I've got a strange problem here that is not documented in AIX FAQs and tech docs, and I was wondering if somebody out there encountered the same issue or had an idea to help me out.
I'm using a script to create users with the "mkuser" command. I can set up any options I want (like... (1 Reply)
Discussion started by: dfrangidis
1 Replies
pwconv(1M) System Administration Commands pwconv(1M)
NAME
pwconv - installs and updates /etc/shadow with information from /etc/passwd
SYNOPSIS
pwconv
DESCRIPTION
The pwconv command creates and updates /etc/shadow with information from /etc/passwd.
pwconv relies on a special value of 'x' in the password field of /etc/passwd. This value of 'x' indicates that the password for the user is
already in /etc/shadow and should not be modified.
If the /etc/shadow file does not exist, this command will create /etc/shadow with information from /etc/passwd. The command populates
/etc/shadow with the user's login name, password, and password aging information. If password aging information does not exist in
/etc/passwd for a given user, none will be added to /etc/shadow. However, the last changed information will always be updated.
If the /etc/shadow file does exist, the following tasks will be performed:
Entries that are in the /etc/passwd file and not in the /etc/shadow file will be added to the /etc/shadow file.
Entries that are in the /etc/shadow file and not in the /etc/passwd file will be removed from /etc/shadow.
Password attributes (for example, password and aging information) that exist in an /etc/passwd entry will be moved to the corre-
sponding entry in /etc/shadow.
The pwconv command can only be used by the super-user.
FILES
/etc/opasswd
/etc/oshadow
/etc/passwd
/etc/shadow
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
passwd(1), passmgmt(1M), usermod(1M), passwd(4), attributes(5)
DIAGNOSTICS
pwconv exits with one of the following values:
0 SUCCESS.
1 Permission denied.
2 Invalid command syntax.
3 Unexpected failure. Conversion not done.
4 Unexpected failure. Password file(s) missing.
5 Password file(s) busy. Try again later.
6 Bad entry in /etc/shadow file.
SunOS 5.10 9 Mar 1993 pwconv(1M)