04-04-2008
Quote:
Originally Posted by
ag79
as i understand, you need to get the ip address out, so that you can connect. you cannot assume things in password, because a password may contain an ip address itself (!!)
i think you need to parse backwards, from right to left, or maybe reverse the string and then get the ip address out using the leftmost match (substr etc.) and then reverse again. sorry cant tell u the commands offhand, maybe u can do some research and if u face issues post with ur code.
good luck!
I will need that luck, what you're describing is a good deal beyond my range of experience, heh. I'm starting to learn shell programming and scripting from the ground up, essentially. I take it then, that there is no way to simply 'set off' the password?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Gurus,
I've been on computers for a while, but I've yet to have the behind-the-scenes knowledge. I'm not sure if this is so much a Unix question as it is a nitty gritty computer one.
We received a customer file which had a "funny apostrophe." When displaying the file via more, the character... (1 Reply)
Discussion started by: effigy
1 Replies
2. UNIX for Advanced & Expert Users
Helo ,
I m using linux pam library for user and its password authentication.
I m creating new user and giving its password.I m giving password of 10 characters.now when I login in as that newly created user its ask me
$ su - ram
Password:
You are required to change your password immediately... (12 Replies)
Discussion started by: amitpansuria
12 Replies
3. OS X (Apple)
I developed a script in Lingon (which is an automated script editor developed for OS X) that is used to automatically restart programs only if they crash. The script itself does just that, but I only want it to load if I'm going to use the specific application that it's designed to protect. In the... (2 Replies)
Discussion started by: JFraser1
2 Replies
4. Shell Programming and Scripting
Hi All,
Need urgent help!!!
Can anyone tellme how can we send a message on specific user terminal and get a response from user in return.
Thanks in advance. (3 Replies)
Discussion started by: Sadhana
3 Replies
5. Shell Programming and Scripting
sed -e "s// /g" old.txt > new.txt
While I do know some control characters need to be escaped, can normal characters also be escaped and still work the same way? Basically I do not know all control characters that have a special meaning, for example, ?, ., % have a meaning and have to be escaped... (11 Replies)
Discussion started by: ijustneeda
11 Replies
6. Shell Programming and Scripting
I am trying to find a specific set of characters in a long file. I only want to find the characters in column 265 for 4 bytes.
Is there a search for that? I tried cut but couldn't get it to work.
Ex. I want to find '9999' in column 265 for 4 bytes. If it is in there, I want it to print... (12 Replies)
Discussion started by: Drenhead
12 Replies
7. Shell Programming and Scripting
Hi all, I need help.
I have an input text file (input.txt) like this:
21 GTGCAACACCGTCTTGAGAGG 50
21 GACCGAGACAGAATGAAAATC 73
21 CGGGTCTGTAGTAGCAAACGC 108
21 CGAAAAATGAACCCCTTTATC 220
21 CGTGATCCTGTTGAAGGGTCG 259
Now I need to count A/T/G/C numbers at each character location in column... (2 Replies)
Discussion started by: thienxho
2 Replies
8. Solaris
Hi,
I have T5240/M9000 servers running Solaris 10.
I want to manage root password from terminal only using scadm command.
Can somebody help me on this? Which package do I need to install and what all configuration need to be done?
Thanks,
Prashant (1 Reply)
Discussion started by: prashant2507198
1 Replies
9. UNIX for Dummies Questions & Answers
I have been looking at people posting commands like :
$ sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos... (2 Replies)
Discussion started by: Ryuinferno
2 Replies
10. Shell Programming and Scripting
Hello elite shell/bash specialists,
I have done plenty of STFW and some RTFM, but I cannot find a clear solution to my challenge
Goal:
My goal is to have a script(of any language, preferably shell/bash/anything that can run things on unix), which will kill specific unix terminal windows for... (0 Replies)
Discussion started by: kamil-mech
0 Replies
LEARN ABOUT NETBSD
kpasswdd
KPASSWDD(8) BSD System Manager's Manual KPASSWDD(8)
NAME
kpasswdd -- Kerberos 5 password changing server
SYNOPSIS
kpasswdd [--addresses=address] [--check-library=library] [--check-function=function] [-k kspec | --keytab=kspec] [-r realm | --realm=realm]
[-p string | --port=string] [--version] [--help]
DESCRIPTION
kpasswdd serves request for password changes. It listens on UDP port 464 (service kpasswd) and processes requests when they arrive. It
changes the database directly and should thus only run on the master KDC.
Supported options:
--addresses=address
For each till the argument is given, add the address to what kpasswdd should listen too.
--check-library=library
If your system has support for dynamic loading of shared libraries, you can use an external function to check password quality. This
option specifies which library to load.
--check-function=function
This is the function to call in the loaded library. The function should look like this:
const char * passwd_check(krb5_context context, krb5_principal principal, krb5_data *password)
context is an initialized context; principal is the one who tries to change passwords, and password is the new password. Note that
the password (in password->data) is not zero terminated.
-k kspec, --keytab=kspec
Keytab to get authentication key from.
-r realm, --realm=realm
Default realm.
-p string, --port=string
Port to listen on (default service kpasswd - 464).
DIAGNOSTICS
If an error occurs, the error message is returned to the user and/or logged to syslog.
BUGS
The default password quality checks are too basic.
SEE ALSO
kpasswd(1), kdc(8)
BSD
April 19, 1999 BSD