LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-12-2012, 01:13 AM   #1
cdhar
Member
 
Registered: Jul 2012
Posts: 41

Rep: Reputation: Disabled
cannot change directory to /scratch/


Hi,

I am trying to install oracle 11g db in linux 64 bit.
I already have a user gbuora using which I need to install db.

[root@abc01kkk ~]# groups gbuora
gbuora : dba gbuinst osdba osoper osasm

[root@abc01kkk ~]# su - gbuora
su: warning: cannot change directory to /scratch/gbuora: No such file or directory

why I am getting this warning? pls let me know.

thanks in advance.
 
Old 09-12-2012, 01:28 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,721

Rep: Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704
Hi,

possible explanation:

/scratch/gbuora does not exist, but is set as the home directory of gbuora. Or perhaps one of the dot files of gbuora includes a "cd /scratch/gbuora".

Evo2.
 
Old 09-12-2012, 01:36 AM   #3
cdhar
Member
 
Registered: Jul 2012
Posts: 41

Original Poster
Rep: Reputation: Disabled
thanks for the reply. you are right, I do not have gbuora dir.

[root@abc01kkk ~]# ls /scratch
aime aime10 aime3 aime5 aime7 aime9
aime1 aime2 aime4 aime6 aime8 optena

how can I resolve this? I am new to linux, please help.
 
Old 09-12-2012, 01:40 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,721

Rep: Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704
Hi,

you can make the directory, and then make sure you set its ownership correctly. Eg as root
Code:
mkdir /scratch/bguora
chown gbuora.gbuora /scratch/bguora
Evo2.

---------- Post added 2012-09-12 at 15:40 ----------

Hi,

you can make the directory, and then make sure you set its ownership correctly. Eg as root
Code:
mkdir /scratch/bguora
chown gbuora.gbuora /scratch/bguora
Evo2.
 
Old 09-12-2012, 03:47 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by evo2 View Post
Code:
chown gbuora.gbuora /scratch/bguora
I think this line needs correction
Code:
chown gbuora:gbuora /scratch/bguora
 
1 members found this post helpful.
Old 09-12-2012, 04:13 AM   #6
cdhar
Member
 
Registered: Jul 2012
Posts: 41

Original Poster
Rep: Reputation: Disabled
Thumbs up

Thanks a lot. Your solution works perfect.
 
Old 09-12-2012, 05:56 PM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,721

Rep: Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704
Hi,
Quote:
Originally Posted by Wim Sturkenboom View Post
I think this line needs correction
Code:
chown gbuora:gbuora /scratch/bguora
Indeed! Don't know why I used "."

Thanks,

Evo2.
 
  


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
How to clean a home directory to install from scratch a previously installed distro? nomikos Linux - General 2 01-07-2012 09:32 AM
change default vsftp anonymous accout directory /var/ftp to other directory? hocheetiong Linux - Newbie 2 01-24-2010 06:33 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:53 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
Open Source Consulting | Domain Registration