Sponsored Content
Full Discussion: Unable to do su -
Operating Systems Solaris Unable to do su - Post 302746613 by Laxxi on Wednesday 19th of December 2012 05:10:26 PM
Old 12-19-2012
Unable to do su -

Hi,
when I try to do " su - oradba" on my solaris box i get following error:
Please let me know the proabbale cause and resolution to this.
=====================

su - oradba
Enter Local Unix Password:
Login Error
-----------
The user 'oradba' is not allowed to log direct into this host.
If this is in error, then please contact Unix Support, x7989.
This login attempt has been logged.
================================
 

10 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Unable to login

Hi Admin/Moderator, I am unable to login with my user id "chanakyahere", even it is not accepting my mail id to which i got one reply aso.. it is saying that i suppied "mail id that is not recognised".. please look forward regarding this problem.. i joined on last saturday i.e on... (1 Reply)
Discussion started by: Chanakya
1 Replies

2. Forum Support Area for Unregistered Users & Account Problems

Unable to

Unable to Activate ErnieS email id removed It just keeps sending me round in circles? And in true Unix fashion as soon as I post this it does.... Please ignore Thanks (1 Reply)
Discussion started by: ErnieS
1 Replies

3. UNIX for Dummies Questions & Answers

unable to get help from man

Help, it seem that i am unable to get man help form solaris 10. I am running SunOS unknown 5.10 Generic_120012-14 i86pc i386 i86pc when ever i try to man a command what i get is "No manual entry" like the one below. # man grep No manual entry for grep. # man ls No manual entry for ls.... (1 Reply)
Discussion started by: ezsurf
1 Replies

4. Forum Support Area for Unregistered Users & Account Problems

Unable to register

I tried registering couple of times, and got the following message. Sorry, registration denied. We check new registrations against a database of known forum spammers. At this time, we are unable to contact this database to verify your registration. We are sorry for the inconvenience but please... (0 Replies)
Discussion started by: josvasanth
0 Replies

5. Solaris

Unable to use df -h

Hi , On one of my solaris server I getan error whenever I use df -h as below. df: unknown option: h Usage: df But this works on other servers.Please advise. Regards, VN (2 Replies)
Discussion started by: narayanv
2 Replies

6. Shell Programming and Scripting

Unable to assign a value

I have written a shell script to calculate dbsize :- db2 "call get_dbsize_info(?,?,?,-1)" | sed -n '8p' | awk -F : '{print $2}' dbsize=`db2 "call get_dbsize_info(?,?,?,-1)" | sed -n '8p' | awk -F : '{print $2}'` echo $dbsize when I execute it the syntax works but it's not... (11 Replies)
Discussion started by: lazydev
11 Replies

7. Forum Support Area for Unregistered Users & Account Problems

Unable to log in

Hi Mater, I get a message from your website Forums Rules that China user can't log in this forums for security reason. However, I am a new user for UNIX, and I have never touch the UNIX system before. So I think I am a friendly man for your rules. Critically, I need everyone help in this forums... (0 Replies)
Discussion started by: h_y754831
0 Replies

8. UNIX for Dummies Questions & Answers

Unable to grep

I have a file with 2 lines of code Rome is in Romeo Romeo is in Rome How do I grep, so that only last line would be the outcome. sample output Romeo is in Rome I have tried with all possible greps but its resulting in both the lines in output. Please help. (6 Replies)
Discussion started by: gotamp
6 Replies

9. Forum Support Area for Unregistered Users & Account Problems

Unable to register

Unable to login. When trying to make fresh registration getting error that username is already used and when trying to use forget password journey then getting error message, "email address not registered". (1 Reply)
Discussion started by: Unregistered
1 Replies

10. Linux

Unable to extend LV

Hi all. I have a Logical volume that I can't extend, with this error message: server171:root:/root# lvextend -L +1024M -v /dev/aplic_vg/siteminderwa_lv Finding volume group aplic_vg Archiving volume group "aplic_vg" metadata (seqno 75). Extending logical volume siteminderwa_lv to... (0 Replies)
Discussion started by: Gabriander
0 Replies
CatalystX::SimpleLogin::Manual(3pm)			User Contributed Perl Documentation		       CatalystX::SimpleLogin::Manual(3pm)

