Re: users cannot login anymore

2007-08-30 Thread Bahman M.
 # su - robi
 su: /bin/csh: Permission denied

 also,

 # /usr/local/etc/rc.d/tomcat6 start
 Starting tomcat60.
 su: /usr/local/bin/bash: Permission denied

 # uname -rms
 FreeBSD 6.1-RELEASE-p19 i386
What's the output of
# ls -l /usr/local/bin/bash
# ls -l /bin/csh
?

Bahman
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: users cannot login anymore

2007-08-30 Thread Roberto Nunnari

Hi Bahman.

see below my answer.


Bahman M. wrote:

# su - robi
su: /bin/csh: Permission denied

also,

# /usr/local/etc/rc.d/tomcat6 start
Starting tomcat60.
su: /usr/local/bin/bash: Permission denied

# uname -rms
FreeBSD 6.1-RELEASE-p19 i386

What's the output of
# ls -l /usr/local/bin/bash
# ls -l /bin/csh
?


# ls -l /usr/local/bin/bash /bin/csh /bin/sh
-r-xr-xr-x  2 root  wheel  298556 Aug  6 18:37 /bin/csh
-r-xr-xr-x  1 root  wheel  107380 Aug  6 18:37 /bin/sh
-rwxr-xr-x  1 root  wheel  611268 Jul  2 12:15 /usr/local/bin/bash

# cat /etc/shells
/bin/sh
/bin/csh
/bin/tcsh
/usr/local/bin/bash
/usr/local/bin/rbash



Bahman



--
Robi

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: users cannot login anymore

2007-08-30 Thread Bahman M.
 see below my answer.


 Bahman M. wrote:
  # su - robi
  su: /bin/csh: Permission denied
 
  also,
 
  # /usr/local/etc/rc.d/tomcat6 start
  Starting tomcat60.
  su: /usr/local/bin/bash: Permission denied
 
  # uname -rms
  FreeBSD 6.1-RELEASE-p19 i386
  What's the output of
  # ls -l /usr/local/bin/bash
  # ls -l /bin/csh
  ?

 # ls -l /usr/local/bin/bash /bin/csh /bin/sh
 -r-xr-xr-x  2 root  wheel  298556 Aug  6 18:37 /bin/csh
 -r-xr-xr-x  1 root  wheel  107380 Aug  6 18:37 /bin/sh
 -rwxr-xr-x  1 root  wheel  611268 Jul  2 12:15 /usr/local/bin/bash

 # cat /etc/shells
 /bin/sh
 /bin/csh
 /bin/tcsh
 /usr/local/bin/bash
 /usr/local/bin/rbash

Read man 1 tcsh/bash startup section and see if users other than root
have access to all files and directories mentioned out there.
Also try logging in as robi (on a login shell). It might give you a clue.

Bahman
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: users cannot login anymore

2007-08-30 Thread Jonathan Chen
On Thu, Aug 30, 2007 at 10:50:40AM +0200, Roberto Nunnari wrote:

[...]
 
 # su - robi
 su: /bin/csh: Permission denied
 
 also,
 
 # /usr/local/etc/rc.d/tomcat6 start
 Starting tomcat60.
 su: /usr/local/bin/bash: Permission denied

Check the permissions of /. I suspect that you've lost the execute
or read bit off the directory.

Cheers.
-- 
Jonathan Chen [EMAIL PROTECTED]
--
   Do not take life too seriously.
   You will never get out of it alive.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: users cannot login anymore

2007-08-30 Thread Roberto Nunnari
in effect, trying to login as a unprivileged user gives an additional 
line.. but it doesn't give me hints..


# ssh [EMAIL PROTECTED]
Password:
Last login: Thu Aug 30 12:12:12 2007 from 
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California.  All rights reserved.

Could not chdir to home directory /usr/home/robi: Permission denied
/usr/local/bin/bash: Permission denied
Connection to localhost closed.

Please help!


Bahman M. wrote:

see below my answer.


Bahman M. wrote:

# su - robi
su: /bin/csh: Permission denied

also,

# /usr/local/etc/rc.d/tomcat6 start
Starting tomcat60.
su: /usr/local/bin/bash: Permission denied

