LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2012, 12:58 AM   #1
pauliolio
LQ Newbie
 
Registered: Jan 2012
Posts: 7

Rep: Reputation: Disabled
pure-ftpd root login


Hi,

First off, slight miss-naming of the thread - I should have called it 'pure-ftpd log in with root access' or something similar.

I know people are going to say I shouldn't do it, but I have no choice as far as I know because I HAVE to use a bit of software that requires it.

I need to be able to log into a server as a user that has permissions to read & write any files in any directory no matter what or where, and as far as my very limited linux knowledge goes that means root.

Can someone please tell me how to set up pure-ftp to allow this?
I can log in with the user name 'root', I can go to any directory I want, but I can't remove or add files.

I've read through every file I can find telling me how to set it up, but none of them cover this. Yes I know there's a good reason why, but...

Anyone, please?

Last edited by pauliolio; 03-12-2012 at 01:04 AM.
 
Old 03-12-2012, 04:31 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,767

Rep: Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843
Hi,
Quote:
Can someone please tell me how to set up pure-ftp to allow this?
You should start pure-ftpd using a "-u0" option.

Sorry but I have to say this:
If you want to transfer files as root (not recommended for various reasons), it's better to use scp of sftp, so at least your login details are transmitted encrypted

Regards
 
Old 03-12-2012, 04:52 AM   #3
pauliolio
LQ Newbie
 
Registered: Jan 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Many thanks Bathory

But I have no choice - The other program I need to use doesn't use scp or sftp - It's got to be FTP.
I need to use FTP, and I need to be able to go to several completely different areas of the file system with different user/group ownership/permissions, and be able to create/modify files & directories.


In the config file I already set the minimum uid to 0 and this does not let me connect as root with root privileges though. Does -u0 do things differently?

What I really don't get is why logging in as root doesn't log me in as 'root'?
 
Old 03-12-2012, 05:15 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,767

Rep: Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843
Quote:
In the config file I already set the minimum uid to 0 and this does not let me connect as root with root privileges though. Does -u0 do things differently?
No it's the same thing (0 is the minimum allowed uid)


Quote:
What I really don't get is why logging in as root doesn't log me in as 'root'?
What is your distro? If it's an RHEL based, it could be SELinux, preventing certain actions through the ftp protocol
 
Old 03-12-2012, 05:36 AM   #5
pauliolio
LQ Newbie
 
Registered: Jan 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Bathory,

Many thanks - It's so nice to meet someone that doesn't stop at 'Don't'

The server's running Centos 5.6 - Which is a rhel cookout.

There's an @SELinux file in the /etc/sysconfig folder, bu there're only 2 uncommented-out lines in there.
The first says that selinux is disabled, and the other that the selinuxtype is targeted.

One of the things that I have learned about Centos though is that just like any other system, just because you find a line in a config file that says something is switched of, don't assume that it is because this may not be the actual config file that the system's using.

Looking into selinux atm.
 
Old 03-12-2012, 06:20 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,767

Rep: Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843Reputation: 1843
Quote:
There's an @SELinux file in the /etc/sysconfig folder, bu there're only 2 uncommented-out lines in there.
The first says that selinux is disabled, and the other that the selinuxtype is targeted.
I guess it's already disabled, but you can verify it, running
Code:
sestatus
In this case check the various logfiles to see why you can't write as root through ftp
 
  


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
pure-ftpd and root login szymon Linux - Software 6 03-13-2012 12:28 PM
pure-ftpd 530: Login Failed wizzmaster Linux - Server 7 01-20-2009 09:04 PM
pure-ftpd login fails! i.you Linux - Software 1 12-03-2007 05:04 PM
pure-ftpd root directory rootking Linux - Server 4 08-17-2007 09:30 PM
pure ftpd running - can't login simplysi Linux - Newbie 4 03-05-2006 03:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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