e.g. as here remote shells are blocked by routers for security:
as I have not used publick keys for no passwd setting on this remote box ( as I dont normally connect to it but cant think of another solaris at the moment...) It has asked my passwd... but this gives you the idea...
Hi,
I'm using a bourne shell to kick off a 3rd Pty app. This app uses Orbix. When I exit from the telnet session which started the app or hit CTRL-C at the command line, the orbix process dies, yet all other process remain.
I've tried starting the app as a background process, but it still... (1 Reply)
I am trying to find out that how many number of threads are currently running or in any other state which is created by POSIX standard in a process.
First I have defined a variable called proc_var of type proc defined in sys/proc.h.Next I open up the dir /proc and per directory wise I do an ioctl... (7 Replies)
Hello Experts,
Can any one help me out to find the command to get "count" of number of processes running in system.
Basically i want to write one crone job to kill some process which making my system hanged. so have to do following things.
1) Find out the number of processes is running.... (4 Replies)
Hi,
I'm trying to spawn a telnet process and trying to do some actions in the remote host using expect script. I would like to know how to suppress all the output in order the user using the script should not be able to see any actions done on the remote host. I tried using the "log_user 0"... (8 Replies)
i have something like this
tablesName="abc def hij akn ... etc etc"
count=0
for i in $tablesName
do
echo -en "\b\b\b\b\b\b\b\b\b\b\b\b\bTableCount: $count"
count=`expr $count + 1`
done
the above is just a description wha i need is when the loop executes
the... (1 Reply)
Hi,
I am trying to make a script which should execute if the same is not getting executed already.
To implement this check, I wrote a fragment of code as below
$ cat abc.sh
#!/bin/bash
check=0
#grepping "sh -x abc.sh" because if i check only for "abc.sh" and the file is open in say... (12 Replies)
Hi,
We have scheduled few jobs/scripts in cron and it runs on daily basis at a specified time. We have a cron jobs has various parameters for main scripts like
/home/test/mainscript.ksh main_param
when the above jobs triggers, mainscript.ksh has below code and it refers
... (3 Replies)
Hi,
I have a file with contents
So what I have to do is
In short, break the file after every 6 lines and then truncate new line to tab for these 6 lines.
I am not able to execute the for loop in awk properly.
The idea is something like this:
less file| awk '{for .... {if ((nr>=1)... (7 Replies)
Discussion started by: rossi
7 Replies
LEARN ABOUT MOJAVE
pwconv
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)