1821188 Members
3321 Online
109631 Solutions
New Discussion юеВ

Re: ftpusers file

 
Mark Philip L. Castro
Occasional Advisor

ftpusers file

I have an account that I want to have an ftp access to the server. So I removed the account name from the /etc/ftpd/ftpusers file. After removing the account name, the user can now access via ftp. But when we reboot the system, the account name returns back to the /etc/ftpd/ftpusers. Is there any other file we need to modify? We are running in HPUX11 system.
5 REPLIES 5
Shaikh Imran
Honored Contributor

Re: ftpusers file

Hi,
I suppose the real file is /etc/ftpusers.
If you face the same problem try usin sam.

Regards,

Imran
I'll sleep when i am dead.
V.Tamilvanan
Honored Contributor

Re: ftpusers file

Hi,
The /etc/ftpd/ftpusers is a separate file which restricts the listed users from doing ftp to that host. It don't have relation with any other file.
Sunil Sharma_1
Honored Contributor

Re: ftpusers file

Hi,

It is /etc/ftpd/ftpusers file only and it doesn't have any link to other file.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Mauro Gatti
Valued Contributor

Re: ftpusers file

The security file seems right:
/etc/ftpd/ftpusers
"man ftpusers" give you some hints you can check.

Each restricted account name must appear alone on a line in the file.
The line cannot contain any white space.
Check if in this file isn't any blank line.
And finally check there isn't any rc script that reset file avery boot (check rc.log and rc.log.old to see which scripts run during startup and shutdown).


RGDS

Mauro
Ubi maior, minor cessat!
IE Admins
Advisor

Re: ftpusers file

We setup a script which reads the /etc/passwd file and populated the ftpusers file daily then removes a list of authorised users found in another file we created.

Do you have something which is populating the ftpusers file at boot time and placing the user you are authorising back into the ftpusers file casusing the user to be restricted again.