Page 1 of 1

Can't FTP using nagios user

Posted: Fri Apr 10, 2015 3:51 am
by lsazzad
I can ftp the server using local user. But when i am trying to do ftp using nagios user the passowrd is incorrect. It seems passowrd doesn't match. If i reset the passowrd is their any drawback? Please suggest me. Also please let me know normal useradd command will be sufficient for changing this password or do i need to do anything else.

C:\Users\shussein>ftp rr-de-nms-1
Connected to rr-de-nms-1.
220 Welcome xxxxxx.
User (rr-de-nms-1:(none)): nagios
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp>

Because i am afraid, if i change passowrd could hamper nagios all service. I dont want to install it again.

Re: Can't FTP using nagios user

Posted: Fri Apr 10, 2015 12:16 pm
by scottwilkerson
By default the nagios user is a nologin user, you would need to change the user to a login user to be able to ftp as that user

Re: Can't FTP using nagios user

Posted: Wed Apr 22, 2015 3:46 am
by lsazzad
I want to edit nagios config files using Notepad++(vftp). Its little bit easier that editing via "vi" mode. I guess by default nagios user is not accessible via ftp.

Is it possible to add a user & allow permission to that user, so that that user can edit all nagios file? Please let me know the procedure.

Also is it possible to open "nagios" user for FTP connection?

Re: Can't FTP using nagios user

Posted: Wed Apr 22, 2015 12:26 pm
by jdalrymple
lsazzad wrote:I want to edit nagios config files using Notepad++(vftp). Its little bit easier that editing via "vi" mode. I guess by default nagios user is not accessible via ftp.
I suggest you install nano, it's a text editor for Linux that is more friendly to Windows users. Passing the configs back and forth while editing isn't recommended.
lsazzad wrote:Is it possible to add a user & allow permission to that user, so that that user can edit all nagios file? Please let me know the procedure.

Also is it possible to open "nagios" user for FTP connection?
As swilkerson mentioned the nagios user has nologin set for its shell. You'll need to change that.

Code: Select all

chsh -s /bin/sh nagios

Re: Can't FTP using nagios user

Posted: Wed Apr 22, 2015 5:37 pm
by lsazzad
Dear jdalrymple,

Thanks a lot for the reply. Its working now after chaging in nologin shell.

I am using Notepad++ to ftp my nagios server. Using nagios user i can download & upload files as well edit.

Problem solved. I would request admin to close the thread! :D :D