System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

very odd ftp user issue ....

 
SOLVED
Go to solution
Highlighted
Regular Advisor

very odd ftp user issue ....

I am working on retiring an ftp server.

But I had to figure out how it was originally configured ..


The ftpuser id does not exist on the server.

But if I ftp to the server I am able to upload a file and see it. And it is set up with chroot ..

OS : 11.00

It is not in
/etc/passwd

nsswitch.conf
hosts: files

/etc/ftpd/ftpusers
root

# grep ftp inetd.conf
#ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
# Before uncommenting the "tftp" entry below, please make sure
# that you have a "tftp" user in /etc/passwd. If you don't
# have one, please consult the tftpd(1M) manual entry for
tftp dgram udp wait root /usr/lbin/tftpd tftpd\


Where could this id be?
5 REPLIES 5
Highlighted
Regular Advisor

Re: very odd ftp user issue ....

Not to mention how is this working if it is commented out in inetd.conf ?
Highlighted
Honored Contributor
Solution

Re: very odd ftp user issue ....

> The ftpuser id does not exist on the server.

Do you mean that the user name "ftp" does not
exist? I thought that user "ftp" was used
for only anonymous FTP.

> But if I ftp to the server [...]

How, exactly? As usual, showing actual
commands with their actual output can be more
helpful than vague descriptions or
interpretations.

> [...] And it is set up with chroot ..

With my weak psychic powers, I can't see the
details of that set-up, either.

> Where could this id be?

Where could _which_ ID be?

> Not to mention how is this working if it
> is commented out in inetd.conf ?

Was it commented out recently?

inetd -c
man inetd

Many FTP servers can be run independently of
inetd. You might look through your system
start-up scripts to see if it's started
there.

man ftpd
Highlighted
Regular Advisor

Re: very odd ftp user issue ....

The ftp user id .. is ftpuser.

But it looks like it is ncftpd ..

root 1215 1 0 Oct 28 ? 6:37 /usr/local/etc/ncftpd/ncftpd -q /usr/local/etc/ncftpd/genera
root 1220 1215 0 Oct 28 ? 1:00 /usr/local/etc/ncftpd/ncftpd -q /usr/local/etc/ncftpd/genera
root 19381 1215 0 05:18:28 ? 0:00 /usr/local/etc/ncftpd/ncftpd -q /usr/local/etc/ncftpd/genera
root 19501 1215 0 05:20:29 ? 0:00 /usr/local/etc/ncftpd/ncftpd -q /usr/local/etc/ncftpd/genera
root 19541 1215 0 05:21:43 ? 0:00 /usr/local/etc/ncftpd/ncftpd -q /usr/local/etc/ncftpd/genera

Highlighted
Regular Advisor

Re: very odd ftp user issue ....

It is using ncftpd .. which has its own user db.
Highlighted
Honored Contributor

Re: very odd ftp user issue ....

> The ftp user id .. is ftpuser.

Says who? Why?

> But it looks like it is ncftpd ..

What looks like what is "ncftpd"? My psychic
powers are also too weak to tell me which FTP
server you're using.