LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-25-2004, 11:23 AM   #1
oily_rags
Member
 
Registered: Sep 2004
Posts: 128

Rep: Reputation: 15
VSFTPD, user permissions


Response: 200 PORT command successful. Consider using PASV.
Command: STOR (royksopp)-remind_me.mpg
Response: 550 Permission denied.

Hello, I am trying to allow a user to be able to send files to my server through ftp. As a test he sent an mp3 file but got the above message. He is a regular user, I created an account through yast2 user settings. How do I add this specific permission. Is it done with users and groups in yast, or do I have to edit the vsftpd text file and add settings to it? Thanks
 
Old 09-25-2004, 01:01 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Does he have permission to write to that directory?
 
Old 09-25-2004, 01:09 PM   #3
oily_rags
Member
 
Registered: Sep 2004
Posts: 128

Original Poster
Rep: Reputation: 15
I assume so, it's his home directory.
 
Old 09-25-2004, 01:10 PM   #4
oily_rags
Member
 
Registered: Sep 2004
Posts: 128

Original Poster
Rep: Reputation: 15
I forgot to add he's a local user account, he could login on my machine if he were here at my computer
 
Old 09-25-2004, 01:32 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
can you post the output from:
ls -l /path/to/users/home

and a copy of your vsftpd config file.
 
Old 09-25-2004, 01:47 PM   #6
oily_rags
Member
 
Registered: Sep 2004
Posts: 128

Original Poster
Rep: Reputation: 15
ls -l /home/kraftka
total 718713
drwxr-xr-x 2 kraftka users 48 2004-09-17 18:38 bin
drwxr-xr-x 2 kraftka users 80 2004-09-17 18:38 Documents
-rw-r--r-- 1 root root 735244288 2004-09-17 19:19 pbs.avi
drwxr-xr-x 2 kraftka users 80 2004-09-17 18:38 public_html


# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# If you do not change anything here you will have a minimum setup for an
# anonymus FTP server.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.

# General Settings
#
# Uncomment this to enable any form of FTP write command.
#
#write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
#
dirmessage_enable=YES
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#
#nopriv_user=ftpsecure
#
# You may fully customise the login banner string:
#
#ftpd_banner="Welcome to FOOBAR FTP service."
#
# You may activate th
 
Old 09-25-2004, 01:49 PM   #7
oily_rags
Member
 
Registered: Sep 2004
Posts: 128

Original Poster
Rep: Reputation: 15
"-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#
#ls_recurse_enable=YES
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#
#deny_email_enable=YES
#
# (default follows)
#
#banned_email_file=/etc/vsftpd.banned_emails
#
 
Old 09-25-2004, 01:50 PM   #8
oily_rags
Member
 
Registered: Sep 2004
Posts: 128

Original Poster
Rep: Reputation: 15
# If enabled, all user and group information in
# directory listings will be displayed as "ftp".
#
#hide_ids=YES

# Local FTP user Settings
#
# Uncomment this to allow local users to log in.
#
local_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
#
#local_umask=022
#
# Uncomment to put local users in a chroot() jail in their home directory
# after login.
#
chroot_local_user=YES
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#
#chroot_list_enable=YES
#
# (default follows)
#
#chroot_list_file=/etc/vsftpd.chroot_list
#
# The maximum data transfer rate permitted, in bytes per second, for
# local authenticated users. The default is 0 (unlimited).
#
#local_max_rate=7200


# Anonymus FTP user Settings
#
# Allow anonymous FTP?
#
anonymous_enable=YES
#
# Anonymous users will only
 
Old 09-25-2004, 01:51 PM   #9
oily_rags
Member
 
Registered: Sep 2004
Posts: 128

Original Poster
Rep: Reputation: 15
anon_world_readable_only=YES
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#
#anon_upload_enable=YES
#
# Default umask for anonymus users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
#
#anon_umask=022
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#
#anon_mkdir_write_enable=YES
#
# Uncomment this to enable anonymus FTP users to perform other write operations
# like deletion and renaming.
#
#anon_other_write_enable=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#
#chown_uploads=YES
#chown_username=whoever
#
# The maximum data transfer rate permitted, in bytes per second, for anonymous
# authenticated users. The default is 0 (unlimited).
#
#anon_max_rate=7200
 
Old 09-25-2004, 04:15 PM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You will need to uncomment:
write_enable=YES

Then restart vsftpd.
 
Old 09-25-2004, 04:24 PM   #11
oily_rags
Member
 
Registered: Sep 2004
Posts: 128

Original Poster
Rep: Reputation: 15
Oh, thanks david ross. That makes sense. Thanks again
 
  


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
VSFTPD:How to have vsftpd ask for anon user to "send email for password"? dmurray8888 Linux - Networking 1 08-31-2008 06:04 PM
VSFTPD + permissions streptococcus Linux - Networking 4 04-11-2005 08:48 AM
vsftpd - permissions foxbat77 Linux - Networking 1 09-04-2004 03:28 AM
VSFTPD Permissions R4z0r Linux - Security 2 08-21-2004 11:27 AM
how do i set vsftpd user permissions USMC__KopfJager Linux - Security 5 12-29-2003 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:44 AM.

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
Open Source Consulting | Domain Registration