LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-02-2008, 06:56 PM   #1
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Rep: Reputation: 37
how to limit ftp access to root and one username only?


Hi Keen Buddies,

How can I limit ftp access to root and my username only.?

thanks
 
Old 12-02-2008, 07:01 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What ftp server do you use? Are you sure you want to be sending root's password around in plaintext? Are you only using this on the lan?
 
Old 12-02-2008, 07:12 PM   #3
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by billymayday View Post
What ftp server do you use? Are you sure you want to be sending root's password around in plaintext? Are you only using this on the lan?
I am using RHEL4...vsftpd.

I have stand alone website I hosted it in RHEL4 I want to access in FTP so that anywhere I can edit it. I have 3rd party partner I want to block them in accessing my site He has created 5 username I don't want them to access on their username inside my server coz their contract is finished.

thx
 
Old 12-02-2008, 07:15 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have a look in /etc/vsftpd and read the contents of user_list.

Basically, you should list the users who should have access, and change

userlist_deny=YES

to

userlist_deny=NO

in vsftpd.conf
 
Old 12-02-2008, 07:19 PM   #5
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by billymayday View Post
Have a look in /etc/vsftpd and read the contents of user_list.

Basically, you should list the users who should have access, and change

userlist_deny=YES

to

userlist_deny=NO

in vsftpd.conf
if like this?

#vi /etc/vsftpd.user_list
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

where can I put userlist_deny=YES in front of every user?

games userlist_deny = YES
adm userlist_deny = YES

like that?

thx
 
Old 12-02-2008, 07:28 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
userlist_deny is in vsftpd.conf
 
  


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
ftp : access denied to some files / directories as root XavierX Linux - Software 2 07-18-2006 06:01 AM
ftp using root access Santosh_d Linux - Networking 1 04-02-2004 08:07 AM
GFTP allowing Root access to an FTP user scottpioso Red Hat 2 01-07-2004 06:20 PM
how to give root ftp access blaha Linux - Software 3 05-30-2003 09:09 PM
FTP access using root account - restrictions alaerte Linux - Software 7 04-03-2003 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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