View Full Version : A FTP Question, Can anyone help me? THank you!
In a normal way, Ftp user can only log into their one directory with their<br />username and password, right?<br />But what i want to do is that, they can access a directory which is i<br />assigned (say i assign a directory named "kkz").So every FTP user will<br />log into directory "kkz" instead of their own directory.(these Ftp users<br />are not anonymous)<br />How can i do this?<br /><br />thank you
keyman
03-24-2002, 01:36 AM
I can think of a couple of ways..<br />Assuming this is a unix server and you want multiple logins to the same user path.. then all users should all share the same path in the /etc/passwd file.<br /><br />The useradd script will normally create a user directory /home/username and assign that as their user path in /etc/passwd.<br /><br />So, you have to create a custom useradd script (or edit the passwd file manually) so that every added user gets assigned the same path.<br /><br />Then you have set the permissions on that directory so everyone can access it.<br /><br />Alternatively, your ftp daemon may allow you to have all users login to a fixed path instead their user path.
Could you tell me how can i edit the passwd file manually? where is that file? I m very new in this. i dont think i can set this in my ftp daemon. <br />Please tell me that, I will be very appropriate!
keyman
03-24-2002, 03:07 AM
Say I want to change the user 'bob' to share the same home dir as 'bill', I would log into the server as root and type (excluding the $)<br />$ usermod -d /home/bill bob<br /><br />Now bob and bill share the same home dir.. <br />Typing $ man usermod at the prompt should give you instructions on how to use usermod on your system.<br /><br />If your server doesn't have the usermod script for some reason contact me via ICQ or PM and I'll give you instructions on how to edit the passwd file with an editor.
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.