LinuxQuestions.org
Register a domain and help support LQ
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 05-22-2006, 04:21 PM   #1
loccom
LQ Newbie
 
Registered: Jan 2005
Posts: 15

Rep: Reputation: 0
disabling ftp per user


Hi

Did a search but could not find anything.

I would like to disable ftp for few a users. We are using cpanel and pure-ftp.

How do i disable ftp for specific users?

Many thanks
 
Old 05-22-2006, 04:35 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Do they need access to the server at all (i.e. ssh, telnet, etc)? Are you using a proxy?
 
Old 05-22-2006, 04:42 PM   #3
loccom
LQ Newbie
 
Registered: Jan 2005
Posts: 15

Original Poster
Rep: Reputation: 0
hi

All ssh is telnet is disabled (apart from su root)

Just need to disable certain accounts from ftp.
 
Old 05-22-2006, 04:43 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
If they don't ever need to login at the keyboard, you can go into /etc/passwd and change their shell to /bin/false (normally it is /bin/bash).
 
Old 05-22-2006, 05:17 PM   #5
loccom
LQ Newbie
 
Registered: Jan 2005
Posts: 15

Original Poster
Rep: Reputation: 0
hi

This is already done.

This doesnt stop ftp access though does it??

thanks
 
Old 05-22-2006, 05:20 PM   #6
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
It should if you comment out /bin/false from /etc/shells. Or you can do /sbin/nologin if other services require /bin/false to be in /etc/shells. Either way, if it's not in /etc/shells, then they shouldn't have access to anything...
 
Old 05-22-2006, 05:31 PM   #7
loccom
LQ Newbie
 
Registered: Jan 2005
Posts: 15

Original Poster
Rep: Reputation: 0
thanks i will give that a go
 
Old 05-23-2006, 03:23 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,519

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
You can edit /etc/ftpusers and add the users you don't want to use 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
disabling ftp stellarmarine1 Linux - Networking 2 09-30-2004 04:55 PM
disabling shells for ftp users chr15t0 Linux - General 4 08-09-2003 07:05 PM
disabling telnet anf ftp nelly_boy Solaris / OpenSolaris 4 08-01-2003 08:52 AM
user interaction disabling? dafri Linux - General 2 07-20-2003 06:39 AM
Apache user and disabling shell dai Linux - Security 2 07-02-2003 04:36 PM


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