Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ftp server

Status
Not open for further replies.

Enhasmen

Technical User
Feb 12, 2001
14
0
0
ES
Hi,
we are trying to install a FTP server on AIX 4.3.2. We have just created the users that they can connect but we have a problem. There are many clients ftp when they connects their first action is execute pwd command but the response of AIX is " Cannot access parent directories" and our ftp server reject the connect because we don´t want that the users can navigate for previus directories that yours.

Do Anyone know how can i do it?
 
Try one of the following...unless you set up NIS or something else as well.

=============================
by editing /etc/security/passwd and removing the following stanza
from the user :

flags = ADMCHG

It will not prompt for a password change. .

----
or
Unix Command Line> pwdadm -c will do it for you (see "man pwdadm").
$ pwdadm -c userid

will clear the pre-expire while keeping any other password parmaeters,
such as password rules for upper and lower case, numeric, repeats, and
age.

#-)
 
Thank you aixqueen but I think I don´t explain you very well or you don´t understand me.
Pwd command retrieves the path name of the working directory and I think you are talking about passwd command. Am I right?

When any user connect with our ftp server and user tries execute pwd command the ftp server retrieves "Cannot open the parent directory"

Thank you in advance
 
I am indeed confused....are you trying to set up
an anonymous ftp? ....which means that most commands and changing directory
is not allowed?

So these users are not real users on the Rs6000...which means
they have no .profile or no home directory? and you don't want them to have any
files on this machine...... Usually you make them real users
and then they have their own home directory and stuff..... Then they would not
get that error...but then you would have to look at some kind of password across
all machines...like NIS ...or something....

If there are so many users that you do not want them to be real users with
a home etc.... I guess anonymous ftp.....Or a restricted shell

Maybe more detail on what you are trying to do...You don't want these users to
do anything but transfer files? or get files?

setup a macro for a transfer user ...that autologs in Two thoughts....then...
setup a macro for a transfer user ...that autologs in and exits...?
or set up .....
anonymous ftp....

/usr/samples/tcpip/anon.ftp
Contains the example shell script with which to set up an
anonymous FTP account. This file also contains
directions for its use. or nfs mount a directory only


Sorry, I guess I am confused....about what you need....Maybe someone else
can assist....
 
OK,
I am going to explain me better. I have created users on AIX , they have their own home directory and I don´t wanna anonymous user. Now, When user tries connect ftp server ,( there are many ftp clients that their first action is pwd command execution) ftp server reject the connection because it says : "Cannot open the parent directory". And if user connect thought telnet connection and executes pwd command the result is the same.

Directories , that user can see, are on NFS and belong another machine. Could it be the problem?

Maybe, I don´t explain me very well because my english is very poor. Sorry for this.
Now I hope you can understand me. Thank you again.
 
I guess what you need is to set your users with a home directory with special permissions!

Change the permissions of [tt]/[/tt] and [tt]/home[/tt] to be readable for the users but not executable... use ACLs you'll get more control.
I hope it works...
Unix was made by and for smart people.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top