LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   VSFTPD, user permissions (https://www.linuxquestions.org/questions/linux-networking-3/vsftpd-user-permissions-235103/)

oily_rags 09-25-2004 11:23 AM

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

david_ross 09-25-2004 01:01 PM

Does he have permission to write to that directory?

oily_rags 09-25-2004 01:09 PM

I assume so, it's his home directory.

oily_rags 09-25-2004 01:10 PM

I forgot to add he's a local user account, he could login on my machine if he were here at my computer

david_ross 09-25-2004 01:32 PM

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

and a copy of your vsftpd config file.

oily_rags 09-25-2004 01:47 PM

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

oily_rags 09-25-2004 01:49 PM

"-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
#

oily_rags 09-25-2004 01:50 PM

# 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

oily_rags 09-25-2004 01:51 PM

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

david_ross 09-25-2004 04:15 PM

You will need to uncomment:
write_enable=YES

Then restart vsftpd.

oily_rags 09-25-2004 04:24 PM

Oh, thanks david ross. That makes sense. Thanks again


All times are GMT -5. The time now is 12:47 PM.