Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
if I create a User in linux with useradd command
E.g.
useradd -s /bin/bash -d /home/testuser testuser
How can I make it such that he cannot run "ls" command when he FTPs into the server using the username/passwd I setup.
I would not mind disabling "ls" for SSh or FTP as long as user is unable to list all files in the home directory and is only able to use FTP commands like GET, PUT, RENAME etc...
Dont want them to have DELETE permission also...in this folder. This user will only be used for FTP...how can I enforce the above controls..
if I create a User in linux with useradd command
E.g.
useradd -s /bin/bash -d /home/testuser testuser
How can I make it such that he cannot run "ls" command when he FTPs into the server using the username/passwd I setup.
I would not mind disabling "ls" for SSh or FTP as long as user is unable to list all files in the home directory and is only able to use FTP commands like GET, PUT, RENAME etc...
Dont want them to have DELETE permission also...in this folder. This user will only be used for FTP...how can I enforce the above controls..
According to the man page, VSFTPD(5), you set the following in your vsftpd.conf file to deny directory listing: (hint, hint... read the MANUAL page next time)
Code:
dirlist_enable
If set to NO, all directory list commands will give permission denied.
Default: YES
I'll let you read the rest of the MANUAL page to figure out the rest of your issues.
following permissions wanted for one user group - GET, PUT, RENAME, APPEND, DELETE)
But another Group - I only want to allow GET, PUT, RENAME, APPEND
MAN doesnt give much info...
man vsftpd
VSFTPD(8) BSD System Manager€™s Manual VSFTPD(8)
NAME
vsftpd - Very Secure FTP Daemon
SYNOPSIS
vsftpd [configuration file]
DESCRIPTION
vsftpd is the Very Secure File Transfer Protocol Daemon. The server can be launched via a €œsuper-server€ such as
inetd(8) or xinetd(8). Alternatively, vsftpd can be launched in standalone mode, in which case vsftpd itself will
listen on the network. This latter mode is easier to use, and recommended. It is activated by setting listen=YES in
/etc/vsftpd/vsftpd.conf. Direct execution of the vsftpd binary will then launch the FTP service ready for immedi-
ate client connections.
OPTIONS
An optional [configuration file] may be given on the command line. This configuration file has to be owned by root.
The default configuration file is /etc/vsftpd/vsftpd.conf.
Found this - Can we retrict commands allowed on a per FTP user basis?
==================================================
vsftpd.conf has the following:
cmds_allowed
This options specifies a comma separated list of allowed FTP commands (post login.
USER, PASS and QUIT and others are always allowed pre-login). Other commands are
rejected. This is a powerful method of really locking down an FTP server. Example:
cmds_allowed=PASV,RETR,QUIT
------------------
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.