Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
Usually the "Can't set guest privileges" means something is wrong with the entry for the ftp user in /etc/passwd. Check to see if the ftp user belongs to the right group and/or has a valid shell and working directory.
If /sbin/nologin is a valid shell (I mean it exists in /etc/shells) then it's OK. Take a look also at /etc/ftpaccess to see if there are any wrong settings. I would suggest to look for another ftp server (like proftpd for example) that is more easy to configure.
Regards
The /sbin/nologin shell was not present in /etc/shells . But i dont think this could be the problem since that entry was there by default . Still for cross check I put the entry /sbin/nologin in /etc/shells ...And tried but Ohhh its still giving the same error as Cant set guest privileges .
Yes what you said could be right . So I'm sending you the contents of /etc/ftpaccess file . Waiting for your comments .
Here is the ftpaccess file with only relevant details ......
Looking at /etc/ftpaccess my comments are:
1st, is there a group ftpchroot? Because you define guestgoup ftpchroot but allow-gid ftp!!!
2nd, since I don't use wu-ftpd anymore, I searched a bit and I found this:
Quote:
# do not check password for anonymous logins
passwd-check none
I have created the group called ftpchroot and added the user (testftp ) in it for whom I want to chroot to . In that case I hope the settings are right . i.e.
guestgroup ftpchroot
guest-root /test/testftp/ftpdir test
Do I need to allow this group in this following statements ??
Why don't you test if this configuration works?
I think that you must add the ftpchroot in the allow-gid and the testftp in allow-uid. Mind that test and testftp are different UIDs. Take a look here for more details about the ftpaccess.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.