Can't FTP using nagios user

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
lsazzad
Posts: 72
Joined: Tue Apr 07, 2015 6:52 am
Location: ​Osnabrück, Deutschland
Contact:

Can't FTP using nagios user

Post 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.
Regards
Sazzad
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Can't FTP using nagios user

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
lsazzad
Posts: 72
Joined: Tue Apr 07, 2015 6:52 am
Location: ​Osnabrück, Deutschland
Contact:

Re: Can't FTP using nagios user

Post 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?
Regards
Sazzad
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Can't FTP using nagios user

Post 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
lsazzad
Posts: 72
Joined: Tue Apr 07, 2015 6:52 am
Location: ​Osnabrück, Deutschland
Contact:

Re: Can't FTP using nagios user

Post 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
Regards
Sazzad
Locked