Operating System - HP-UX
1826493 Members
3760 Online
109692 Solutions
New Discussion

Re: user id of anonmus (FTP) user id ???

 
brijesh_1
Occasional Contributor

user id of anonmus (FTP) user id ???

I want to know anonoumus user id ???Like root UID is - 0 , so what is anonoums UID ??

let me know.

thankx
6 REPLIES 6
Rita C Workman
Honored Contributor

Re: user id of anonmus (FTP) user id ???

If you set up an anonymous ftp user according to 'the book' it would be 500.

Book I used=Installing and Administering the Internet Services (HP Manual)....

Regards,
/rcw
brijesh_1
Occasional Contributor

Re: user id of anonmus (FTP) user id ???

option r below.

A. -2
B. -1
C. 0
D. 1
E. 2

so plz ans from above option, what whould be correct ans.
Patrick Wallek
Honored Contributor

Re: user id of anonmus (FTP) user id ???

If you go according to the HP man page for ftpd, then none of the answers you give are correct. Here is a sample passwd entry from 'man 1m ftpd' from my HP-UX box which shows the UID to be set at 500:

ftp:*:500:10:anonymous ftp:/home/ftp:/usr/bin/false

I looked at one of my Sun Solaris boxes and they recommend using a UID of 30000. Here is the sample passwd entry from that man page:

ftp:x:30000:30000:Anonymous FTP:/export/ftp:/nosuchshell

So as you can see, neither of these answers agrees with what you offer.

Which test was this question and answers taken from?
Rita C Workman
Honored Contributor

Re: user id of anonmus (FTP) user id ???

Brijesh...

Are you meaning what is the uid for nobody? On HPUX nobody = -2.

Now a few others on HPUX all have a uid of 3 (like adm,uucp,sys,bin)....are these what your referring to?

/rcw

James R. Ferguson
Acclaimed Contributor

Re: user id of anonmus (FTP) user id ???

Hi:

A couple of comments regarding your suggestions:

> -2 is "nobody" and is used for remote root access by NFS.

> 0 is clearly root and you would *not* choose this!

> 1 is daemon.
> 2 is bin.

I'm not sure about (-1), but, in general, non-system uids are chosen to start at 100, so I am in agreement with Rita and Patrick.

...JRF...
Patrick Wallek
Honored Contributor

Re: user id of anonmus (FTP) user id ???

I've been curious all day and been trying to figure out where they, being whichever test you got the answers from, got the answers you mention. I might have an answer for you.

Are you perhaps talking about the group ID (GID) of the anonymous FTP user, rather than the user id? If that is the case then the correct answer would be '1'.

Here is an excerpt from Document ID HONCIKKBRC00000168 from the TKB. The important part is the second NOTE that talks about the GID.

1. Create an ftp user in /etc/passwd:

10.X
ftp:*:500:1:AnonymousFTPuser:/home/ftp:/usr/bin/false

*Note: If UID 500 is not available, use a UID that is not currently being used.
*Note: GID 1 is usually group 'other', verify that group 'other' does exist, and match its group ID in this field.