LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-11-2012, 06:31 AM   #1
cdhar
Member
 
Registered: Jul 2012
Posts: 41

Rep: Reputation: Disabled
su:warning: cannot change directory to home/orausr: No such file or directory


Hi,
I am trying to install Oracle 11.2 database in linux 64 bit.Getting issues while creating oracle user. Please find the following steps.

1. Creating oracle user to install oracle
# /usr/sbin/useradd -m -g oinstall -G dba orausr
useradd: cannot create a directory home/orausr

2. service autofs stop - is it right to stop this service

3. removed the user and created again the user freshly
# /usr/sbin/useradd -m -g oinstall -G dba orausr - no error/warning

4. service autofs start

5. sudo su - orausr
su:warning: cannot change directory to home/orausr: No such file or directory

Please let me know where i am doing wrong.

thanks,
cdhar
 
Old 09-11-2012, 06:38 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
1. stop autofs

2. login as orauser and
Code:
pwd

# using a lowercase L as the option
ls -l

ls -l /home
It sounds like the autofs mount is mounting 'over' the local mount and the definition is wrong; it should be saying '/home/orauser'; note the leading '/', which is missing in the error msgs you show.
 
Old 09-11-2012, 06:48 AM   #3
cdhar
Member
 
Registered: Jul 2012
Posts: 41

Original Poster
Rep: Reputation: Disabled
thanks for the reply. its my mistake, I missed the complete message.

su:warning: cannot change directory to /home/orausr: No such file or directory.

I tried this, getting sudo not found.

1. service autofs stop
2. sudo su - orausr
-ksh: sudo: not found (No such file or directory)
 
Old 09-11-2012, 07:07 AM   #4
cdhar
Member
 
Registered: Jul 2012
Posts: 41

Original Poster
Rep: Reputation: Disabled
Restarted the machine. Now autofs is in running mode. So I tried this as you specified.

$ sudo su - orausr
Password:
su: warning: cannot change directory to /home/orausr: No such file or directory
-bash-3.2$ ls -l /home
total 4
drwxr-xr-x+ 28 cdhar dba 39 Aug 16 04:27 cdhar


thanks,
cdhar
 
Old 09-11-2012, 07:17 AM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Well, there you are, the home dir isn't there; check the /etc/passwd file.

Try it after stopping autofs.
Also, no need for sudo at all if you know the orauser passwd, just
Code:
su - orauser
and provide passwd if asked; if you're already root, you don't need passwd..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How do I change change the home directory to be owned by me and not root? Slackware theif519 Linux - Newbie 4 06-24-2011 01:21 PM
chroot:cannot change root directory to: No such file directory janakiramulu Linux From Scratch 5 04-23-2011 02:00 AM
[SOLVED] How can i change my HOME (/home/user) directory location to something else? QueenZ Linux - Newbie 6 08-05-2010 07:26 AM
How to protect a file/directory in your home login directory (RH Linux) jitsenho Linux - Security 9 07-04-2006 12:08 AM
Change HOME directory? bhuwan Linux - Newbie 7 01-30-2006 10:19 AM


All times are GMT -5. The time now is 07:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration