LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-28-2010, 02:21 PM   #1
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,363

Rep: Reputation: 135Reputation: 135
550:Failed to change directory


My directory structure is

/3dmodels/work/work

While I am changing to last work directory it's giving th error as:

550 Failed to change directory.

I have tried selinux issues,permission issues, anon issues,chroot issues but no solution.

Is there anything to do more than these issue ?

I am logging in as localuser. I can browse all the contents of 2nd work directory except the last work directory.

But in internet browser all works well,I can change into the last work directory and can also browse the directory but unable in command line.

why ?

Last edited by divyashree; 09-28-2010 at 02:42 PM.
 
Old 09-28-2010, 03:57 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,821

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Hi,

What ftp server you're using?
And what is the output of:
Code:
ls -ld /3dmodels/work/work
 
Old 09-28-2010, 08:13 PM   #3
Hi_This_is_Dev
Member
 
Registered: May 2009
Location: India
Distribution: On my PC I use RHEL, at office AIX, Solaris, HP-UX, RHEL.
Posts: 254

Rep: Reputation: 18
Quote:
Originally Posted by divyashree View Post
My directory structure is

/3dmodels/work/work

While I am changing to last work directory it's giving th error as:

550 Failed to change directory.

Try this:

Code:
cd /3dmodels/work
chmod 755 work
cd work
or

Code:
chmod 755 /3dmodels/work/work
cd /3dmodels/work/work
If neither works for you then check and post here these pieces of information:

Who is the owner of the last directory?

Is it same whose login name you are using?

Check directory permissions by executing the command:

Code:
ls -ld  /3dmodels/work/work
or

Code:
cd /3dmodels/work/

ls -ld work
Also try this:

Code:
cd /3dmodels/work
getfacl work

Check the ACL and then set the ACL as given here:

Code:
setfacl -m u:UserName:rwx work
Post your outputs here along with the user name you are using.
 
Old 09-29-2010, 01:14 AM   #4
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,363

Original Poster
Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by bathory View Post
Hi,

What ftp server you're using?
And what is the output of:
Code:
ls -ld /3dmodels/work/work
I am using vsftpd on CentOS 5.4 and the output is :

drwxrwxr-x+ 24 3da users 4096 Sep 11 13:09 /srv/backuppart2/3DModels/Neeraj Backup Folder/work/work /
 
Old 09-29-2010, 01:53 AM   #5
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,363

Original Poster
Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by Hi_This_is_Dev View Post
Try this:

Code:
cd /3dmodels/work
chmod 755 work
cd work
or

Code:
chmod 755 /3dmodels/work/work
cd /3dmodels/work/work
If neither works for you then check and post here these pieces of information:

Who is the owner of the last directory?

Is it same whose login name you are using?

Check directory permissions by executing the command:

Code:
ls -ld  /3dmodels/work/work
or

Code:
cd /3dmodels/work/

ls -ld work
Also try this:

Code:
cd /3dmodels/work
getfacl work

Check the ACL and then set the ACL as given here:

Code:
setfacl -m u:UserName:rwx work
Post your outputs here along with the user name you are using.

I have tried all of these .
 
Old 09-29-2010, 02:35 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,821

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Quote:
Originally Posted by divyashree View Post
I am using vsftpd on CentOS 5.4 and the output is :

drwxrwxr-x+ 24 3da users 4096 Sep 11 13:09 /srv/backuppart2/3DModels/Neeraj Backup Folder/work/work /
Hi,

Is /3dmodels/work/work a symlink to /srv/backuppart2/3DModels/Neeraj Backup Folder/work/work?
Symlinks do not work with vsftpd. You should use "mount --bind" if yu want to access a directory outside the user's homedir.
 
Old 09-29-2010, 02:47 AM   #7
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,363

Original Poster
Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by bathory View Post
Hi,

Is /3dmodels/work/work a symlink to /srv/backuppart2/3DModels/Neeraj Backup Folder/work/work?
Symlinks do not work with vsftpd. You should use "mount --bind" if yu want to access a directory outside the user's homedir.
Sorry this is a not a symlink, The original directory is /srv/backuppart2/3DModels/Neeraj Backup Folder/work/work .
In shortcut I told /3dmodels/work/work which doesnot exist.
 
Old 09-29-2010, 03:32 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,821

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
From the "+" sign at the end of the directory permissions, looks like you use an acl.
Are you sure about the acl you're using for that directory? What gives
Code:
getfacl /srv/backuppart2/3DModels/Neeraj Backup Folder/work/work
Or can you try to remove acls
Code:
setfacl  --remove-all /srv/backuppart2/3DModels/Neeraj Backup Folder/work/work
and see if it works
 
Old 09-29-2010, 05:26 AM   #9
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,363

Original Poster
Rep: Reputation: 135Reputation: 135
Ohh I am very very sorry to say this, The name of the last work folder had a space at last position. So it was my mistake to spell the name of the folder correctly. It was work\ / and now i moved it to work/ .

And thank you all for all your efforts.
 
Old 09-29-2010, 09:55 AM   #10
Hi_This_is_Dev
Member
 
Registered: May 2009
Location: India
Distribution: On my PC I use RHEL, at office AIX, Solaris, HP-UX, RHEL.
Posts: 254

Rep: Reputation: 18
Quote:
Originally Posted by divyashree View Post
Ohh I am very very sorry to say this, The name of the last work folder had a space at last position. So it was my mistake to spell the name of the folder correctly. It was work\ / and now i moved it to work/ .

And thank you all for all your efforts.
It was a good morning today.
My eyes were feeling heavy
as I had come from office
having worked in night shift.
I wanted to do some stuffs
before I would take a rest.
I saw your question
and wanted to see what could be bugging.
I started my Virtual Machine,
typed those commands to show you
how you
would exactly execute them
on your PC.
Oh just to find out...
it was a white space thing that
was bugging you...!
Oh, well! Yesterday (I think) my colleague was executing
an AbInitio (ksh) script
and it failed over and again.
It was a white space thing
that was consuming
the black background
inside an array of illogical stuffs.
 
Old 09-29-2010, 12:42 PM   #11
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,363

Original Poster
Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by Hi_This_is_Dev View Post
It was a good morning today.
My eyes were feeling heavy
as I had come from office
having worked in night shift.
I wanted to do some stuffs
before I would take a rest.
I saw your question
and wanted to see what could be bugging.
I started my Virtual Machine,
typed those commands to show you
how you
would exactly execute them
on your PC.
Oh just to find out...
it was a white space thing that
was bugging you...!
Oh, well! Yesterday (I think) my colleague was executing
an AbInitio (ksh) script
and it failed over and again.
It was a white space thing
that was consuming
the black background
inside an array of illogical stuffs.
Nice , actually the white space was not created by me,it was create by a client pc, who is accessing the ftp server through filezilla and said unable to access .
 
  


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
vsftp 550 failed to change directory? swatward Linux - Software 2 08-25-2010 07:10 PM
repomd.xml [errno:4] 550 failed to change the directory your_shadow03 Linux - Newbie 1 08-11-2009 01:01 AM
Errno ftp error] 550 Failed to change directory Baslingappa.Bhujang LQ Suggestions & Feedback 2 07-30-2008 09:12 AM
vsftp - 550 Failed to change directory mayankh Linux - Server 3 06-24-2008 10:52 PM
FTP : failed to change directory 550 vijit Linux - Networking 2 04-08-2008 03:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration