LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-26-2010, 02:30 PM   #1
mustava
LQ Newbie
 
Registered: Aug 2010
Location: North West England
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
Question File transfer from fedora desktop to ubuntu server


Hi all,
I have a ubuntu server 10.04 with LAMP installed.
I also have ubuntu 10.10 on a laptop and can copy files to the server fine. To keep my website uptodate, I usually use Filezilla without any problems.
I have just installed Fedora 14 on an old desktop and set up "my stall" ok.
The problem is that I cannot copy any files from Ferdoa to the server due to:-
Response: 550 Permission denied.
Error: Critical file transfer error
I have tried to change the directory on the server "/var/www" using chmod -R 775* and chmod -R 777*, but it makes no difference, the file transfer still fails.
Any help would be appreciated...

Must!
 
Old 11-27-2010, 10:23 AM   #2
Kenichi Kato
Member
 
Registered: Jun 2007
Location: Asia
Distribution: Ubuntu, Fedora, CentOS & TCL
Posts: 62
Blog Entries: 1

Rep: Reputation: 16
Quote:
Originally Posted by mustava View Post
Hi all,
I have a ubuntu server 10.04 with LAMP installed.
I also have ubuntu 10.10 on a laptop and can copy files to the server fine. To keep my website uptodate, I usually use Filezilla without any problems.
I have just installed Fedora 14 on an old desktop and set up "my stall" ok.
The problem is that I cannot copy any files from Ferdoa to the server due to:-
Response: 550 Permission denied.
Error: Critical file transfer error
I have tried to change the directory on the server "/var/www" using chmod -R 775* and chmod -R 777*, but it makes no difference, the file transfer still fails.
Any help would be appreciated...

Must!
On Fedora side, did you try disabling SE Linux?
 
Old 11-27-2010, 12:22 PM   #3
xiaodown
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Redhat, Centos, Fedora
Posts: 37

Rep: Reputation: 15
(this is all assuming your trouble is from ubuntu desktop to fedora server...)

Fedora and many other distros today use a chrooted environment for ftp by default, as well as disabling root logins.

If you're logging into them as a normal user, you may be chrooted into your user's home dir - solutions may include setting the homedir of the user you're logging into (in /etc/password) to your web root.

You may also want to check selinux as the other poster suggested: type getenforce to see what your selinux setting is, and if it's set to Enabled, you can type setenforce permissive to change it to permissive and try again. If selinux is the problem, you can disable it (in /etc/sysconfig/selinux), but try installing setroubleshoot and then checking /var/log/messages for selinux alerts - it will tell you what command to run to get additional information about the issue.

Alternatively, if you're going linux to linux, don't use FTP, get comfortable with using scp:
Code:
scp /path/to/localfiles user@remote.host:/path/to/put/files/in/
i.e.
Code:
scp ./style.css webuser@mywebserver.com:/var/www/html/stylesheets/
scp follows ssh rules, i.e. if you can remote log in as root via ssh, you can do it via scp too. FTP isn't encrypted; scp is.

Last edited by xiaodown; 11-27-2010 at 12:27 PM.
 
Old 11-28-2010, 06:23 AM   #4
mustava
LQ Newbie
 
Registered: Aug 2010
Location: North West England
Distribution: Ubuntu
Posts: 2

Original Poster
Rep: Reputation: 0
Gee thanks for the suggestions, however I am still a mere novice at Linux, and struggling to understand some of the instructions you have made.

Just to put the picture straight,
1. I have a LAMP server running on ubuntu 10.04.
2. I have a laptop running ubuntu 10.10 desktop
3. I have an old pc which I have just installed Fedora 14 desktop.

The main reason for installing Fedora, is that it installed "just like that", where as triny to install ubuntu 9.10 onwards, results in a black screen and "out of range" displayed. No I can the boot "words" and add "nomodeset xdisplay-vesa" and it runs live ok, but as soon as I try it install it, I'm back to "out of range" again, so after lots of web searching I gave up!!! and installed Fedora. Any further info on this problem would be appreciated.......

I assume that the problem lies with the Fedora desktop, as I have full "control" with my lappy.

The SCP sounds interesting but I don't understand it yet. Is this a GUI app or cli?

I also tried "getenforce" but it only responded with "Enforcing". that's it.

I also typed "setenforce permissive" and received "Failed".

Thanks again....Must.
 
Old 11-29-2010, 08:47 AM   #5
xiaodown
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Redhat, Centos, Fedora
Posts: 37

Rep: Reputation: 15
Ok, so:

SCP is a command line utility, yes. It works like this:
Code:
scp somefile somewhere-else:somefile
so, like:
scp /path/to/some/file [user@]host:/path/to/put/file
the user@ is optional. Here's a real usage example:

Code:
[user@host1 ~]$ touch test-file
[user@host1 ~]$ ls -l test-file
-rw-r--r-- 1 user domain_users 0 Nov 29 09:35 test-file
[user@host1 ~]$ scp test-file xiao@host2.net:/home/xiao/test-file
xiao@host2.net's password:
test-file                                     100%    0     0.0KB/s   00:00
[user@host1 ~]$
[user@host1 ~]$ ssh xiao@host2.net "ls -l test-file"
xiao@host2.net's password:
-rw-r--r-- 1 xiao xiao 0 Nov 29 09:36 test-file
[user@host1 ~]$
In the above example:
1.) "touch" a file (create a blank file)
2.) look at it, using ls -l
3.) copy the file, from current directory to user xiao at host2 in /home/xiao/
4.) enter password, file copies
5.) ssh to host2 and look at the file, to confirm it's there


As for selinux, you have to be root when you change selinux from Enforcing to Permissive, and also, I think that Enforcing and Permissive are case sensitive.

Code:
[user@host ~]$ setenforce Enforcing
setenforce:  setenforce() failed
[user@host ~]$ sudo su -
[root@host ~]# setenforce Enforcing
[root@host ~]# getenforce
Enforcing
[root@host ~]# setenforce Permissive
[root@host ~]# getenforce
Permissive
[root@host ~]#
If you can change it to Permissive, and then try again, maybe you can find out what's going on. You can also look in /var/log/messages to see if there are any SELinux alerts, that'll tell you if selinux is the issue. You should think about installing setroubleshoot-server to help you diagnose SELinux problems.

Code:
[root@host ~]# yum info setroubleshoot-server
Loaded plugins: rhnplugin, security
global-el5                                                            | 2.1 kB     00:00
openafs-el5                                                           | 2.1 kB     00:00
Available Packages
Name       : setroubleshoot-server
Arch       : noarch
Version    : 2.0.5
Release    : 5.el5
Size       : 1.2 M
Repo       : rhel-x86_64-server-5
Summary    : SELinux troubleshoot server
License    : GPLv2+
Description: Provides tools to help diagnose SELinux problems. When AVC messages
           : are generated an alert can be generated that will give information
           : about the problem and help track its resolution. Alerts can be configured
           : to user preference. The same tools can be run on existing log files.
Anyway, love and learn scp, it's very useful.
 
  


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
How to build home Ubuntu 9.10 file & remote desktop server? Puolimieli_ Linux - Server 2 01-09-2010 05:32 PM
file transfer server required ltodd2 Linux - Software 3 06-19-2009 03:48 AM
"Why cant i transfer file form ubuntu 7.04 to windows xp? sean_yano Linux - Newbie 6 09-12-2007 07:57 AM
Secure file transfer server - tools ? taphagreg Linux - Security 1 03-19-2007 10:52 PM
a simple file transfer server.. sachitha Programming 2 09-09-2006 08:08 PM

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

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