tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Anonymous ftp
@ 1995-08-07 15:39 pcmc
  0 siblings, 0 replies; 6+ messages in thread
From: pcmc @ 1995-08-07 15:39 UTC (permalink / raw)
  To: tru64-unix-managers

Hi,

I have set up an anonymous ftp account on our 2100 server 
running OSF/1 (or DEC Unix) V3.2.  No problem in accessing
the world readable files place under the ftp directory.

The question I have got is how can I make files under a different 
directory tree be accessed by this anonymouos account.

I set up a soft link
  
# ln -fs /data /utility/ftp/pub/data

where /utility/ftp is the default directory for the ftp account,
to point /utility/ftp/pub/data to the real data directory tree /data.

But when I, during the ftp session, do 
cd pub/data, or ls to it, I always get 

   550 /data: No such file or directory.

But I can surely access /data from a normal interactive account.

Does anyone have any idea of what has gone wrong?

Thanks.
Peter Chiu

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Anonymous ftp
@ 1995-08-08  9:54 pcmc
  0 siblings, 0 replies; 6+ messages in thread
From: pcmc @ 1995-08-08  9:54 UTC (permalink / raw)
  To: tru64-unix-managers

Hi,

I was really stunned by the number of responses I received
this morning, a few hours I sent out the query.  Many thanks
to whose who have replied to me. 

Below is the summary of the replies and the list of experts
who gave me the advice.

Many thanks again.

Regards,
Peter Chiu
======================================================================
Question:

How to make files under a different directory tree be accessed 
by the anonymous ftp account.

Summary of replies:

It is a known feature that, for security reason, the anonymous
ftp account does an implicite chroot at its start up, making only
one file system it can see, and nothing else.  This file system is 
the one where its default login directory resides (as specified in passwd).

To get round that, I have received three suggestions:

a. physically move/copy the data that you want to be visiable 
   by this account to a subdirectory under the account,

b. if the data directory concerned resides in the same file system,
   use hardlink to point to the data directory, 

c. mount the data directory using nfs with a mount point under the
   ftp directory, eg. mount local:/data /utility/ftp/pub/data.

In my particular case, the data directory tree that I want to 
be seen by the ftp account is the one NFS-mounted from another 
host running a different operating system.  So, I go for the
first suggestion and mount the data tree again onto a ftp subdirectory.

