how do you setup users on ProFTPD?
it's an FTP program as you guessed. ;)
the manual says to make lines similar to this: <Anonymous ~private> AnonRequirePassword off User private Group private RequireValidShell off <Directory *> <Limit WRITE> DenyAll </Limit> </Directory> </Anonymous> but it does not say what any of the values should be. it does not give good examples of things like "this is how you create a login for a guy with this name, this password, these rights to this directory". it just sort of says what SOME of the things it is doing means, there may be a line with a comment, there may not be....it's very hard to understand what they are trying to put across. could somebody please give me an example for this thing? just an example of how to make a login for a guy named 'joe' password is 'linux' and he has full upload and download access over the folder /var/junk damn confusing manual :confused: |
You would have to create just normal users using commands like useradd. If you only want these users to be ftp users and their home directory should be /var/junk. Then you can either add the shell /bin/false and the home directory to the command line when calling the useradd command. Or you could edit the file /etc/passwd and set the shell and home directory to the right location.
|
confusing instructions. how are you supposed to impute this useradd command if the FTP server is a program that runs in the background?
|
You would type useradd at the command prompt.
man useradd for more details. |
oh so FTP users are actual users on my operating system and not just my FTP? i can actually login as those guys?
|
Quote:
|
could you tell me how to give a guy full read and write access to the folder /var/junk for a user named joe? i learn by examples.
|
Quote:
If you want full read write access for joe in /var/junk, you want him to be owner or just part of a group ? If he is owner or to make him owner: chown joe /var/junk For group ownership, say he is in the group users: chgrp users /var/junk Now to give the permissions for user joe, if he is owner, he should have already read and write access and executable by default. If he is just part of the group users and you want him to have the read and write access: chmod 760 /var/junk That will give him read and write, the owner has full access and anyone else not part of the group no access. I hope this helps, any other questions just ask. might want to man chmod for more details on permissions. |
then he can log in as joe and actually access that file?
i can't believe how warped my sense of thought towards FTP was....i used to use Windows. if there is a user "shawn" on the computer, does that mean i can FTP in as shawn? |
Quote:
|
Wow!
Thanks, now I know too! I had no idea it was so easy :) RefriedBean PS, this is my 100'th post!! Wooo!!:cool: :cool: |
ok then we're getting progress here.
i can make the user name but i have a few questions - how do i set their home directory as something else? i need to specifically know how not a vague answer that seems simple to you :) - how do i give them full access to that folder? just make sure it's chown(ed) to that user name? i'm asking all these questions because i serve as a host for this friend of mine, on the Windows computer FTP was simple because it was a program that would configure it for me...i'm goin on holidays in like 4 days so i'm on a buget of time lol ;) |
Quote:
If you want the user "joe" to have full access and ownership to a particular directory like /var/junk for example, just do these two commands: chown joe /var/junk chmod 755 /var/junk That will make him owner and give permission of Read, Write and Execute for him, and Read and Execute for everyone else. |
ok we're getting real progress here but what does the stuff in passwd mean? here is what mine says:
shawn:x:501:501:shawn:/home/shawn:/bin/bash shawn is my name, what is x? what is 501? here is what i'm thinkin username:(don't know):(don't know):(don't know):username:home folder:shell program am i right? |
The second field is the password. The x is because you are using shadow passords so the encrypted password will be contained in /etc/shadow. The third is the user id number, the fourth the group id number. The group id is link to a group name in the /etc/group file.
You can type 'man 5 passwd' to find out more about this file. |
ok then how do i figure out what the password for my newly created user is?
i just made a user called joe (to test this FTP thing out) and this is what it says: joe:!!:11887:0:99999:7::: what the heck does that mean :confused: |
The password hasn't been set for that user yet.
Run the command 'passwd joe' to set the password for the user joe. |
i can always change the password back right? like if i go root then run 'passwd joe' i can change the password to something else?
|
Quote:
|
this kicks soo much butt!!! everything is falling into place!
i got my FTP working, i got my website working, i got my ikonboard working (had to change shebang line to #!/usr/bin/perl5.6.1), my game server has more clients than ever, i'm learning Linux super fast i just have to thank you people for all your help :) |
Probably not necessary but might make life easier for you. Usually it's pretty standard for a perl script to have the first line as #!/usr/bin/perl
So if you don't want to modify every perl script you use and don't want to further break anything by changing the perl install. You could make a simple link to the perl5.6.1 executable. Just run something like: ln -s /usr/bin/perl5.6.1 /usr/bin/perl |
that's how it's setup actually. i NEED to change that shebang line, as soon as i change it back to /usr/bin/perl it says "Internal Server Error" and the apache log says "script headers ended early", not worded exactly like that but it has that message behind it.
|
Quote:
What I want to do is to have some users that can ONLY access ftp. I tried to assign shells like /dev/null to the user but it avoided logging both ftp and telnet. thank you for your help |
All times are GMT -5. The time now is 07:50 PM. |