LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-11-2009, 02:25 AM   #1
nagavinodh
Member
 
Registered: Aug 2009
Posts: 118

Rep: Reputation: 15
/sbin/bash error


Hi,



I am n't able to access other than root user.

I got the error
/sbin/bash..
 
Old 09-11-2009, 02:27 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
What?
Should not it be /bin/bash?
 
Old 09-11-2009, 02:34 AM   #3
nagavinodh
Member
 
Registered: Aug 2009
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linuxlover.chaitanya View Post
What?
Should not it be /bin/bash?
sorry for that.It is not sbin/bash.
It is bin/bash. permissin denied and permission denied for /home/oracle
 
Old 09-11-2009, 02:35 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Still not clear about the issue. Why dont you explain in details what you are trying to do and when you get this error. Also specify your distribution.
 
Old 09-11-2009, 02:40 AM   #5
nagavinodh
Member
 
Registered: Aug 2009
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linuxlover.chaitanya View Post
Still not clear about the issue. Why dont you explain in details what you are trying to do and when you get this error. Also specify your distribution.

when i tried to login as a user,
i got the error

su - oracle
/bin/bash permission denied
and
/home/oracle permssion denied


new user also not able to login.
 
Old 09-11-2009, 02:42 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
What are permissions on the home directory for the user? And have you set the login shell to /sbin/nologin for the user in passwd file?
 
Old 09-11-2009, 06:09 AM   #7
nagavinodh
Member
 
Registered: Aug 2009
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linuxlover.chaitanya View Post
What are permissions on the home directory for the user? And have you set the login shell to /sbin/nologin for the user in passwd file?
thanks for reply,

[root@server1 /]# su - applpix
su: warning: cannot change directory to /home/applpix: Permission denied
su: /bin/bash: Permission denied
[root@server1 /]# su - applpix
su: warning: cannot change directory to /home/applpix: Permission denied
su: /bin/bash: Permission denied
[root@server1 /]# ls
aten dev lib opt root sys
bin etc lost+found ora.txt rten tftpboot
boot home media patchrpm sbin tmp
bugzilla-2.22.2 initrd misc pix selinux usr
d01.tar.gz install.log mnt proc srv var
[root@server1 /]# cd /etc/passwd
-bash: cd: /etc/passwd: Not a directory
[root@server1 /]# 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:0perator:/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
netdump:x:34:34:Network Crash Dump user:/var/crash:/bin/bash
ident:x:98:98::/home/ident:/sbin/nologin
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
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:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
apache:x:48:48:Apache:/var/www:/sbin/nologin
squid:x:23:23::/var/spool/squid:/sbin/nologin
webalizer:x:67:67:Webalizer:/var/www/usage:/sbin/nologin
xfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
gdm:x:42:42::/var/gdm:/sbin/nologin
pegasus:x:100:500:tog-pegasus OpenPegasus WBEM/CIM services:/var/lib/Pegasus:/sbin/nologin
htt:x:101:101:IIIMF Htt:/usr/lib/im:/sbin/nologin
pvm:x:24:24::/usr/share/pvm3:/bin/bash
canna:x:39:39:Canna Service User:/var/lib/canna:/sbin/nologin
wnn:x:49:49:Wnn Input Server:/var/lib/wnn:/sbin/nologin
quagga:x:92:92:Quagga routing suite:/var/run/quagga:/sbin/nologin
cyrus:x:76:12:Cyrus IMAP Server:/var/lib/imap:/bin/bash
dovecot:x:97:97:dovecot:/usr/libexec/dovecot:/sbin/nologin
exim:x:93:93::/var/spool/exim:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
mailman:x:41:41:GNU Mailing List Manager:/usr/lib/mailman:/sbin/nologin
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
postgres:x:26:26:PostgreSQL Server:/var/lib/pgsql:/bin/bash
amanda:x:33:6:Amanda user:/var/lib/amanda:/bin/bash
fax:x:78:78:mgetty fax spool user:/var/spool/fax:/sbin/nologin
named:x:25:25:Named:/var/named:/sbin/nologin
ldap:x:55:55:LDAP User:/var/lib/ldap:/bin/false
radiusd:x:95:95:radiusd user:/:/bin/false
radvd:x:75:75:radvd user:/:/sbin/nologin
jacob:x:500:501:jacob selwyn:/home/jacob:/bin/bash
oracle:x:501:502::/home/oracle:/bin/bash
applmgr:x:502:503::/home/applmgr:/bin/bash
applpix:x:503:504::/home/applpix:/bin/bash
orapix:x:504:505::/home/orapix:/bin/bash
[root@server1 /]# su - mailman
su: warning: cannot change directory to /usr/lib/mailman: Permission denied
su: /sbin/nologin: Permission denied
[root@server1 /]# sh
sh-3.00# su - orapix
su: warning: cannot change directory to /home/orapix: Permission denied
su: /bin/bash: Permission denied
sh-3.00# exit
exit
[root@server1 /]# ksh
# su - orapix
su: warning: cannot change directory to /home/orapix: Permission denied
su: /bin/bash: Permission denied
# exit
[root@server1 /]# su - orapix
su: warning: cannot change directory to /home/orapix: Permission denied
su: /bin/bash: Permission denied

