how to Only FTP user in Ubuntu 12.04 ?
ping
songpingemail at gmail.com
Thu Oct 18 18:44:11 UTC 2012
On 10/18/2012 05:58 AM, Jkhatri wrote:
> On 10/18/2012 02:12 PM, Patrick Asselman wrote:
>> On 2012-10-18 09:21, Jkhatri wrote:
>>> Dear all,
>>>
>>> I've configured Ubuntu 12.04 LTS server as FTP server (vsftpd) for
>>> our local users, all works fine,,, but now its required to create some
>>> non-interactive user accounts who are not allowed to use SSH or local
>>> login, but only FTP access to their home directory.
>>>
>>> I've added user with -s option with /usr/sbin/nologin to disable
>>> shell access, but this user is not able to FTP as well, .... any
>>> solution.??? how to add users with only FTP access to their home
>>> directory >>>
>>>
>>>
>>> Warm Regards
>>
>> Why do you use something in /usr/sbin/ ?
>> Normally you would use /bin/false
>> In any case you need to add it to your /etc/shells otherwise it is not
>> recognised as something that is allowed to run.
>>
>> This thread seems helpful: http://ubuntuforums.org/showthread.php?t=79588
>>
>> Best regards,
>> Patrick Asselman
>>
>
> Thanks for you quick reply .. said link is for proftpd and I'm using
> vsftpd ...
>
> I've gone through your said solution... but situation is a particular
> ftp user is not able to login interactively (ssh or telnet ). thats ok
> but whenever he tries to ftp into server he gets "500 OOPS: vsftpd:
> refusing to run with writable root inside chroot()
> Login failed."
>
>
> --
>
> */
>
> Jatin Khatri
>
> RHCSA RHCE CCNA
>
> www.fedoraproject.org/wiki/Jatin <http://www.fedoraproject.org/wiki/Jatin>
>
> Phone (+91) 98250 20393
>
> Save Paper, Save Environment.**
> /*(Plant at least one tree in your life and nurture it !!!)*/
>
>
>
>
I think what you need is a "virtual user",
see here:
http://howto.gumph.org/content/setup-virtual-users-and-directories-in-vsftpd/
I haven't tested it yet.
what's your home folder for the ftp user and what does the "ls -l" on it
looks like?
More information about the ubuntu-users
mailing list