Solved

FTP account

Posted on 1998-08-19
7
318 Views
Last Modified: 2013-12-16
I have just set up an FTP aacount, it works fine. However, I would like this account to log directly into /pub (/usr/ftp/pub) directory.
At the time FTP user logs he gets in / (/usr/ftp) but I dont want it.
I tried to change his home directory in /etc/passwd to /usr/ftp/pub but it did not worked well.
In /etc/passwd I have this:
ftp:*:15:15:Anonymous ftp:/usr/ftp/:

Example:
ftp 127.0.0.1
Name (127.0.0.1:root): anonymous
[...}
ftp>ls
bin
dev
etc
lib
pub

I want to get directly into pub directory!.


Thanks.
0
Comment
Question by:aacosta
  • 4
  • 2
7 Comments
 
LVL 5

Expert Comment

by:bchew
ID: 1812123
You were on the right track, I think.  It SHOULD work fine if you change
ftp:*:15:15:Anonymous ftp:/usr/ftp/:
to
ftp:*:15:15:Anonymous ftp:/usr/ftp/pub/:
Be sure you don't accidently delete any of the colons.

If this is what you have already done, please describe more what you mean by "I tried to change his home directory in /etc/passwd to /usr/ftp/pub but it did not worked well"
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 50 total points
ID: 1812124
use wu.ftpd, then change ftp user's home dir in passwd to:

ftp:*:15:15:Anonymous ftp:/usr/ftp/./pub/:/bin/false
0
 
LVL 1

Author Comment

by:aacosta
ID: 1812125
Hello.
Non of your answers worked.
I change my ftp user line in passwd and when I log to my FTP server I see nothing, why?.
Thanks again.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 51

Expert Comment

by:ahoffmann
ID: 1812126
Did you use wu.ftpd (see /etc/initd.conf) ?
0
 
LVL 1

Author Comment

by:aacosta
ID: 1812127
Hello again,
Do you mean /etc/inetd.conf?.
Yes, I lookup wu.ftpd and there is not. I just found this:
---
ftp     stream  tcp     nowait  root    /usr/etc/ftpd   ftpd -l
---

I am using Irix 6.3.

Thanks again.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1812128
AFAIK SGI's ftpd can't do it this way. You may change to a users
directory but it must contain bin/, etc/, lib/, usr/, exactly what you have now.
I recommend installing wu.ftpd .
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1812129
AFAIK SGI's ftpd can't do it this way. You may change to a users
directory but it must contain bin/, etc/, lib/, usr/, exactly what you have now.
I recommend installing wu.ftpd .
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Compare if date string is within text file 3 55
ftpcommand 2 50
Unix Question 19 39
unix solaris snoop command 6 47
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now