10-30-2012
Good advice. Thanks os2mac
10 More Discussions You Might Find Interesting
1. Solaris
Now I face a problem in changing the NIS passwd,I have no idea,want you to help me!
Today I add some user in the NIS master server ,I "vi" /etc/passwd &/etc/shadow,add user account and password by hand(shadow----no password ,only eight ":").
when finsh,I login ,system told me to input a password... (3 Replies)
Discussion started by: dlsjm
3 Replies
2. Shell Programming and Scripting
I am looking to add 3 lines in /etc/passwd via a script. Can you please give me an idea on how to write a script that can do that? (3 Replies)
Discussion started by: melanie_pfefer
3 Replies
3. Solaris
Hello. I'm getting very odd behavior when I try to change a user's password in Solaris 8. The shell, where it used to ask for a new passwd and a confirmation, now asks FOUR times, with two success message.
This is what happens every time:
# passwd myusername
New Password: xxxxxxxx
New... (2 Replies)
Discussion started by: rockusa
2 Replies
4. UNIX for Advanced & Expert Users
On solaris and irix systems, I'm using csh in an existing xterm or dterm and would like to change the text colors. How do I accomplish this?
Thanks (1 Reply)
Discussion started by: fjc
1 Replies
5. HP-UX
My goal is to protect the /etc/passwd from unauthorized viewing. I wish ti change the permissions of the file to :
-r--r----- 1 root bin
so only root or accounts of the "bin" group could query this sensitive file. All our other processes have been ajusted to not need any info from... (16 Replies)
Discussion started by: MartinGravel
16 Replies
6. Solaris
Hi All,
I would like know how many of default number of users and groups are there in solaris-10...
Regards
Tirupathi Raju (2 Replies)
Discussion started by: tirupathiraju_t
2 Replies
7. Shell Programming and Scripting
This command prints out username/users in /etc/passwd:
cut -d ':' -f '1,5' /etc/passwd | sort
I wonder if I also, after above commands output, can get an output that lists number of users in the group? I need to use uniq to get rid of duplicates.
I´ve tried this, but cant get it right, can... (5 Replies)
Discussion started by: oskis
5 Replies
8. IP Networking
Hi , Can some one tell me , is there a way to change the existing network parameter in existing OS image , or do i have to create a new image to have new network parameters . (0 Replies)
Discussion started by: thana
0 Replies
9. Shell Programming and Scripting
Hi Expert,
I have environment where password is locally managed, not NIS, not LDAP, not Centrally managed.
In order to access to this environment I have to use Jump Box, and only from jumpbox I can login to every host. I can't login direct from inside one host within that environment to... (1 Reply)
Discussion started by: regmaster
1 Replies
10. UNIX for Beginners Questions & Answers
Hi Guys,
I want a script where in I need to send an email to individual users about their groups.
OS:unix redhat
Shell :Bash.
The mail should be like,"Hi &username , you are in part of &group1,&group2 .."
I need to mail to their personal email id mostly @outlook. Not to their UNIX.... (1 Reply)
Discussion started by: vijay2107
1 Replies
LEARN ABOUT DEBIAN
aspect::advice::before
Aspect::Advice::Before(3pm) User Contributed Perl Documentation Aspect::Advice::Before(3pm)
NAME
Aspect::Advice::Before - Execute code before a function is called
SYNOPSIS
use Aspect;
before {
# Trace all calls to your module
print STDERR "Called my function " . $_->sub_name . "
";
# Shortcut calls to foo() to always be true
if ( $_->short_name eq 'foo' ) {
return $_->return_value(1);
}
# Add an extra flag to bar() but call as normal
if ( $_->short_name eq 'bar' ) {
$_->args( $_->args, 'flag' );
}
} call qr/^ MyModule::w+ $/
DESCRIPTION
The "before" advice type is used to execute advice code prior to entry into a target function. It is implemented by Aspect::Advice::Before.
As well as creating side effects that run before the main code, the "before" advice type is particularly useful for changing parameters or
shortcutting calls to functions entirely and replacing the value they would normally return with a different value.
Please note that the "highest" pointcut (Aspect::Pointcut::Highest) is incompatible with "before". Creating a "before" advice with a
pointcut tree that contains a "highest" pointcut will result in an exception.
If speed is important to your program then "before" is particular interesting as the "before" implementation is the only one that can take
advantage of tail calls via Perl's "goto" function, where the rest of the advice types need the more costly Sub::Uplevel to keep caller()
returning correctly.
AUTHORS
Adam Kennedy <adamk@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2010 Adam Kennedy.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-02-01 Aspect::Advice::Before(3pm)