Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
Like Tree1Likes
Hello? there. Currently I joined Linux Forum and practiced the installation of SLES 10 with SP3 on VMware. <Information> [PC] SAMSUMG, Core i5, 64-bit, 8 RAM, Winodws 7 Home Premium ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2012
    Posts
    11

    Question [SLES10 w/ SP3]vsftp root account


    Hello? there.
    Currently I joined Linux Forum and practiced the installation of SLES 10 with SP3 on VMware.

    <Information>
    [PC] SAMSUMG, Core i5, 64-bit, 8 RAM, Winodws 7 Home Premium Edition.
    [VMware] 8.0.0-build 471780
    [SLES] SLES-10-SP3-DVD-x86_64-GM-DVD1.iso 2,959,670KB, SLES-10-SP3-DVD-x86_64-GM-DVD2.iso 3,162,178KB. It downloaded via suse homepage
    <Problem>
    I have to ftp some software to SLES10. And I almost closed answer how to enable ftp(vsftp) via the post by
    srikrishna097. Its tile [FTP server]

    I followed the thread of srikrishna097's post and finally can ftp to sles user account.
    But trying to ftp as "root" account to sles is not working.

    Anyone who know this issue please guide me to ftp(vsftp) to sles by root account.

    Many Thanks!!!

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    modify these two files and comment out the root entry (insert a '#' before 'root'):
    Code:
    /etc/vsftpd/ftpusers
    /etc/vsftpd/user_list
    princox likes this.

  3. #3
    Just Joined!
    Join Date
    Jan 2012
    Posts
    11
    Thanks for answering.
    I tried to do it. But the all files are no configuration as below;
    I noticed all two as [New File]
    Attachment 4019
    Attachment 4020

    But only the vim /etc/vsftpd.conf has contents as below;
    Attachment 4021

    Many Thanks!
    Jeff

  4. #4
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Hi,

    I could not open your attachments. Are you saying that the two config files I mentioned do not exist on your system?

    If for some reason, you cannot use/edit those files, you could try setting the following in your vsftpd.conf file:
    Code:
    userlist_enable=NO
    You'd need to restart the server after that change.

  5. #5
    Just Joined!
    Join Date
    Jan 2012
    Posts
    11
    Hi, atreyu,
    Thanks for answering me.
    First I attached the capture again.
    2012-01-12_000403.jpg

    I will try to do it again.... but vim /etc/vsftpd.conf has not included "userlist_enable=NO".
    I also very curious linux that i installed has not file /etc/vsftpd/ftpusers
    /etc/vsftpd/user_list you mentioned.

    Jeff

  6. #6
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    okay, what about these alternative files?
    Code:
    /etc/vsftpd.ftpusers
    /etc/vsftpd.user_list
    Do these files exist and, if so, can you comment out root in them?

    I don't understand what your said about userlist_enable=NO. Can you just show the output of the following command - it will traverse the entire /etc directory looking for files with "ftp" in the file or directory name:

    Code:
    find /etc/ -type f -type f -name '*ftp*'
    Last edited by atreyu; 01-11-2012 at 10:51 PM. Reason: fixed code tags

  7. #7
    Just Joined!
    Join Date
    Jan 2012
    Posts
    11
    Hi, atreyu.
    Thanks!!! first, i pasted the result of "find /etc/ -type f -type f -name '*ftp*'".
    ===
    linux-hzgc:~ # find /etc/ -type f -type f -name '*ftp*'
    /etc/ftpusers
    /etc/pam.d/vsftpd
    /etc/pam.d/pure-ftpd
    /etc/xinetd.d/vsftpd
    /etc/xinetd.d/pure-ftpd
    /etc/vsftpd.conf
    /etc/apparmor/profiles/extras/usr.sbin.pure-ftpd
    /etc/init.d/vsftpd
    /etc/init.d/pure-ftpd
    /etc/logrotate.d/vsftpd
    /etc/openldap/schema/pureftpd.schema
    /etc/pure-ftpd/pure-ftpd.conf
    linux-hzgc:~ #
    ===

    Second, when i typed "vim /etc/vsftpd/conf" I could not see "userlist_enable=NO". ....

    Last, I also typed "vim /etc/vsftpd.ftpusers" and "vim /etc/vsftpd.user_list", something text file opened and there are nothing...

    I'm just a beginner to do in Linux world.
    Thanks alot!!!

    Jeff

  8. #8
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    I see you have pure-ftpd installed as well. That would conflict (if configured to run on the same port as vsftpd - 21, which it probably is). Make sure that is not running:

    Code:
    /etc/init.d/pure-ftpd stop
    also, i see you have /etc/xinetd.d/vsftpd and /etc/init.d/vsftpd. The latter one makes sense to me, the former one does not. It would seem to me that they'd conflict also. Just be sure that xinetd.d (a network daemon that controls various other network daemons) is not running, too:
    Code:
    /etc/init.d/xinetd stop
    Now let's hold off on trying to configure root to log in or anthing like that and just make sure we've got vsftpd running. Run this to stop and start it:
    Code:
    /etc/init.d/vsftpd stop
    /etc/init.d/vsftpd start
    Do you get any error messages? Can you try to ftp locally (using a regular user account)? e.g.:

    Code:
    ftp localhost
    What errors do you get, if any?

    If you get no errors, try to ftp in as root. Errors?

  9. #9
    Just Joined!
    Join Date
    Jan 2012
    Posts
    11
    Hello? atreyu!!!!! haha
    First of all, I pasted what I've done thru your comment.
    (I donno how to make it looks cool such as the Code
    ===
    linux-hzgc:~ # /etc/init.d/pure-ftpd stop
    Shutting down pure-ftpd done
    linux-hzgc:~ # /etc/init.d/xinetd stop
    Shutting down xinetd: (waiting for all children to terminate) done
    linux-hzgc:~ # /etc/init.d/vsftpd stop
    Shutting down vsftpd done
    linux-hzgc:~ # /etc/init.d/vsftpd start
    Starting vsftpd done
    linux-hzgc:~ # find /etc/ -type f -type f -name '*ftp*'
    /etc/ftpusers
    /etc/pam.d/vsftpd
    /etc/pam.d/pure-ftpd
    /etc/xinetd.d/vsftpd
    /etc/xinetd.d/pure-ftpd
    /etc/vsftpd.conf
    /etc/apparmor/profiles/extras/usr.sbin.pure-ftpd
    /etc/init.d/vsftpd
    /etc/init.d/pure-ftpd
    /etc/logrotate.d/vsftpd
    /etc/openldap/schema/pureftpd.schema
    /etc/pure-ftpd/pure-ftpd.conf
    linux-hzgc:~ #
    ===
    And I comment #root from /etc/ftpusers. It totally got hint you replied at first.
    Finally hopped in linux via ftp user and root. WOW!!!

    Really Thanks!!!
    Jeff
    I really appreciated it.
    vim_ftpusers.JPG

  10. #10
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Glad you got it working. Now that it is working, I feel obliged to tell you: using ftp is not terribly secure. If security is a concern, you should look at:

    1. Replacing ftp with sftp (Secure FTP, part of the OpenSSH suite and likely already on your system).

    2. Replacing root with regular user for doing the ftp jobs

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •