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, 02: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, 02:28 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
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, 02: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, 02:40 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
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, 04:47 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

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, 05: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, 06:56 PM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
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 10:32 AM
change default vsftp anonymous accout directory /var/ftp to other directory? hocheetiong Linux - Newbie 2 01-24-2010 07:33 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 06:11 AM


All times are GMT -5. The time now is 04:10 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration