LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-02-2009, 09:53 AM   #1
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 18.04 / CentOS 7.6
Posts: 397

Rep: Reputation: 62
vsftpd read-only/write per user.


Hi,

How can I set specific users to have either read-only access under vsftpd or both read and write? The vsftpd.conf file only has write_enable=YES/NO, which seems to apply to all users regardless. Regular Linux file permissions don't seem to work either as if I use chmod a-w * as root, the FTP user is still able to delete the file.

Any help? Thanks.
 
Old 01-02-2009, 11:26 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi.

To stop file deletions from a directory, remove write permission from the directory itself - normal Linux permissions should work OK for vsftpd.

Dave
 
Old 01-26-2009, 08:04 PM   #3
sylvesterson
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
Hi

I have a question on vsftpd,

While setting the below settings (vsftpd.conf)

write_enable=YES
listen=YES
anonymous_enable=NO
local_enable=YES
virtual_use_local_privs=YES
write_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
guest_enable=YES
user_sub_token=$USER
local_root=/opt/ftpimages/teamf/$USER
chroot_local_user=YES
chroot_list_enable=YES
hide_ids=YES
userlist_enable=NO

But, while using FileZilla clinet still I can able to go to other directories like "/, /etc/, /boot" and could even transfer the file to my PC?

Can you advise is there any setting is wrong?

Thanks,

-Sylvester
 
  


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
How can I have: Root has Read-Write, user has read only for the boot filesystem? xmrkite Linux - Software 6 10-16-2008 05:31 AM
restricted user to only read an other read and write in samba Gran_Maestre Linux - Security 0 02-12-2008 02:16 PM
Mount ext3 partition in /home/USER/Documents with read/write/execute acces for USER anonymous234 Linux - Hardware 2 01-12-2007 01:23 PM
Read write privileges for single user... Slyder42 SUSE / openSUSE 4 11-24-2004 07:20 PM
user can't read/write (vfat) partition MykilX Slackware 6 07-04-2003 06:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:10 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
Open Source Consulting | Domain Registration