01-20-2008
The home directory of each user (root included) is mentioned in the 6th field (: seperated) of the /etc/passwd entry. If the field is empty then "/" is the home directory.
When you are logged in as user root, you can also simply type the command:
cd
without any arguments.
That should put you in the home directory of root.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am not getting login prompt when connecting to the red hat linux 7.2 server from windows machine and i am unable to login to server, after giving username at login prompt cusor blinks, no respnse. I can able to login to server thro ssh.
Pl can i know how to solve this problem.
Very badly... (4 Replies)
Discussion started by: bache_gowda
4 Replies
2. AIX
I've an LPAR set up on a P690. The LPAR ran AIX v5.2. I then did an upgrade (using the migration option) to AIX v5.3. I've now encountered the problem that, at the console, I cannot log in as root (or as anyone else that matter). I get the login prompt, enter "root " and then the shell returns to... (1 Reply)
Discussion started by: morgan_g
1 Replies
3. Linux
Hi, We currently have a problem on a centos server when i try to ssh to it there is a significant delay in getting a login prompt. What would be the steps in troubleshooting this issue? I have try to narrow down a possible network issue but cannot see anything obviously wrong in the routing table,... (4 Replies)
Discussion started by: borderblaster
4 Replies
4. Solaris
Hi All,
I have created a new user. Using the below command I have created the user successfully.
useradd -c "Test user" -d /tmp/test -g Testgroup -s /bin/ksh -u 601 Test
I don't want to set the password using “passwd” command after creating a user.
I want to prompt for the new... (2 Replies)
Discussion started by: kalpeer
2 Replies
5. Solaris
Do I need to reinstall/rerun JASS after upgrading from Sol9 to Sol10?
Just wondered if the upgrade procedure overwrote any of the settings etc? (0 Replies)
Discussion started by: psychocandy
0 Replies
6. Shell Programming and Scripting
Hi,
How i can pass the login details to the URL which is password protected with the htaccess using command line or script (perl,or shell,or php).
Any help or hint appreciated.
Thanks,
SJ (4 Replies)
Discussion started by: SilvesterJ
4 Replies
7. Shell Programming and Scripting
Hey guys, trying to create a script that will run in the background until a user logs in and then present them with different options to proceed further.
It is on an Ubuntu 10.04 Amazon ec2 system.
The system runs 24/7 as it is and just needs to feed the prompt to whoever logs in.
Is this... (3 Replies)
Discussion started by: 3therk1ll
3 Replies
8. Red Hat
Hi,
we have a server that runs on redhat linux. It was working fine until last year and all of sudden we are not able to ssh on to that server. we are getting the ping response but not getting the login prompt when tried to connect via ssh.
Port 22 is opened and i have tested it out using... (6 Replies)
Discussion started by: phanidhar6039
6 Replies
9. HP-UX
Hi, I'm a normal user in hp-ux box. today i'm unable to get prompt after i successfully logged in into the hp-ux box. what could be the problem? what should should i check? (4 Replies)
Discussion started by: sam_bd
4 Replies
10. HP-UX
When I login as root or any user it prompts for the Login again. never prompts for password.login: root
Login incorrect
login:
Does not matter what user login I try I get the same response (3 Replies)
Discussion started by: KMRWHUNTER
3 Replies
LEARN ABOUT DEBIAN
mojo::home
Mojo::Home(3pm) User Contributed Perl Documentation Mojo::Home(3pm)
NAME
Mojo::Home - Detect and access the project root directory in Mojo
SYNOPSIS
use Mojo::Home;
my $home = Mojo::Home->new;
$home->detect;
DESCRIPTION
Mojo::Home is a container for home directories.
ATTRIBUTES
Mojo::Home implements the following attributes.
"app_class"
my $class = $home->app_class;
$home = $home->app_class('Foo::Bar');
Application class.
METHODS
Mojo::Home inherits all methods from Mojo::Base and implements the following new ones.
"new"
my $home = Mojo::Home->new;
my $home = Mojo::Home->new('/home/sri/myapp');
Construct a new Mojo::Home object.
"detect"
$home = $home->detect;
$home = $home->detect('My::App');
Detect home directory from the value of the "MOJO_HOME" environment variable or application class.
"lib_dir"
my $path = $home->lib_dir;
Path to "lib" directory of application.
"list_files"
my $files = $home->list_files;
my $files = $home->list_files('foo/bar');
Portably list all files recursively in directory relative to the home diectory.
$home->rel_file($home->list_files('templates/layouts')->[1]);
"mojo_lib_dir"
my $path = $home->mojo_lib_dir;
Path to "lib" directory in which Mojolicious is installed.
"parse"
$home = $home->parse('/home/sri/myapp');
Parse home directory.
"rel_dir"
my $path = $home->rel_dir('foo/bar');
Portably generate an absolute path for a directory relative to the home directory.
"rel_file"
my $path = $home->rel_file('foo/bar.html');
Portably generate an absolute path for a file relative to the home directory.
"slurp_rel_file"
my $string = $home->slurp_rel_file('foo/bar.html');
Portably read all data at once from file relative to the home directory.
my $content = $home->slurp_rel_file($home->list_files('public')->[1]);
"to_string"
my $string = $home->to_string;
my $string = "$home";
Home directory.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojo::Home(3pm)