NAME
CatalystX::SimpleLogin::Manual - How to use and customise CatalystX::SimpleLogin. Tutorial We're using a sample application here, to make the instructions a little easier. This assumes that you have Catalyst, Catalyst::Devel, Template Toolkit, and the Catalyst authentication and session plugins installed. catalyst.pl MyApp cd MyApp script/myapp_create.pl view HTML TT Edit lib/MyApp.pm and add CatalystX::SimpleLogin, Authenticate, and the Session plugins to the use Catalyst plugin list: use Catalyst qw/-Debug ConfigLoader +CatalystX::SimpleLogin Authentication Session Session::Store::File Session::State::Cookie Static::Simple/; Add the following config for authentication, including two sample users: __PACKAGE__->config( 'Plugin::Authentication' => { default => { credential => { class => 'Password', password_field => 'password', password_type => 'clear' }, store => { class => 'Minimal', users => { bob => { password => "bobpw", }, william => { password => "billpw", }, }, }, }, }, ); Execute " script/myapp_server.pl " and, as part of the debug output, you should see: [debug] Loaded Chained actions: .-------------------------------------+--------------------------------------. | Path Spec | Private | +-------------------------------------+--------------------------------------+ | /login | /login/login | | /logout | /login/logout | '-------------------------------------+--------------------------------------' Go to " localhost:3000 " and you should see the Catalyst welcome screen. Go to " localhost:3000/login " and you should get a login screen containing username and password text fields, a 'Remember' checkbox, and a 'Login' button. Enter 'bob' and 'bobpw'. You should be logged in and taken to the welcome screen. If you execute " localhost:3000/logout " you will be logged out, and should see this in the debug output (the welcome screen will stay the same). Now go to " lib/MyApp/Controller/Root.pm " and remove the lines saying: use strict; use warnings; use parent 'Catalyst::Controller'; and add the following lines: use Moose; use namespace::autoclean; BEGIN { extends 'Catalyst::Controller' } Now add a new action to " lib/MyApp/Controller/Root.pm " and include " Does('NeedsLogin') " to use the Catalyst ActionRole that is part of SimpleLogin: sub hello_user : Local Does('NeedsLogin') { my ( $self, $c ) = @_; $c->res->body('<h2>Hello, user!</h2>'); } Restart the server and you can see the new action. Go to "htp://localhost:3000/hello_user" and you'll get the 'Hello, user!' page. Now execute "http://localhost:3000/logout" and try "http://localhost:3000/hello_user" again. You will be presented with a login screen. Authorization CatalystX::SimpleLogin also provides /login/required and /login/not_required for easy chaining off of for actions which should only be available to authenticated users. package MyApp::Controller::Secure; sub setup : Chained('/login/required') PathPart('') CaptureArgs(1) { my ( $self, $c, $id ) = @_; # setup actions for authenticated-user-only access $c->stash->{id} = $id; } sub something_secure : Chained('setup') PathPart Args(0) { my ( $self, $c ) = @_; # only authenticated users will have access to this action } sub open_to_all : Chained('/login/not_required') PathPart Args(0) { my ( $self, $c ) = @_; # this is available to everyone } For more fine-grained control, you can use ACL checks to refine access control policies. This functionality is provided via Catalyst::ActionRole::ACL. Please consult the ACL documentation for steps to setup your application. The ACL checks work by allowing you to add additional attributes on your actions which control the particular role(s) required or allowed. package MyApp; __PACKAGE__->config( 'Controller::Login' => { actions => { required => { Does => ['ACL'], AllowedRole => ['admin', 'poweruser'], # ANY of these # RequiresRole => ['extranet'], # ALL of these ACLDetachTo => 'login', }, }, }, ); package MyApp::Controller::Foo; BEGIN { extends 'Catalyst::Controller' } sub do_something : Chained('/login/required') : Does('ACL') RequiresRole('createinvoice') ACLDetachTo('/login') {} You can also add a message, which will be put into the flash key 'error_msg'. Add the following to the hello_user action: : LoginRedirectMessage('Please Login to view this Action') Now we'll create a Template Toolkit template that can be customized. Create a " root/login/login.tt " file with the following lines. [% error_msg %] [% render_login_form %] Now edit " lib/MyApp.pm " and add the config shown below to remove the 'RenderAsTTTemplate' trait, and add 'flash_to_stash' for Catalyst::Plugin::Session (to allow the error message to be passed to the next request): __PACKAGE__->config( 'Plugin::Session' => { flash_to_stash => 1 }, 'Controller::Login' => { traits => ['-RenderAsTTTemplate'], }, # Other config.. ); Restart the server and try to view the hello_user page without being logged in. You should be reredireced to the login page with the error message displayed at the top. You can replace " [% render_login_form %] " with your own html, and customize it as you please. <div class="error">[% error_msg %]</div> <form id="login_form" method="post" > <fieldset class="main_fieldset"> <div><label class="label" for="username">Username: </label><input type="text" name="username" id="username" value="" /> </div> <div><label class="label" for="password">Password: </label> <input type="password" name="password" id="password" value="" /> </div> <div><label class="label" for="remember">Remember: </label> <input type="checkbox" name="remember" id="remember" value="1" /> </div> <div><input type="submit" name="submit" id="submit" value="Login" /> </div> </fieldset></form> Or you can customize it using HTML::FormHandler HTML rendering features, and the 'login_form_args' config key. perl v5.14.2 2012-07-15 CatalystX::SimpleLogin::Manual(3pm)
All times are GMT -4. The time now is 09:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy