I am not sure if matters but I am running solaris 10
It doesn't matter here.
It works fine with me on Solaris 10 too:
Code:
# ssh foo@localhost
Password:
Last login: Wed May 21 19:54:19 2008 from localhost
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
$ pwd
/var/abc/AB!CD!DE/error
$ cat /etc/release
Solaris 10 8/07 s10x_u4wos_12b X86
Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 16 August 2007
$ grep foo /etc/passwd
foo:x:10000:10000:Weird home directory:/var/abc/AB!CD!DE/error:/bin/ksh
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 SUSE
template::exception
Template::Exception(3) User Contributed Perl Documentation Template::Exception(3)NAME
Template::Exception - Exception handling class module
SYNOPSIS
use Template::Exception;
my $exception = Template::Exception->new($type, $info);
$type = $exception->type;
$info = $exception->info;
($type, $info) = $exception->type_info;
print $exception->as_string();
$handler = $exception->select_handler(@candidates);
DESCRIPTION
The "Template::Exception" module defines an object class for representing exceptions within the template processing life cycle. Exceptions
can be raised by modules within the Template Toolkit, or can be generated and returned by user code bound to template variables.
Exceptions can be raised in a template using the "THROW" directive,
[% THROW user.login 'no user id: please login' %]
or by calling the throw() method on the current Template::Context object,
$context->throw('user.passwd', 'Incorrect Password');
$context->throw('Incorrect Password'); # type 'undef'
or from Perl code by calling "die()" with a "Template::Exception" object,
die (Template::Exception->new('user.denied', 'Invalid User ID'));
or by simply calling "die()" with an error string. This is automagically caught and converted to an exception of '"undef"' type (that's
the literal string '"undef"' rather than Perl's undefined value) which can then be handled in the usual way.
die "I'm sorry Dave, I can't do that";
Each exception is defined by its type and a information component (e.g. error message). The type can be any identifying string and may
contain dotted components (e.g. '"foo"', '"foo.bar"', '"foo.bar.baz"'). Exception types are considered to be hierarchical such that
'"foo.bar"' would be a specific type of the more general '"foo"' type.
METHODS
type()
Returns the exception type.
info()
Returns the exception information.
AUTHOR
Andy Wardley <abw@wardley.org> <http://wardley.org/>
COPYRIGHT
Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Template, Template::Context
perl v5.12.1 2008-11-13 Template::Exception(3)