I did try the 3rd suggestion, but somehow I can only access the 
first level of subdirectory (eg /utility/ftp/pub/data/ukmodata) 
and not below (/utility/ftp/pub/data/ukmodata/*).

Anyway, many thanks to those below who have responded to my question.
Pat Wilson 	paw@dartmouth.edu
Dan Riley 	dsr@lns598.lns.cornell.edu
Rob Evans 	r.evans@ic.ac.uk
Mike Matthews, 	Mike_Matthews@sgate.com 
Craig I. Hagan 	hagan@oec.com
Steve Crothers  steve@eiscat.ag.rl.ac.uk
Jim Johnson 	jj@uniprise.com
Scotty Logan 	scotty@zinc.oucs.ox.ac.uk
Paul E. Rockwell rockwell@rch.dec.com
Bob Sloane 	sloane@kuhub.cc.ukans.edu
Boris Yost 	boris@gore.afep.cornell.edu
 Mark Stover 	mstover@lis.pitt.edu
J.James(Jim)Belonis II belonis@phys.washington.edu
Michael Pruett 	michael@unicycle.cs.tulane.edu
Mike Iglesias  	iglesias@draco.acs.uci.edu
Pierre Wendling wendling@vbo.dec.com
Knut Helleboe 	Knut.Hellebo@nho.hydro.com
Miguel Mena  	migi@zuo.dec.com
Richard M Rogers R.M.Rogers@staffs.ac.uk
Iain Bruce 	isb2@redeyes.york.ac.uk

^ permalink raw reply	[flat|nested] 6+ messages in thread
* anonymous ftp
@ 1996-10-16  0:44 Santosh Krishnan x2815
  0 siblings, 0 replies; 6+ messages in thread
From: Santosh Krishnan x2815 @ 1996-10-16  0:44 UTC (permalink / raw)
  To: tru64-unix-managers

Hi,
I'm trying to set up anon ftp.  I've created the necessary directories 
etc.  The anonymous user can log in properly etc.  The problem is, there 
is no directory listing sent back for the "dir" command.   However, if 
you try a "cd" to a directory that you know exists, such as pub, it 
changes directory.

Obviously, I need the correct libraries in the ~ftp/lib directory, but 
which libraries?

I have the same problem on Linux, in case someone knows the names of the 
libraries there.

Thanks
Santosh

*********************************************
* LINUX System Admin			    *
* supervisor@heplinux1.uta.edu		    *
*********************************************

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Anonymous FTP
@ 1997-03-09 21:15 Gert Maaskant
  0 siblings, 0 replies; 6+ messages in thread
From: Gert Maaskant @ 1997-03-09 21:15 UTC (permalink / raw)
  To: tru64-unix-managers



	Hi,


	We setup a user-account for file-transfer using ftp for a Alpha
	running D-UNIX 3.2c.
	Interactive login is disabled 
	We put this part into the .profile to prevent login.

	if [ -t 0 ]
		then
			echo "Inter. login is disabled"
			sleep 5
			exit 0
	fi 


	We want to setup anonymous ftp for this account, only using anon. ftp 
	is username ftp and anonymous is valid. 

	Is it possible to grand other user-name for anon. ftp access ?
	Or is the TCP/IP source available ??


	T.I.A.

	Gert...
------------------------------------------------------------------------


	Gert Maaskant

	Operational Support UNIX  TSE MEA
	EDS,  Croeselaan 22, 3521 CB  Utrecht NL

	Telefoon : 030 - 2924 251     Telefax : 030 - 2924 250
	Kamer    : 0e etage	      E-Mail  : gert.maaskant@nl.eds.com
	                              en / of : gertm@cvi.ns.nl         

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Anonymous FTP
@ 1998-02-24 17:38 Warren, John H.
  0 siblings, 0 replies; 6+ messages in thread
From: Warren, John H. @ 1998-02-24 17:38 UTC (permalink / raw)
  To: tru64-unix-managers

Where can I obtain the logging of anonymous ftp users?

I want to send email to users who deposit files to a system.

Thanks.    (Digital Unix 4.0B)

^ permalink raw reply	[flat|nested] 6+ messages in thread
* anonymous ftp
@ 2001-05-01 14:17 Tom Linden
  0 siblings, 0 replies; 6+ messages in thread
From: Tom Linden @ 2001-05-01 14:17 UTC (permalink / raw)
  To: tru64-unix-managers

I am running 4.0d and I was setting up ftp access using the recommendations
in the man page on ftpd, wrt ownership and premissions.  but when I try it,
I get the following:


D:\>ftp thor
Connected to thor.
220 thor.kednos.com FTP server (Digital UNIX Version 5.60) ready.
User (thor:(none)): anonymous
331 Guest login ok, send ident as password.
Password:
530 Login incorrect.
Login failed.
ftp>

For passwd I put in an email address, but I think you can put in anything.

thor/tom 259 > ls -al
total 13
drwxr-xr-x   7 root     guest        512 Apr 30 19:31 ./
drwxr-x---  10 root     uniprise     512 Jul  7  1999 ../
-rwxrwxr-x   1 ftp      guest       1499 Dec 29  1997 .cshrc*
-rwxrwxr-x   1 ftp      guest       1668 Dec 29  1997 .login*
-rwxrwxr-x   1 ftp      guest       1606 Dec 29  1997 .profile*
drwxr-xr-x   2 ftp      guest        512 Jan 23  2000 .tmp/
drwxr-xr-x   2 root     guest        512 Apr 30 19:20 bin/
drwxr-xr-x   2 root     guest        512 Apr 30 19:23 etc/
drwxrwxr-x   2 root     guest        512 Apr 30 19:31 misc/
drwxrwxrwx   6 ftp      guest        512 Apr 30 19:28 pub/
thor/tom 260 > pwd
/usr/users/ftp

thor/ROOT 266 > grep ftp /etc/passwd
ftp::206:35::/usr/users/ftp:/bin/sh

thor/ROOT 268 > grep ftp /etc/group
guest:*:35:ftp,tom

Now if I change permission of .. (i.e. /usr/users ) to 751 it works, but
then this gives too broad access because now I can telnet to the machine as
user, ftp, and move around.

TIA
Tom

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-05-01 14:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-08-07 15:39 Anonymous ftp pcmc
  -- strict thread matches above, loose matches on Subject: below --
1995-08-08  9:54 pcmc
1996-10-16  0:44 anonymous ftp Santosh Krishnan x2815
1997-03-09 21:15 Anonymous FTP Gert Maaskant
1998-02-24 17:38 Warren, John H.
2001-05-01 14:17 anonymous ftp Tom Linden

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox