?
Solved

access dinied login fedora4

Posted on 2006-07-08
3
Medium Priority
?
304 Views
Last Modified: 2013-12-16
Hi Experts

I traying to login my server (Fedora4) vi SSH and only root can , the rest od the users in the passwd file are refused , here its a copy of my passwd file :

# cat /etc/passwd
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
news:x:9:13:news:/etc/news:
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
dbus:x:81:81:System message bus:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
rpm:x:37:37::/var/lib/rpm:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
named:x:25:25:Named:/var/named:/sbin/nologin
netdump:x:34:34:Network Crash Dump user:/var/crash:/bin/bash
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
rpc:x:32:32:Portmapper RPC user:/:/sbin/nologin
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:4294967294:4294967294:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
apache:x:48:48:Apache:/var/www:/sbin/nologin
xfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
squid:x:23:23::/var/spool/squid:/sbin/nologin
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
vuser:x:1000:1000::/tmp:/noshell
ocampo:x:1081:1081::/home/ocampo:/bin/bash
colomes:x:1084:1084::/home/colomes:/bin/bash
newftpuser:x:1085:2002::/dev/null:/etc
paraic:x:1088:1088::/var/www/vhosts/:/bin/bash
cancerbasics:x:1089:1089::/var/www/vhosts/uicc.org/web/cancerbasics/:/bin/bash
cancercontrol:x:1090:1090::/var/www/vhosts/uicc.org/cancercontrol/:/bin/bash
webdevelop:x:1091:1091::/var/www/vhosts/:/bin/bash
cocoliso:x:1092:0::/home/cocoliso:/bin/bash


but only root can login , the rest got access denied
Please
what can i do ?

thanks
0
Comment
Question by:diegomirner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Expert Comment

by:pjedmond
ID: 17066432
If the last part of the /etc/passwd file is /sbin/nologin, then that account will always be denied.....because funnily enough nologin is just that;). Same applies to /noshell. However, the ones with /bin/bash as the last term *should* be able to login....assuming that you know their passwd.

Let's take the last account:

cocoliso:x:1092:0::/home/cocoliso:/bin/bash

Login as root, and then reset the password for this account:

#passwd cocoliso

and enter a new passwd. (twice)

Log out, and then try logging in as cocoliso. That *should* work. If not, then let us know how it goes:)

(   (()
(`-' _\
 ''  ''





0
 

Author Comment

by:diegomirner
ID: 17079652
It didint work , any idea ?

0
 
LVL 22

Accepted Solution

by:
pjedmond earned 2000 total points
ID: 17079697
Any particular error? Still got access denied?

Output from:

ls -al /home

does /home/cocoliso exist?

tail -f -n50 /var/log/secure

will give details as to the cause of the failure.

(   (()
(`-' _\
 ''  ''


0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month15 days, 10 hours left to enroll

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question