# uname -rms
FreeBSD 6.1-RELEASE-p19 i386

What's the output of
# ls -l /usr/local/bin/bash
# ls -l /bin/csh
?

# ls -l /usr/local/bin/bash /bin/csh /bin/sh
-r-xr-xr-x  2 root  wheel  298556 Aug  6 18:37 /bin/csh
-r-xr-xr-x  1 root  wheel  107380 Aug  6 18:37 /bin/sh
-rwxr-xr-x  1 root  wheel  611268 Jul  2 12:15 /usr/local/bin/bash

# cat /etc/shells
/bin/sh
/bin/csh
/bin/tcsh
/usr/local/bin/bash
/usr/local/bin/rbash


Read man 1 tcsh/bash startup section and see if users other than root
have access to all files and directories mentioned out there.
Also try logging in as robi (on a login shell). It might give you a clue.

Bahman



--
Robi

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: users cannot login anymore

2007-08-30 Thread Wojciech Puchar

check permissions in /bin /lib /libexec and /




On Thu, 30 Aug 2007, Roberto Nunnari wrote:


Hi.

This morning I got a problem on one of my FreeBSD servers.

In practice:

# su - robi
su: /bin/csh: Permission denied

also,

# /usr/local/etc/rc.d/tomcat6 start
Starting tomcat60.
su: /usr/local/bin/bash: Permission denied

# uname -rms
FreeBSD 6.1-RELEASE-p19 i386

Any hints?


--
Robi

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: users cannot login anymore

2007-08-30 Thread Wojciech Puchar

check / and /lib and /libexec


On Thu, 30 Aug 2007, Roberto Nunnari wrote:


Hi Bahman.

see below my answer.


Bahman M. wrote:

# su - robi
su: /bin/csh: Permission denied

also,

# /usr/local/etc/rc.d/tomcat6 start
Starting tomcat60.
su: /usr/local/bin/bash: Permission denied

# uname -rms
FreeBSD 6.1-RELEASE-p19 i386

What's the output of
# ls -l /usr/local/bin/bash
# ls -l /bin/csh
?


# ls -l /usr/local/bin/bash /bin/csh /bin/sh
-r-xr-xr-x  2 root  wheel  298556 Aug  6 18:37 /bin/csh
-r-xr-xr-x  1 root  wheel  107380 Aug  6 18:37 /bin/sh
-rwxr-xr-x  1 root  wheel  611268 Jul  2 12:15 /usr/local/bin/bash

# cat /etc/shells
/bin/sh
/bin/csh
/bin/tcsh
/usr/local/bin/bash
/usr/local/bin/rbash



Bahman



--
Robi

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: users cannot login anymore

2007-08-30 Thread Wojciech Puchar

Could not chdir to home directory /usr/home/robi: Permission denied
/usr/local/bin/bash: Permission denied
Connection to localhost closed.

Please help!


you've already got an answer




Bahman M. wrote:

see below my answer.


Bahman M. wrote:

# su - robi
su: /bin/csh: Permission denied

also,

# /usr/local/etc/rc.d/tomcat6 start
Starting tomcat60.
su: /usr/local/bin/bash: Permission denied

# uname -rms
FreeBSD 6.1-RELEASE-p19 i386

What's the output of
# ls -l /usr/local/bin/bash
# ls -l /bin/csh
?

# ls -l /usr/local/bin/bash /bin/csh /bin/sh
-r-xr-xr-x  2 root  wheel  298556 Aug  6 18:37 /bin/csh
-r-xr-xr-x  1 root  wheel  107380 Aug  6 18:37 /bin/sh
-rwxr-xr-x  1 root  wheel  611268 Jul  2 12:15 /usr/local/bin/bash

# cat /etc/shells
/bin/sh
/bin/csh
/bin/tcsh
/usr/local/bin/bash
/usr/local/bin/rbash


Read man 1 tcsh/bash startup section and see if users other than root
have access to all files and directories mentioned out there.
Also try logging in as robi (on a login shell). It might give you a clue.

Bahman



--
Robi

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: users cannot login anymore

2007-08-30 Thread Bahman M.
In addition to other hints, I'd suggest you check if robi has
sufficient premissions on his own home directory.

