Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17905

Why sometimes I end up in -bash-4.2$?

$
0
0

Sometimes is user created but the home dir wrong chown/permission, somtimes selinux. this time is a user create by puppet. What is the underlying problem that's causing this issue? Also if someone can answer the puppet question that would be great too. But i guess that question belongs in /r/puppet.

config.pp

user {'bgops': ensure=>'present', comment=>'local admin', uid=>'1234567', password=>'$6$RDIZWiDn$pTAOwaNmI/WFYn3eVp/QmBt.yqcJLyy4WuUlweULuOYWciEzALsQeLbrSZ2.Dp1', home=>'/home/bgops', shell=>'/bin/bash', } 

login as: bgops bgops@10.54.50.130's password: Last failed login: Wed May 18 13:41:31 PDT 2016 from abc on ssh:notty There were 9 failed login attempts since the last successful login. Could not chdir to home directory /home/bgops: No such file or directory -bash-4.2$ pwd / 

user test is a user i create locally, and when I ssh:

login as: test test@10.54.50.130's password: Last login: Wed May 18 14:48:55 2016 from abc [test@robin1 ~]$ pwd /home/test 

I want bgops to be like test.

submitted by /u/juniorsysadmin1
[link] [comments]

Viewing all articles
Browse latest Browse all 17905

Trending Articles