LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cannot change directory to /scratch/ (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-change-directory-to-scratch-4175426804/)

cdhar 09-12-2012 01:13 AM

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.

evo2 09-12-2012 01:28 AM

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.

cdhar 09-12-2012 01:36 AM

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.

evo2 09-12-2012 01:40 AM

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.

Wim Sturkenboom 09-12-2012 03:47 AM

Quote:

Originally Posted by evo2 (Post 4778186)
Code:

chown gbuora.gbuora /scratch/bguora

I think this line needs correction
Code:

chown gbuora:gbuora /scratch/bguora

cdhar 09-12-2012 04:13 AM

Thanks a lot. Your solution works perfect.

evo2 09-12-2012 05:56 PM

Hi,
Quote:

Originally Posted by Wim Sturkenboom (Post 4778260)
I think this line needs correction
Code:

chown gbuora:gbuora /scratch/bguora

Indeed! Don't know why I used "."

Thanks,

Evo2.


All times are GMT -5. The time now is 12:09 AM.