Wireless Access

Reply
Occasional Contributor I

CentOS Question: User Login Failure

I am trying to upgrade our AMP but I am unable to login to the CLI that AMP is running on with the only account that has the necessary privileges to initiate a file transfer into the OS. I get an access denied message when I try logging into that account. I have logged in as the root user and changed the password, verified that the user is not locked out and verified that its' permissions were not changed. I can switch user in the CLI (su "user") when I am logged in as root and get to the locked account but I not sure what I should do to fix the user so it can be used again. Also, root or anyother users do not have permission to view anything in /etc/passwd

 

I would appreciate any help or suggestions.   

Re: CentOS Question: User Login Failure

I think you probably want to add a user with sudoer privileges.  This article in our knowledgebase describes how to do that.

 

Occasional Contributor I

Re: CentOS Question: User Login Failure

Thanks for the comment back,

 

So I can add a new user with sudoer privlages no problem. Its jsut that this one user account is "disabled" or at least appears to be. I have changed its password, verified its privlages and been able "switch user" into it when I am logged in as root. Its just I can't log into through the cli or when I try to ssh into AMP.

Moderator

Re: CentOS Question: User Login Failure

It could be that the user doesn't exist in /etc/passwd.  Perhaps try deleting that user entirely and then re-add?  Just make sure it's not one of the default users that's installed by AMP.  Here's what a default /etc/passwd should look like:

 

root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
rpc:x:32:32:Rpcbind Daemon:/var/cache/rpcbind:/sbin/nologin
saslauth:x:499:76:"Saslauthd user":/var/empty/saslauth:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
nslcd:x:65:55:LDAP Client User:/:/sbin/nologin
tcpdump:x:72:72::/:/sbin/nologin
apache:x:48:48:Apache:/var/www:/bin/bash
postgres:x:498:498:PostgreSQL Server:/home/postgres:/bin/bash
radiusd:x:95:95:radiusd user:/:/bin/false
pound:x:497:497:Pound user:/var/lib/pound:/sbin/nologin
visualrf:x:496:496::/home/visualrf:/bin/bash

 

 

 


Rob Gin
Senior QA Engineer - Network Services
Aruba Networks, a Hewlett Packard Enterprise Company
MVP

Re: CentOS Question: User Login Failure

Gee, I wish I had smilies in my passwd file! ;)

--Matthew

if I've helped, please give kudos
if I've provided a solution, please mark the solution so others can find it
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: