PDA

Bekijk de volledige versie : chmod give user write/upload permission



wilco02
29-09-2005, 17:22
I have add extra user to my asus for my vsftpd.
I works oke, but i want to give him(wilcoftp) upload acces.

This is my passwd

wilco:password:0:0:root:/usr/local/root:/bin/sh
nobody:x:99:99:nobody:/:/sbin/nologin
wilcoftp:password:501:501:ftp:/tmp/harddisk/part1/download/download:/bin/sh

And now i have only read acces when i change wilcoftp to

wilcoftp:password:0:0:ftp:/tmp/harddisk/part1/download/download

The i can write/upload everyting, but that is not what i want.
I want upload permission.

I also tride the chmod command.
but i don't know how.

This is my vsftpd.conf
anonymous_enable=NO
ftp_username=ftp
# All Anonmyous Logins Are treated as Guests
guest_enable=NO
guest_username=wilco
userlist_enable=YES
userlist_deny=YES
userlist_file=/opt/etc/vsftpd.user_list
# User Control
#no_anon_password=NO
local_enable=YES
write_enable=YES
local_umask=644
anon_upload_enable=YES
anon_other_write_enable=NO
#anon_mkdir_write_enable=YES
dirmessage_enable=YES
# Activate logging of uploads/downloads.
xferlog_enable=YES
connect_from_port_20=YES
#chown_uploads=YES
#chown_username=wilco
chmod_enable=NO
download_enable=YES
vsftpd_log_file=/opt/var/log/vsftpd.log
# If you want, you can have your log file in standard ftpd xferlog
#format
#xferlog_std_format=YES
#idle_session_timeout=600
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#nopriv_user=ftpsecure
#async_abor_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
ftpd_banner=Welcome to the server of Wilco
#deny_email_enable=YES
#banned_email_file=/opt/etc/vsftpd.banned_emails
chroot_list_enable=YES
chroot_list_file=/opt/etc/vsftpd.chroot_list
#ls_recurse_enable=YES
chroot_local_user=NO
secure_chroot_dir=/tmp/harddisk/
#local_root=/tmp/harddisk/
#listen=YES
check_shell=NO

What do i have to do.

Thanks.

Wilco,

wilco02
02-10-2005, 11:35
i found out that chown and chmod doesn't work on the tmp dir (fat32)
It is working on opt/ ext2.
No i can give a user write/read/execute acces.
But i want't to give a user read en upload acces.
And he me not remove or rename dir.

I can i do that.

I like talking to myself ;-))

Thanks.