LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-15-2003, 12:33 AM   #1
yuzuohong
Member
 
Registered: May 2002
Location: Shanghai, PRC
Distribution: RedHat 6.2 | 7.2 | 8 | 9|3
Posts: 81

Rep: Reputation: 15
Post How to add an FTP user who can just read and download the files and folders?


Hi all,

I setup a RedHat 7.2 box and configured WU-FTPD service on it.
I created /opt/ftp directory and copied some files and folders to /opt/ftp. Then I added a user called FTPGUEST for my FTP clients, through which they can list and download, but NOT upload and delete, the contents in this directory.
Now I think I can't give /opt/ftp directory a fit CHMOD status. I tried some ways. Sometimes FTPGUEST can not only read the files, but also can erase them. Some other time, FTPGUEST can't even list the files.
Please give some guide on this point.
Thank you in advance.

BTW: I also wish this FTPGUEST user could NOT log into my RedHat box tty or pst entries, no matter locally or remotely.

zuohong
 
Old 02-15-2003, 01:29 AM   #2
rodeoclown
Member
 
Registered: Feb 2003
Posts: 44

Rep: Reputation: 15
Well basically don't give them permissions to write to the directory to upload to by basically not giving them ownership.

Might want to check the man pages for chmod, chown and chgrp.

And if you don't want them to have basically shell access, just give them a false shell like /bin/false by adding that as their default shell in /etc/passwd and adding /bin/false to your /etc/shells file.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to add ftp user. luqman Red Hat 1 02-24-2005 09:51 AM
Add FTP User Via Web Form alanpollenz Linux - General 2 05-28-2004 06:14 PM
Using WS-FTP, valid user can't go into folders they create krzykard Linux - Networking 0 02-03-2004 12:00 PM
Thru WS-FTP, valid user can't go into folders they create krzykard Linux - Software 2 11-12-2003 06:44 PM
ftp: Download folders and contents plisken Linux - General 3 02-20-2002 04:30 AM


All times are GMT -5. The time now is 07:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration