Hello ppl,
A small mistake of mine has led the /etc/passwd file deleted. So i went to rescue mode and used the following command echo "root::0:0:Superuser:/:/bin/bash" > passwd
but that did not get effect in anyway way. when I switch back to normal mode the root is still asking for a passwd.... (3 Replies)
I have left unix for a long time.Almost forget everthing.:(
Anybody can tell me what is the meaning?
wc /etc/passwd
9 16 1155 /etc/passwd
and
$ wc -l /etc/passwd
wc -l /etc/passwd
9 /etc/passwd (1 Reply)
I'm trying to make use of mkdir(char *pathname, S_IRWXU) to create the directories.
but it only creates one directory at a time. so I have to separate the tokens for "/home/blah1/blah2/blah3" as "home blah1 blah2 blah3" using delimiter "/", but it is again hectic to create such directory... (8 Replies)
Hi all
i am using solaris 10, i am creating user with
useradd -d/home/user -m -s /bin/sh user
user is created with in the following path
/export/home/user (auto mount)
i need the user to be created like this
(/home as default home directory )
useradd -d /home/user -m -s /bin/sh... (2 Replies)
Hi Folks,
I have Solaris 10, latest release.
We have passwd aging set in /etc/defalut/passwd.
I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging.
When I reset the users passwd using passwd command, it re enables... (3 Replies)
:(
---------- Post updated at 01:51 AM ---------- Previous update was at 01:50 AM ----------
Not working
---------- Post updated at 02:04 AM ---------- Previous update was at 01:51 AM ----------
cp -p /home/* home/exp/*.`date`
i am using this (4 Replies)
I am trying to obtain all user accounts and their respective home directories.
/etc/passwd contains the required information, but I want to filter it to only show the uid,username and home directory path.
I am working on a Solaris 11 machine.
I made a little headway so far, but I got stuck... (7 Replies)
Discussion started by: Hijanoqu
7 Replies
LEARN ABOUT DEBIAN
devel::argnames
Devel::ArgNames(3pm) User Contributed Perl Documentation Devel::ArgNames(3pm)NAME
Devel::ArgNames - Figure out the names of variables passed into subroutines.
SYNOPSIS
use Devel::ArgNames;
sub foo {
warn "foo() called with arguments: "
. join(", ", map { defined() ? $_ : "<unknown>" } arg_names(@_) );
}
foo($bar, $gorch, $blah[4]);
DESCRIPTION
When print-debugging code, you will often ind yourself going:
print "$foo is $foo, $bar is $bar"
With this module, you can write a reusable subroutine easily:
sub my_print_vars {
my %vars;
@vars{arg_names()} = @_;
foreach my $var ( keys %vars ) {
warn "$var is $vars{$var}
";
}
}
my_print_vars($foo, $bar);
This module doesn't provide dumping facilities because there are too many to choose from. This is a DIY kit ;-)
EXPORTS
arg_names [ $level ]
This function will return the names associated with the variables found on @_, at the level $level. If $level is not provided
"arg_names"'s caller's caller will be used ("$level == 2" in that case).
VERSION CONTROL
This module is maintained using Darcs. You can get the latest version from <http://nothingmuch.woobling.org/Devel-ArgNames/>, and use
"darcs send" to commit changes.
SEE ALSO
Data::Dumper::Simple, DB, Devel::Caller, Devel::Caller::Perl, PadWalker.
AUTHORS
Ran Eilam
Yuval Kogman <nothingmuch@woobling.org>
COPYRIGHT
Copyright (c) 2007 Yuval Kogman. All rights reserved
This program is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2008-01-02 Devel::ArgNames(3pm)