please help me out
 
Old 09-11-2009, 06:27 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Interesting ...

Please post the output from
Code:
/bin/cat /etc/fstab
/bin/ls -ld /home
/bin/ls -l /home
/bin/df
EDIT:
and
Code:
/bin/ls -l /bin/bash

Last edited by catkin; 09-11-2009 at 06:29 AM.
 
Old 09-11-2009, 06:50 AM   #9
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Could be due the permissions on /home.
As suggested paste the output of

ls -l /home
 
Old 09-12-2009, 05:26 AM   #10
nagavinodh
Member
 
Registered: Aug 2009
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linuxlover.chaitanya View Post
Could be due the permissions on /home.
As suggested paste the output of

ls -l /home
Thanks for Reply.
we got the problem 3 times.we are getting the error after installation.

[root@server1 ~]# ls -l /home
total 32
drwxrwxrwx 4 applpix oinstall 4096 Sep 11 08:51 applpix
drwxrwxrwx 4 jacobs jacobs 4096 Sep 11 08:10 jacobs
drwxrwxrwx 4 oracle oinstall 4096 Sep 11 08:41 oracle
drwxrwxrwx 4 orapix oinstall 4096 Sep 11 08:49 orapix
[root@server1 ~]#

[root@server1 ~]# /bin/ls -l /bin/bash
-rwxr-xr-x 1 root root 616312 Dec 7 2004 /bin/bash
[root@server1 ~]#
[root@server1 ~]# /bin/cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hda /media/cdrecorder auto pamconsole,fscontext=system_ubject_r:removable_t,exec,noauto,managed 0 0
[root@server1 ~]# /bin/ls -ld /home
drwxrwxrwx 6 root root 4096 Sep 11 08:42 /home
[root@server1 ~]# /bin/ls -l /home
total 32
drwxrwxrwx 4 applpix oinstall 4096 Sep 11 08:51 applpix
drwxrwxrwx 4 jacobs jacobs 4096 Sep 11 08:10 jacobs
drwxrwxrwx 4 oracle oinstall 4096 Sep 11 08:41 oracle
drwxrwxrwx 4 orapix oinstall 4096 Sep 11 08:49 orapix
[root@server1 ~]# /bin/df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
478581664 20458024 433813064 5% /
/dev/sdb1 101086 12529 83338 14% /boot
none 2073632 0 2073632 0% /dev/shm
/dev/sda1 240362656 194086140 34066716 86% /pix
/dev/hdb1 153834852 127256780 18763656 88% /rten
[root@server1 ~]#

[root@server1 ~]# su - orapix
su: warning: cannot change directory to /home/orapix: Permission denied
su: /bin/bash: Permission denied
[root@server1 ~]#
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/usr/sbin/httpd: symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_atomic_x dasoberdick Slackware 16 10-11-2014 03:36 AM
/sbin/service crond unable to start - gives permission error on /usr/sbin/crond mgervacio Linux - Newbie 6 07-16-2008 02:03 PM
sbin error rob33n Debian 7 01-15-2008 10:06 AM
/sbin/init: error 5 Findus Ubuntu 3 11-14-2006 04:30 PM
Chkroot scan - /sbin/init & /sbin/ifconfig INFECTED bicoba Linux - Security 4 06-07-2006 10:16 AM


All times are GMT -5. The time now is 08:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration