LinuxQuestions.org
Help answer threads with 0 replies.
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 07-20-2006, 06:12 AM   #1
ciccio_pasticcio
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Rep: Reputation: 0
Add and limit Ftp user to only a folder




Hi all,

I have PROFTPD and I have to add and limit one user to only a folder.
This is what I do, but I receive 503 error...

# groupadd nuovogruppo
# useradd -d /path/to/myfolder/ -s /bin/false pippo > /bin/false 2>&1
# passwd pippo
Changing password for pippo.
New password: *****
Re-enter new password: *****
Password changed.
# usermod -G nuovogruppo pippo

I change user ang group for "myfolder"

I add to /etc/shells/ the string /bin/false

Then I go to fireftp and I login with pippo and password and I receive "530 Login incorrect".

Why???

Any help?

Thank you
 
Old 07-20-2006, 07:22 AM   #2
ciccio_pasticcio
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Original Poster
Rep: Reputation: 0
I see that if I type
# ftp 127.0.0.1
# Name: pippo
331: Password required for user pippo
I type password and I have "530 Login incorrect".

So I suppose that the problem is the password.
Is there a crypted system for password that I don't know.

Please I need an help!!

Luke
 
Old 07-20-2006, 08:26 AM   #3
asheesh.tyagi
Member
 
Registered: Apr 2005
Location: Delhi,India
Distribution: Red Hat
Posts: 35

Rep: Reputation: 15
you have set shell for this user to /bin/false. which means this user can never login to
system. this may be the cause that this user is not able to login through ftp.

To restrict users to their home diretories only, you can configure ftp server to
run in chrooted environment.

Last edited by asheesh.tyagi; 07-20-2006 at 08:28 AM.
 
Old 07-20-2006, 09:08 AM   #4
ciccio_pasticcio
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by asheesh.tyagi
you have set shell for this user to /bin/false. which means this user can never login to
system. this may be the cause that this user is not able to login through ftp.
I change it with /bin/bash, but I receive the same error...

Quote:
Originally Posted by asheesh.tyagi
To restrict users to their home diretories only, you can configure ftp server to
run in chrooted environment.
ok. But I'm still not able to add a user...
 
Old 07-20-2006, 09:48 AM   #5
ciccio_pasticcio
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Original Poster
Rep: Reputation: 0
I think I have understood.
PROFTPD uses /etc/shadow/ and I don't know how to crypt all that is in passwd to shadow...

I guess that this is the problem...
 
Old 07-21-2006, 07:36 AM   #6
asheesh.tyagi
Member
 
Registered: Apr 2005
Location: Delhi,India
Distribution: Red Hat
Posts: 35

Rep: Reputation: 15
I think you are not using shadow passwords. check your operating system's manual to find how to use shadow utility.
on fedora and red hat it can be configured through the command authconfig.
 
  


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
user/folder size limit dfcc Linux - Software 5 10-08-2005 06:56 AM
how to add ftp user. luqman Red Hat 1 02-24-2005 09:51 AM
how to not add .Trash-user folder to storage device poiuytrewq Linux - Newbie 4 12-29-2004 10:31 PM
How can i Limit FTP speed for any particular USER ??? saeed Linux - Networking 10 08-02-2004 06:13 AM
How can I limit my ftp user to just one directory mtn356 Linux - Software 1 10-28-2003 03:45 PM


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