Solved

access dinied login fedora4

Posted on 2006-07-08
3
300 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
  • 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 500 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

774 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