LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-20-2010, 08:53 AM   #1
perky.nishi
Member
 
Registered: May 2008
Location: delhi, india
Distribution: fedora
Posts: 51

Rep: Reputation: 15
can't chdir /export/home/user/


Dear community,
I have an account in a cluster. In the cluster we have to submit jobs by sgi. After every submission I am getting an an error "can't chdir /export/home/user/". My user account (user) is placed at /export/home/ instead of /home/. I am not understanding what to do. Please help.
 
Old 08-20-2010, 01:08 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Is this an NFS mount? CIFS mount?

The message seems to indicate there is a problem accessing /export/home/user so the first step would be to check to see if it exists:
ls -ld /export/home/user

If it does exist then you might look at the permissions to see if you have permission to access it. Is it owned by you and set to read and write execute by owner? If not is the group set to read write and execute and is your user a member of the group? If not is it set to read write and execute for everyone?

If it is an NFS or CIFS mount it could have to do either with the way it was exported (e.g. often root at mounting systems isn't allowed by the system that exported it). You may need to discuss with whoever administers the export and/or the mount if you don't own and administer both systems.
 
Old 08-22-2010, 06:19 AM   #3
perky.nishi
Member
 
Registered: May 2008
Location: delhi, india
Distribution: fedora
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by MensaWater View Post
Is this an NFS mount? CIFS mount?

The message seems to indicate there is a problem accessing /export/home/user so the first step would be to check to see if it exists:
ls -ld /export/home/user

If it does exist then you might look at the permissions to see if you have permission to access it. Is it owned by you and set to read and write execute by owner? If not is the group set to read write and execute and is your user a member of the group? If not is it set to read write and execute for everyone?

If it is an NFS or CIFS mount it could have to do either with the way it was exported (e.g. often root at mounting systems isn't allowed by the system that exported it). You may need to discuss with whoever administers the export and/or the mount if you don't own and administer both systems.

I can read and write in /export/home/user/. I dont have the administrative power of the cluster. What should I ask the administrator to do so that the problem gets shorted out? Thanx for the help.
 
Old 08-22-2010, 07:31 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I don't understand what you mean by submit jobs by sgi.

chdir is a c function, changing the working directory. It has the following errors:
Code:
ERRORS
       Depending on the file system, other errors can be returned.  The more general errors for chdir() are listed below:
       EACCES Search permission is denied for one of the components of path.  (See also path_resolution(7).)
       EFAULT path points outside your accessible address space.
       EIO    An I/O error occurred.
       ELOOP  Too many symbolic links were encountered in resolving path.
       ENAMETOOLONG
              path is too long.
       ENOENT The file does not exist.
       ENOMEM Insufficient kernel memory was available.
       ENOTDIR
              A component of path is not a directory.

       The general errors for fchdir() are listed below:
       EACCES Search permission was denied on the directory open on fd.
       EBADF  fd is not a valid file descriptor.
Please indicate where the error message is coming from. Your running program? From the cluster?
 
Old 08-23-2010, 12:22 AM   #5
perky.nishi
Member
 
Registered: May 2008
Location: delhi, india
Distribution: fedora
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
I don't understand what you mean by submit jobs by sgi.

chdir is a c function, changing the working directory. It has the following errors:
Code:
ERRORS
       Depending on the file system, other errors can be returned.  The more general errors for chdir() are listed below:
       EACCES Search permission is denied for one of the components of path.  (See also path_resolution(7).)
       EFAULT path points outside your accessible address space.
       EIO    An I/O error occurred.
       ELOOP  Too many symbolic links were encountered in resolving path.
       ENAMETOOLONG
              path is too long.
       ENOENT The file does not exist.
       ENOMEM Insufficient kernel memory was available.
       ENOTDIR
              A component of path is not a directory.

       The general errors for fchdir() are listed below:
       EACCES Search permission was denied on the directory open on fd.
       EBADF  fd is not a valid file descriptor.
Please indicate where the error message is coming from. Your running program? From the cluster?


Sorry this is not sgi but sge (sun grid engine) through which we have to submit our jobs. So what should I do. I can run the programs directly in the /export/home/user/. But when I submit with sge it is giving the previously mentioned error. Please help.
 
Old 08-23-2010, 12:37 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
The mount point of the home dir is probably different on the machine where the job is being run. Instead of explicitly using /export/home/user, can you try using "~" or perhaps $HOME?

A useful thing to put near the top of your batch script is the command:
Code:
env
Now, your log files will show information about the environment where the job is being run. This can be very helpful in debuging problems.

Evo2.
 
  


Reply



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
ssh could not chdir to home directory pccdrussell Linux - General 27 08-24-2012 10:30 AM
[SOLVED] 'Could not chdir to home directory /home/[user]: Permission denied' arashi256 Linux - Newbie 25 11-11-2011 09:29 AM
NFS problem: "Could not chdir to home directory /home/USER: Permission denied" sumanc Linux - Server 4 07-22-2010 04:12 PM
a small (low priority) doubt about /home and /export/home crisostomo_enrico Solaris / OpenSolaris 6 05-01-2009 02:34 AM
Exim4 undeliverable emails"failed to chdir to /home/paul" PK2K Linux - Software 0 05-15-2006 06:31 PM

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

All times are GMT -5. The time now is 04:34 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