Bahman

On 8/30/07, Roberto Nunnari [EMAIL PROTECTED] wrote:
 in effect, trying to login as a unprivileged user gives an additional
 line.. but it doesn't give me hints..

 # ssh [EMAIL PROTECTED]
 Password:
 Last login: Thu Aug 30 12:12:12 2007 from 
 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
  The Regents of the University of California.  All rights reserved.

 Could not chdir to home directory /usr/home/robi: Permission denied
 /usr/local/bin/bash: Permission denied
 Connection to localhost closed.

 Please help!


 Bahman M. wrote:
  see below my answer.
 
 
  Bahman M. wrote:
  # su - robi
  su: /bin/csh: Permission denied
 
  also,
 
  # /usr/local/etc/rc.d/tomcat6 start
  Starting tomcat60.
  su: /usr/local/bin/bash: Permission denied
 
  # uname -rms
  FreeBSD 6.1-RELEASE-p19 i386
  What's the output of
  # ls -l /usr/local/bin/bash
  # ls -l /bin/csh
  ?
  # ls -l /usr/local/bin/bash /bin/csh /bin/sh
  -r-xr-xr-x  2 root  wheel  298556 Aug  6 18:37 /bin/csh
  -r-xr-xr-x  1 root  wheel  107380 Aug  6 18:37 /bin/sh
  -rwxr-xr-x  1 root  wheel  611268 Jul  2 12:15 /usr/local/bin/bash
 
  # cat /etc/shells
  /bin/sh
  /bin/csh
  /bin/tcsh
  /usr/local/bin/bash
  /usr/local/bin/rbash
 
  Read man 1 tcsh/bash startup section and see if users other than root
  have access to all files and directories mentioned out there.
  Also try logging in as robi (on a login shell). It might give you a clue.
 
  Bahman


 --
 Robi


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: users cannot login anymore

2007-08-30 Thread Roberto Nunnari

Yes! Thank you all!
The problem was permissions on /

it was:
ls -la /
total 79
drwxr-x---  23 rootwheel1024 Aug 30 09:07 .

and changing it to:
# chmod o=rx /

solved the problem.

But how comes it was changed? have to check better..

Thank you again guys!

Best regards.


Wojciech Puchar wrote:

check / and /lib and /libexec


On Thu, 30 Aug 2007, Roberto Nunnari wrote:


Hi Bahman.

see below my answer.


Bahman M. wrote:

# su - robi
su: /bin/csh: Permission denied

also,

# /usr/local/etc/rc.d/tomcat6 start
Starting tomcat60.
su: /usr/local/bin/bash: Permission denied

# uname -rms
FreeBSD 6.1-RELEASE-p19 i386

What's the output of
# ls -l /usr/local/bin/bash
# ls -l /bin/csh
?


# ls -l /usr/local/bin/bash /bin/csh /bin/sh
-r-xr-xr-x  2 root  wheel  298556 Aug  6 18:37 /bin/csh
-r-xr-xr-x  1 root  wheel  107380 Aug  6 18:37 /bin/sh
-rwxr-xr-x  1 root  wheel  611268 Jul  2 12:15 /usr/local/bin/bash

# cat /etc/shells
/bin/sh
/bin/csh
/bin/tcsh
/usr/local/bin/bash
/usr/local/bin/rbash



Bahman



--
Robi

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]



--
Robi

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: users cannot login anymore

2007-08-30 Thread Wojciech Puchar

solved the problem.

But how comes it was changed? have to check better..


for sure root did it
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: users cannot login anymore

2007-08-30 Thread Derek Ragona

At 03:50 AM 8/30/2007, Roberto Nunnari wrote:

Hi.

This morning I got a problem on one of my FreeBSD servers.

In practice:

# su - robi
su: /bin/csh: Permission denied

also,

# /usr/local/etc/rc.d/tomcat6 start
Starting tomcat60.
su: /usr/local/bin/bash: Permission denied

# uname -rms
FreeBSD 6.1-RELEASE-p19 i386

Any hints?


--
Robi


I would reboot in single user and fsck the drives, then do ls -l on 
/bin/csh and /usr/local/bin/bash


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]