LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 03-21-2008, 10:09 PM   #1
chualk
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Rep: Reputation: 0
Not able to create directory, upload/delete files from another network


Hi,

Previously my workstation is on the same network with the servers. Recently it has been changed to join another network and only routed to the servers recognized via user id through firewall.

The servers are DB and Web server, both running with telnet, vsftp and wu-ftp. Web server also has apache running. Weird thing is, i am able to create directory, upload and delete file at my DB server, but not on the Web server.

Have compared the ftpaccess, vsftpd.conf and iptables of both servers. All are identical.
What has gone wrong?
 
Old 03-23-2008, 05:01 AM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Quote:
Originally Posted by chualk View Post
Hi,

Previously my workstation is on the same network with the servers. Recently it has been changed to join another network and only routed to the servers recognized via user id through firewall.

The servers are DB and Web server, both running with telnet, vsftp and wu-ftp. Web server also has apache running. Weird thing is, i am able to create directory, upload and delete file at my DB server, but not on the Web server.

Have compared the ftpaccess, vsftpd.conf and iptables of both servers. All are identical.
What has gone wrong?
Hi,

You'll need to post the error message that you receive - there are too many different things here to be able to guess which of them isn't working!
 
Old 03-24-2008, 06:11 AM   #3
chualk
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hob View Post
Hi,

You'll need to post the error message that you receive - there are too many different things here to be able to guess which of them isn't working!
Hi,

The error message is 550 permission denied.

If i upload files from DB server to Webserver which is on the same network, there is no problem.
If i upload files from my workstation to webserver, using the same user id, 550 permission denied hits. The only difference is we sit on different network. That leads me to the conclusion that my webserver only allow upload from the workstations/servers of same network.

thanks.
 
Old 03-24-2008, 10:02 AM   #4
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Quote:
Originally Posted by chualk View Post
Hi,

The error message is 550 permission denied.

If i upload files from DB server to Webserver which is on the same network, there is no problem.
If i upload files from my workstation to webserver, using the same user id, 550 permission denied hits. The only difference is we sit on different network. That leads me to the conclusion that my webserver only allow upload from the workstations/servers of same network.

thanks.
OK - that's a server response, so the issue is likely to be the configuration of the specific service that you are trying to access, and you've already successfully eliminated the possibilities of firewall blocking, invalid username/password credentials, and security permissions, by proving it works for clients on the same network.

Since this is FTP, you also need to double-check the various client settings for any oddness (passive mode, proxies etc.), and ensure that you have identical settings on the working client and the blocked one, before you look at the service config file itself. I hate FTP .

Last edited by hob; 03-24-2008 at 10:04 AM.
 
Old 03-25-2008, 08:31 PM   #5
chualk
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Original Poster
Rep: Reputation: 0
FTP Service Config Checked.

Quote:
Originally Posted by hob View Post
OK - that's a server response, so the issue is likely to be the configuration of the specific service that you are trying to access, and you've already successfully eliminated the possibilities of firewall blocking, invalid username/password credentials, and security permissions, by proving it works for clients on the same network.

Since this is FTP, you also need to double-check the various client settings for any oddness (passive mode, proxies etc.), and ensure that you have identical settings on the working client and the blocked one, before you look at the service config file itself. I hate FTP .
I have checked the ftp service config file, both ftpaccess and vsftpd.conf. Both are identical. I wonder could it be other services like apache http, linux firewall etc that is causing this?

Thanks.
 
Old 03-26-2008, 02:01 PM   #6
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Quote:
Originally Posted by chualk View Post
I have checked the ftp service config file, both ftpaccess and vsftpd.conf. Both are identical. I wonder could it be other services like apache http, linux firewall etc that is causing this?

Thanks.
It is unlikely - unless you are connecting via a proxy service, this is a response from the FTP service itself to indicate that it thinks that your username/client should not be permitted access to the requested item.

You do need to double-check the client settings, and possibly do a connection on the failing client with the logging on, so that you know exactly what the client is saying to the service, and at what point the service decides to reject the request.
 
Old 03-26-2008, 08:40 PM   #7
chualk
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Problem Solved

Quote:
Originally Posted by chualk View Post
Hi,

The error message is 550 permission denied.

If i upload files from DB server to Webserver which is on the same network, there is no problem.
If i upload files from my workstation to webserver, using the same user id, 550 permission denied hits. The only difference is we sit on different network. That leads me to the conclusion that my webserver only allow upload from the workstations/servers of same network.

thanks.
By having chmod -R 775 <Directory name>, i am able to do the upload now.
Looks like chmod gou +rwx <directory name> is different from the above.
 
  


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
Can't upload files to home directory with vsftpd Evil Otto Linux - Server 6 12-07-2010 01:05 PM
unable to create or delete files on fat32 partition Barrett Linux - Newbie 9 12-21-2005 04:19 PM
how to make that ftp user could upload files, but not to delete! spotass Linux - Newbie 4 06-12-2004 06:11 PM
log what files users create, delete etc. Goma_2 Linux - General 3 09-26-2003 06:12 PM
How can I delete a directory and its files? OrganicX Linux - General 6 09-01-2002 04:25 AM

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

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